I have a problem with check_snmp_win.pl (http://nagios.proy.org/snmp_windows.html). When i put this in a host file, it's not working but when i launch it directly it's working.
Code: Select all
./check_windows_service -H host -C community -n "Apache Tomcat for BI 4"
1 services active (matching "Apache Tomcat for BI 4") : OK
The same check working for an another host. And for this host i check CPU, RAM and Disk with SNMP and it's working well. I check if there is a control character or something i can't see but not. I try to rewrite all the service on a new file and same thing happen.
You can see bellow the configuration of the command and the service.
Command definition :
Code: Select all
define command{
command_name check_windows_service
command_line $USER1$/check_windows_service -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$
}
Code: Select all
define service{
use generic-service ; Name of service template to use
host_name host
service_description S-Services Apache Tomcat for BI 4
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 2
contact_groups
notification_options w,c,r
notification_interval 960
notification_period journee-ouvrable
check_command check_windows_service!community!"Apache Tomcat for BI 4 "
}
Thanks