Nagios check to monitor individual process memory,cpu

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Nagios check to monitor individual process memory,cpu

Post by madhudeva »

Modified the below line from 0 to 1 and it worked..

# COMMAND ALLOW NASTY META CHARS
; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.
allow_nasty_meta_chars=1

/usr/local/nagios/libexec# ./check_nrpe -n -H hostname -p 5666 -t 60 -c CheckCounter -a "Counter:explorermemusage=\Process(explorer)\Private bytes" ShowAll
OK: explorermemusage: 9.19962e+006|'explorermemusage'=9199616
madhudeva
Posts: 32
Joined: Thu Jun 20, 2013 1:08 am

Re: Nagios check to monitor individual process memory,cpu

Post by madhudeva »

Below is the command from command line..
/usr/local/nagios/libexec#./check_nrpe -n -H hostname -p 5666 -t 60 -c CheckCounter -a "Counter:D9AXAiServmemusage =\Process(D9AXAiServ)\Private bytes" ShowAll MaxWarn=2.097e+8 MaxCrit=2.307e+8
OK: D9AXAiServmemusage: 1.52769e+008|'D9AXAiServmemusage '=152768512;209700000;230700000

what command format would be in Nagios XI GUI? it is escaping the arguments and it says The specified counter could not be found.
We have so many .exe's running and I don't want to add individual command for every process that i want to monitor.. Could you please assist me with that?

( if i add individual command its working )

Many thanks for your help so far..
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios check to monitor individual process memory,cpu

Post by sreinhardt »

Could you post your commands.cfg so that we can look for nrpe related commands that are already configured that you might use, thus making it so that you only need to create service definitions.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked