SteScho / manubulon-snmp

Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol.
GNU General Public License v2.0
73 stars 71 forks source link

check_snmp_load.pl - Linux load multiple CPUs #6

Closed dnsmichi closed 9 years ago

dnsmichi commented 9 years ago

Linux load doesn't handle multiple CPUs properly. Here is a patch that makes the plugin to get the number of CPUs for a particular system and multiply warning and critical limits by this number.

bsiege commented 9 years ago

Hi Michi, that breaks snmp-load (for me).

"my" variable $resultat masks earlier declaration in same scope at /usr/lib64/nagios/plugins/check_snmp_load.pl line 381.