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 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
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
Thank you for your helpful answers.