[Nagiosplug-help] Null Returns from a check_nt call that works from command line, but not from .cfg???

Andreas Baetz andreas.baetz at herma.de
Mon Dec 2 22:38:03 CET 2002


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