Hi
I am trying to monitor a service on a windows machine using the check_snmp_win.pl script ( found it on nagios exchange )
the script run with no prbolems from command line - for example :
./check_win_snmp.pl -H 192.168.1.50 -C public -n mssql -N 2
but , when when i used it from nagios i recieve "Return code of 127 is out of bounds "
configuration files
serivice.cfg
…
Service definition - check sql service
define service{
use generic-service
host_name sqlapp
service_description Sql_Service
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups servers-admins
notification_interval 120
notification_period 24x7
notification_options w,c
check_command check_service!public!mssql!1
}
…
and checkcommands.cfg
…
Check Windows Services
define command{
command_name check_service
command_line ‘$USER1$/check_snmp_win.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$ -N $ARG3$’
}
…
I am running nagios on debian sarge
Any idea ?
Eyal