[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
Wed Dec 4 13:54:08 CET 2002


Thanks to everyone who emailed me about this issue. It is finally working, but it is very odd how it worked. I edited my commandchecks.cfg in emacs instead of openoffice with exactly the same line and now it seems to work. When I open it in openoffice the line looks exactly the same. I have no idea why this is the case, I suppose it's possible that I made a mistake but I'm pretty obsessive compulsive with re-checking these things. Thanks for all the help though. 

-----Original Message-----
From:	Andreas Baetz [mailto:andreas.baetz at herma.de]
Sent:	Tue 12/3/2002 12:36 AM
To:	Robertson, Brown; nagiosplug-help at lists.sourceforge.net
Cc:	
Subject:	Re: [Nagiosplug-help] Null Returns from a check_nt call that works from command line, but not from .cfg???
On Monday 02 December 2002 16:06, Robertson, Brown wrote:
> -----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

some thoughts:
- Are you sure $HOSTADDRESS$ points to the right server ?
- did you try the command without formatting the output ?
- did you try to insert the same command (without variables) that you
 used from the commandline into the configfile ?

Andreas


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been scanned
for the presence of computer viruses.
**********************************************************************







More information about the Help mailing list