Page 1 of 2

Nagios check to monitor individual process memory,cpu

Posted: Wed Nov 20, 2013 1:46 am
by madhudeva
Hi Team,

We had a requirement that we need to monitor each and every single process in windows server and also at the same time need to monitor the memory used by that individual process and also CPU usage used by that process.

Is there any plugin that does this thing?

Please help me in this..

Regards,
Madhu

Re: Nagios check to monitor individual process memory,cpu

Posted: Thu Nov 21, 2013 6:00 pm
by tmcdonald
Every process? That seems pretty unrealistic. In XI you would need a separate service for each process. But then what if another process kicks off? Nagios would not know about it. There are too many moving parts and too much entropy for this to be remotely feasible.

Re: Nagios check to monitor individual process memory,cpu

Posted: Mon Nov 25, 2013 3:59 am
by madhudeva
Hi tmcdonald,

Sorry.. i mean not each and every process.
Let say for example.. we would like to monitor some .exe process and for the same .exe process we would like to monitor the memory used by this .exe and at the same time would like to monitor CPU usage by that .exe process. It makes sense?

Correct me if I am wrong...

Regards,
Madhu

Re: Nagios check to monitor individual process memory,cpu

Posted: Mon Nov 25, 2013 11:00 am
by sreinhardt
Yes this should be reasonably possible via several ways. NSclient process checks, NCPA process checks, performance monitor counters, or running an additional script. Do you have an agent installed on this machine already, or a preference of how you want to monitor it?

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Nov 27, 2013 11:21 pm
by madhudeva
Yes we had NSclient installed on Windows machine and we are monitoring the windows machine by nagios.
Please advice me on this..

Re: Nagios check to monitor individual process memory,cpu

Posted: Sat Nov 30, 2013 11:37 am
by sreinhardt
Have you tried using the windows server wizard to add processes that you would like to monitor? It should contain the checks and settings you wish to use already!

Re: Nagios check to monitor individual process memory,cpu

Posted: Tue Apr 01, 2014 3:20 am
by madhudeva
Yes.. I can monitor the process using this wizard.
But I need the memory usage of example.exe process.. how would I do that? Please help..

Re: Nagios check to monitor individual process memory,cpu

Posted: Tue Apr 01, 2014 4:02 pm
by abrist
You can do this using performance counters with nsclient.
For example:

Code: Select all

CheckCounter "Counter:javamemusage=\Process(java)\Private bytes" ShowAll 
Or:

Code: Select all

CheckCounter "Counter:explorermemusage=\Process(explorer)\Private bytes" ShowAll 

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Apr 02, 2014 12:17 am
by madhudeva
In my case I would require to monitor D9AXAiServ.exe

CheckCounter "Counter:D9AXAiServmemusage=\Process(D9AXAiServ)\Private bytes" ShowAll

is the above syntax correct?

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Apr 02, 2014 1:27 am
by madhudeva
I tried with the below command via command line and got the below error.. please help

/usr/local/nagios/libexec#./check_nrpe -n -H hostname
I (0.3.9.329 2011-09-02) seem to be doing fine...

/usr/local/nagios/libexec# ./check_nrpe -n -H hostname -p 5666 -c CheckCounter -a "Counter:javamemusage=\Process(java)\Private bytes" ShowAll
Could not construct return packet in NRPE handler check client side (nsclient.log) logs...