check_procs


#1

Hey guys

I have a problem with my nagios…

sometimes i received a warning of my check_procs …

it saids 150 procs… and when i do command top in my server that is alarming, its appear 100, 98…

where might to be my problem?

this is my command in the client linux
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 180 -c 205

im using nrpe…

this is my command in server nagios:

‘check_total_procs’ command definition

define command{
command_name check_total_procs
command_line $USER1$/check_procs -w 150 -c 200
}

ty


#2

In the linux client, you should define your command as:
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs “$ARG1$” “$ARG2$” “$ARG3$” "$ARG4$"
so that it takes your nagios arguments as arguments, instead of using the 180/205 defined in your command definition.

Also, remember that the check_procs plugin is an instantaneous count of the number of process… which can vary pretty quickly, so it could be normal that you don’t find the same number as the test