<br><font size=2 face="sans-serif">Paul: see my comments below</font>
<br><font size=2 face="sans-serif">__________________________________________<br>
Ranga Nathan / CSG<br>
Systems Programmer - Specialist; Technical Services; <br>
BAX Global Inc. Irvine-California<br>
Tel: 714-442-7591   Fax: 714-442-2840<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Paul  Aviles" <paviles@adjoined.com></b></font>
<br>
<br><font size=1 face="sans-serif">Sent by: nagios-users-admin@lists.sourceforge.net</font>
<p><font size=1 face="sans-serif">07/18/2004 09:20 PM</font>
<td><font size=1 face="Arial">        </font>
<br><font size=1 face="sans-serif">        To:
       <nagios-users@lists.sourceforge.net></font>
<br><font size=1 face="sans-serif">        cc:
       </font>
<br><font size=1 face="sans-serif">        Subject:
       [Nagios-users] Monitoring MS servers</font></table>
<br>
<br>
<br><font size=2><tt>I am looking at the documentation for NSClient and
I have copied the<br>
following text to my command.cfg<br>
<br>
command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$<br>
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
CPULOAD -l $ARG1$<br>
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
UPTIME<br>
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p<br>
1248 -v CLIENTVERSION<br>
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
PROCSTATE -l $ARG1$<br>
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
SERVICESTATE -l $ARG1$<br>
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
MEMUSE -w $ARG1$ -c $ARG2$<br>
command[check_nt_fileage]=$USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v<br>
FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$<br>
<br>
I have an entry in my service.cfg for monitoring the server and the only<br>
diference is the command that I have as:<br>
<br>
check_command check_nt -h 10.10.10.10 -p 1248 -v CPULOAD -l<br>
10,80,95,60,80,95,1440,80,95 </tt></font>
<br>
<br><font size=2><tt>I dont see a check_nt in the command.cfg. BTW, on
Linux the file is called command.cfg similar to what you have, and checkcommands.cfg
that looks like:</tt></font>
<br><font size=2><tt># 'check_tcp' command definition</tt></font>
<br><font size=2><tt>define command{</tt></font>
<br><font size=2><tt>        command_name    check_tcp</tt></font>
<br><font size=2><tt>        command_line    $USER1$/check_tcp
-H $HOSTADDRESS$ -p $ARG1$</tt></font>
<br><font size=2><tt>        }</tt></font>
<br>
<br>
<br><font size=2><tt># 'check_udp' command definition</tt></font>
<br><font size=2><tt>define command{</tt></font>
<br><font size=2><tt>        command_name    check_udp</tt></font>
<br><font size=2><tt>        command_line    $USER1$/check_udp
-H $HOSTADDRESS$ -p $ARG1$</tt></font>
<br><font size=2><tt>        }<br>
</tt></font>
<br>
<br><font size=2><tt>The services.cfg references the commands defined in
checkcommands.cfg</tt></font>
<br><font size=2><tt><br>
But I get errors like this..<br>
<br>
Checking services...<br>
Error: Service check command 'check_nt -H 192.168.100.32 -p 1248 -v<br>
CPULOAD -l 10,80,95,60,80,95,1440,80,95' specified in service 'CPU Load'<br>
for host 'szmia000' not defined anywhere!<br>
<br>
Is the service.cfg the correct place to monitor the server and is the<br>
command.cfg the correct file for the commands above?</tt></font>
<br>
<br><font size=2><tt>Yes, and check if you have a checkcommands.cfg<br>
<br>
Thanks<br>
<br>
-pa<br>
<br>
<br>
<br>
<br>
-------------------------------------------------------<br>
This SF.Net email is sponsored by BEA Weblogic Workshop<br>
FREE Java Enterprise J2EE developer tools!<br>
Get your free copy of BEA WebLogic Workshop 8.1 today.<br>
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click<br>
_______________________________________________<br>
Nagios-users mailing list<br>
Nagios-users@lists.sourceforge.net<br>
https://lists.sourceforge.net/lists/listinfo/nagios-users<br>
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. <br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</tt></font>
<br>