Page 1 of 1

Issues with check_snmp_process

Posted: Fri Jul 21, 2017 8:43 am
by Hauru
Hello everyone, it's me again !

I am using this nagios plugin :

http://nagios.manubulon.com/snmp_process.html

It works well with the memory, using this command :

Code: Select all

/usr/local/nagios/libexec/check_snmp_process.pl -H X.X.X.X -C public -n process -m 9,25 -F

Code: Select all

18 process matching XX (> 0), Mem : 338.3Mb > 25 CRITICAL
I have the maximum memory used by one instance of the process, and when I had -a I have the average. Moreover, I have the number of process matching the name. I would like to have the have the total memory used by the process, I mean the sum of the memory used by all the process with the name "process". Is it possible ? I could do something like "average*number of process" but I want to graph it, so I don't know if it is possible.

I think it should, because it is said in the "-m" description :

Code: Select all

-m, --memory=WARN,CRIT
checks memory usage (default max of all process)
values are warning and critical values in Mb
Maybe the default can be modified?

Secondly, I have an issue when I try to have the CPU value (adding -u to the command) :

Code: Select all

19 process matching XX (> 0), Mem : 338.5Mb > 25 CRITICAL, No data for CPU (3 line(s)):UNKNOWN
I don't know why I have this error. Maybe someone have already seen something like that?

Thank you for your helpful answers.

Re: Issues with check_snmp_process

Posted: Fri Jul 21, 2017 4:04 pm
by tgriep
It looks like that plugin may not do what you want so do a search at the Exchange site to see if there is a plugin that does what you need.
https://exchange.nagios.org/