Page 2 of 2

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Apr 02, 2014 2:07 am
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

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Apr 02, 2014 3:19 am
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..

Re: Nagios check to monitor individual process memory,cpu

Posted: Wed Apr 02, 2014 4:54 pm
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.