<div>I am using nagios version 2.3.1 and i want to monitor windows machine using it.</div>
<div>I have configured it and added hosts and services.</div>
<div>i am able to get the status( local disk , total processes) of local host of nagios server, but i am not able to view these details for windows systems.</div>
<div>i have install the NSClient agent in windows machine and change its inf file, but still i am not able to monitor windows machine.</div>
<div>the windows machine and NAGIOS server are in same subnet,</div>
<div>i have written some command using check_nt plugin for local disk space, total process, but it is not working.some default values are showen for each system whether it is local host or any other windows machine</div>

<div>the error is given below</div>
<div> </div>
<div>so plese tell me is there any other tools which i will have to install, or will i have to install nrpe for monitor windows, and please tell me the changes which we have to made in NSClient++ configuration file.</div>

<div> </div>
<div>i have used these coding for configuring nagios for windows</div>
<div> </div>
<div>
<p><strong><u>Monitoring Services</u></strong> </p>
<p>Now that the NSCLient++ addon has been installed on the Windows machine and you've configured a host definition for the machine in Nagios, you can addon some service definitions for things you want to monitor. All of the service examples I'll cover use the 
<i>check_nt</i> plugin to talk to the NSClient++ addon on the Windows machine. The <i>check_nt</i> plugin is included in the Nagios plugins distribution and a command definition for using the plugin has been defined in the 
<i>commands.cfg</i> file. It looks like this: </p>
<p><pre>define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
        }
</pre>
<p></p>
<p>Now let's go over some example service definitions for monitoring different aspects of the Windows machine... </p>
<p><strong><u>Monitoring NSCLient++ Version</u></strong> </p>
<p>The following service definition will allow you to monitor the version of the NSClient++ addon that is running on the Windows server. This is useful when it comes time to upgrade your Windows servers to a newer version of the addon. 
<span></span></p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     NSClient++ Version
        check_command           check_nt!CLIENTVERSION
        }
</pre>
<p></p>
<p><strong><u>Monitoring Uptime</u></strong> </p>
<p>The following service definition will allow you to monitor the uptime of the Windows server. </p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     Uptime
        check_command           check_nt!UPTIME
        }
</pre>
<p></p>
<p><strong><u>Monitoring CPU Load</u></strong> </p>
<p>The following service definition will monitor the CPU utilization on the Windows server and generate a CRITICAL alert if the 5-minute CPU load is 90% or more or a WARNING alert if the 5-minute load is 80% or greater. 
</p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     CPU Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }
</pre>
<p></p>
<p><strong><u>Monitoring Memory Usage</u></strong> </p>
<p>The following service definition will monitor memory usage on the Windows server and generate a CRITICAL alert if memory usage is 90% or more or a WARNING alert if memory usage is 80% or greater. </p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     Memory Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }
</pre>
<p></p>
<p><strong><u>Monitoring Disk Usage</u></strong> </p>
<p>The following service definition will monitor usage of the C:\ drive on the Windows server and generate a CRITICAL alert if disk usage is 90% or more or a WARNING alert if disk usage is 80% or greater. </p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }
</pre>
<p></p>
<p><strong><u>Monitoring A Windows Service</u></strong> </p>
<p>The following service definition will monitoring the W3SVC service state on the Windows machine and generate a CRITICAL alert if the service is stopped. </p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     W3SVC
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
        }
<span></span></pre>
<p></p>
<p><strong><u>Monitoring A Windows Process</u></strong> </p>
<p>The following service definition will monitoring the Explorer.exe process on the Windows machine and generate a CRITICAL alert if the process is not running. </p>
<p><pre>define service{
        use                     generic-service
        host_name                       winserver
        service_description     Explorer
        check_command           check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
        }
</pre></p></p></p></p></p></p></p></p></div>