Another NSClient question
Frater, Greg J
gjfrater at bechtel.com
Mon Nov 25 19:20:11 CET 2002
Have you tested from the command line? Does your password use any
special characters? I don't know if this matters but it could cause the
check command some grief interpreting your command syntax.
-----Original Message-----
From: Peter Pan [mailto:peterpan at pvamu.edu]
Sent: Monday, November 25, 2002 10:16 AM
To: Frater, Greg J; nagios
Subject: Re: [Nagios-users] Another NSClient question
I restarted the server and it still gives me an "No output". Here is
some info is this helps in any way. Thanks
# NSClient -- Server
command[check_nt_disk_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248 -p
xxxxx -v USEDDISKSPACE -l C -w 80 -c 90
command[check_nt_cpuload_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v CPULOAD -l 10,80,95,60,80,95,1440,80,95
command[check_nt_uptime_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v UPTIME
command[check_nt_clientversion_Server]=$USER1$/check_nt -H 127.0.0.1 -P
1248 -p xxxxx -v CLIENTVERSION
command[check_nt_process_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v PROCSTATE -l $ARG1$
command[check_nt_service_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v SERVICESTATE -l $ARG1$
command[check_nt_memuse_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v MEMUSE -w $ARG1$ -c $ARG2$
command[check_nt_fileage_Server]=$USER1$/check_nt -H 127.0.0.1 -P 1248
-p xxxxx -v FILEAGE ~Vl $ARG1$ -w $ARG2$ -c $ARG3$
command[check_nt_pagingfile_Server]=$USER1$/check_nt -H $HOSTADDRESS$ -P
1248 -p xxxxx -v COUNTER -l " \\Paging <file://\\Paging>
File(_Total)\\% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c
$ARG2$
Here is my commands. Note 127.0.0.1 is not actually IP just replacing
the actual and "xxxxx" is masking the password.
Justin
----- Original Message -----
From: Frater, <mailto:gjfrater at bechtel.com> Greg J
To: 'Peter Pan' <mailto:peterpan at pvamu.edu>
Sent: Monday, November 25, 2002 11:24 AM
Subject: RE: [Nagios-users] Another NSClient question
The registry key holds the password string. You then use (as you
speculated) the -p option on the check_nt command to send the password
to the nt box. When I did it I had to restart the server when after
adding the password to my servers. Restarting the nsclient nt service
did not work.
-----Original Message-----
From: Peter Pan [mailto:peterpan at pvamu.edu]
Sent: Monday, November 25, 2002 8:50 AM
To: nagios
Subject: [Nagios-users] Another NSClient question
I understand that I can put the key in the registry under
HKEY_LOCAL_MACHINE -> SOFTWARE -> NSClient -> Params -> password, and
modify it to suit whichever password I choose. But I am a little
confused about what config file I store this password in on the Nagios
box. I was thinking I used the "-p" flag in the commands configuration
file, then the password following. But I must be forgetting something.
Any ideas would be great, thanks guys
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021125/ff141d71/attachment.html>
More information about the Users
mailing list