A quick note about the Nagios check_procs plugin

I had an issue today where check_procs returned “0 processes with command name ‘some-process-name’ “. When I did a ps -ef | grep some-process-name I could see the process running, so I was like “wtf?!”, but then a collegue told me he had seen this before. Seems the check_procs uses something like ps -cA to check for running-processes and using those parameters, you only see part of the process name, so while it wouldnt match “some-process-name” it would match “some-process-n”. So if you wonder why it returns 0 processes, do a ps -cA to find the right process name to match in your config.

Tags: , ,