User login

Who's online

There are currently 0 users and 9 guests online.

Shoutbox

sentono: please type something here :)
sentono: You need to register and login first, before you can shout :)
Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
7 + 12 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
All Shouts

Recent comments

Syndicate

Syndicate content

How To Monitor Windows Memory Usage, Diskspace, CPU Load and Uptime From Nagios

We will trying to monitor Windows Memory Usage, Diskspace, CPU Load and Uptime From Nagios.

First we need to have a nagios up and running smoothly.
Please follow up this url to install nagios http://www.nagios.org

Next we also need a windows nagios agent.
Download windows nagios agent from this url http://nsclient.ready2run.nl/download/nsclient_201.zip

Install nagios agent / nsclient to your windows server/client.

# Copy pNSClient.exe, pdh.dll, psapi.dll and counters.defs in any directory on the machine you want to monitor. ie. (c:\nsclient).
# Open a dos prompt in the installation directory
# Run the following command : >pNSClient.exe /install
# Type 'net start nsclient' on the command line or start the service 'Nagios Agent' in the services applet of the control panel.

Open up a firewall port 1248TCP for nagios agent in your windows client/server

On the Unix machine / Nagios Server

1. Copy the file 'check_nt' under the libexec folder of Nagios.
2. Add the following lines to the commands.cfg file:

# NSClient basic return types

command[check_nt_disk]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$
command[check_nt_cpuload]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v CPULOAD -l $ARG1$
command[check_nt_uptime]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v UPTIME
command[check_nt_clientversion]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v CLIENTVERSION
command[check_nt_process]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v PROCSTATE -l $ARG1$
command[check_nt_service]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v SERVICESTATE -l $ARG1$
command[check_nt_memuse]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v MEMUSE -w $ARG1$ -c $ARG2$
command[check_nt_fileage]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v FILEAGE –l $ARG1$ -w $ARG2$ -c $ARG3$

# Custom counters (one per required counter, or define a generic one and use $ARG1$ to specify the requested counter).

command[check_nt_pagingfile]=$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v COUNTER -l "\\Paging File(_Total)\\%% Usage","Paging File usage is %.2f %%" -w $ARG1$ -c $AR

Add your server to monitor diskspace, memusage, cpu load ,etc and Restart your nagios services.

If you have following all steps above. you will see a monitoring result like below

 

 





Reply

The content of this field is kept private and will not be shown publicly.
  • Use [break] to create page breaks.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <br> <p> <h1> <h2> <h3> <h4> <h5> <pre>
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
3 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Donate

Does this site make your life easier? Help me keep it online.

YM! Status