help, not able to monitor windows machine using nagios

Arun Sharma arun26282 at gmail.com
Tue Jun 5 08:14:20 CEST 2007


I am using nagios version 2.3.1 and i want to monitor windows machine using
it.
I have configured it and added hosts and services.
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.
i have install the NSClient agent in windows machine and change its inf
file, but still i am not able to monitor windows machine.
the windows machine and NAGIOS server are in same subnet,
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
the error is given below

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.

i have used these coding for configuring nagios for windows


*Monitoring Services*

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 *check_nt* plugin to talk to the NSClient++
addon on the Windows machine. The *check_nt* plugin is included in the
Nagios plugins distribution and a command definition for using the plugin
has been defined in the *commands.cfg* file. It looks like this:

define command{
	command_name	check_nt
	command_line	$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
	}

 Now let's go over some example service definitions for monitoring different
aspects of the Windows machine...

*Monitoring NSCLient++ Version*

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.

define service{
	use			generic-service
	host_name			winserver
	service_description	NSClient++ Version
	check_command		check_nt!CLIENTVERSION
	}

 *Monitoring Uptime*

The following service definition will allow you to monitor the uptime of the
Windows server.

define service{
	use			generic-service
	host_name			winserver
	service_description	Uptime
	check_command		check_nt!UPTIME
	}

 *Monitoring CPU Load*

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.

define service{
	use			generic-service
	host_name			winserver
	service_description	CPU Load
	check_command		check_nt!CPULOAD!-l 5,80,90
	}

 *Monitoring Memory Usage*

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.

define service{
	use			generic-service
	host_name			winserver
	service_description	Memory Usage
	check_command		check_nt!MEMUSE!-w 80 -c 90
	}

 *Monitoring Disk Usage*

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.

define service{
	use			generic-service
	host_name			winserver
	service_description	C:\ Drive Space
	check_command		check_nt!USEDDISKSPACE!-l c -w 80 -c 90
	}

 *Monitoring A Windows Service*

The following service definition will monitoring the W3SVC service state on
the Windows machine and generate a CRITICAL alert if the service is stopped.


define service{
	use			generic-service
	host_name			winserver
	service_description	W3SVC
	check_command		check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
	}

 *Monitoring A Windows Process*

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.

define service{
	use			generic-service
	host_name			winserver
	service_description	Explorer
	check_command		check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070605/704ed68a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list