Can check_snmp_process.pl show PID?
Posted: Wed Jun 11, 2014 6:00 pm
I've been using check_snmp_process.pl for a while and it works just fine. I was wondering how can I make the problematic process' PID show when an alarm comes up.
I can see that when you turn on the -v (verbose) argument, it shows each process ID. But how can I make the plugin show me only the problematic process' PID, along with the regular alarm message?
This is what it shows now:
7 process matching w3wp (> 0), Mem : 560.2Mb > 500 CRITICAL
This is how I wanted it to be:
7 process matching w3wp (> 0), Mem : 560.2Mb (PID 8274) > 500 CRITICAL
I can see that when you turn on the -v (verbose) argument, it shows each process ID. But how can I make the plugin show me only the problematic process' PID, along with the regular alarm message?
This is what it shows now:
7 process matching w3wp (> 0), Mem : 560.2Mb > 500 CRITICAL
This is how I wanted it to be:
7 process matching w3wp (> 0), Mem : 560.2Mb (PID 8274) > 500 CRITICAL