Null Returns from a check_nt call that works f rom command line, but not from .cfg???
Massey, Craig
craig.massey at chh.co.nz
Mon Dec 2 19:15:00 CET 2002
A perfmon command I use.
define command{
name check_nt_pagingfile
command_name check_nt_pagingfile
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -s $USER3$
-v COUNTER -l "\Paging File(_Total)\% Usage","Paging File usage is %.2f %%"
-w $ARG1$ -c $ARG2$
}
-----Original Message-----
From: Robertson, Brown [mailto:brown.robertson at maac.net]
Sent: Tuesday, December 03, 2002 4:03 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] 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.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
DISCLAIMER: This electronic message together with any attachments is
confidential. If you are not the intended recipient, do not copy, disclose or
use the contents in any way. Please also advise us by return e-mail that you
have received the message and then please destroy. Carter Holt Harvey is not
responsible for any changes made to this message and / or any attachments after
sending by Carter Holt Harvey. We use virus scanning software but exclude all
liability for viruses or anything similar in this email or any attachment.
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
More information about the Users
mailing list