[Nagiosplug-help] Null Returns from a check_nt call that works from command line, but not from .cfg???
Robertson, Brown
brown.robertson at maac.net
Mon Dec 2 11:36:26 CET 2002
-----Original Message-----
From: Robertson, Brown
Sent: Mon 12/2/2002 9:03 AM
To: nagios-users at lists.sourceforge.net
Cc:
Subject: Null Returns from a check_nt call that works from command line, but not from .cfg???
Need some brainstorming if you guys can see anything wrong with my config. I only have this problem when I'm using check_nt for counter monitoring on NT servers. Basically, I can get accurate integer returns when I type in the check_nt command manually from a command line for a specific server, but when I use the .cfg I get a "0" value in Nagios. Any ideas? Here's my check command:
# 'check_nt_sql_userconnections' command definition
define command{
command_name check_nt_sql_userconnections
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l “\\SQLServer:General Statistics\\User Connections”,”User Connections: %.f ” -w 80 -c 90
-------------------------------------------------------------------------
Here's my services.cfg entry:
define service{
use generic-service ; Name of service template to use
host_name Datawarehouse
service_description SQL USER CONNECTIONS
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups nt-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
check_command check_nt_sql_userconnections
}
I've tried using one backslash, 2 backslashes, in multiple orders, and playing with different -v and -c values, all to no avail.
More information about the Help
mailing list