[Nagiosplug-help] check_snmp load

Thomas Guyot-Sionnest dermoth at aei.ca
Thu Mar 29 01:59:33 CEST 2007


On 28/03/07 10:48 AM, Andrew Zahn wrote:
> I am having a problem with what check_snmp returns for load. If you run 
> uptime on the console it show a load of:
> 
> 16:46:04  up 122 days, 19:08,  1 user, load average: 0.05, 0.08, 0.08
> 
> but as you can see below check_snmp returns 5,8,8 incorrectly triggering 
> warning...
> 
> [root at monitor ~]# /usr/lib/nagios/plugins/check_snmp -H 
> backup.insors.net -C uc5nmp -o 
> .1.3.6.1.4.1.2021.10.1.5.1,.1.3.6.1.4.1.2021.10.1.5.2,.1.3.6.1.4.1.2021.10.1.5.3 
> -w 3,3,3 -c 3,3,3 -l load
> load CRITICAL - *5* *8* *8* | UCD-SNMP-MIB::laLoadInt.1=5 
> UCD-SNMP-MIB::laLoadInt.2=8 UCD-SNMP-MIB::laLoadInt.3=8
> 
> 
> It seems the numbers are correct but there is no decimal does anyone see 
> what I am doing wrong here?

You're not doing anything wrong here; check_snmp can't interpret floats,
so instead of using laLoad.x you use laLoadInt.x which multiply the
value by 100 to avoid decimals.

All you have to do is to multiply thresholds by 100. Ex. is you want to
warn at 8,6,4 and alert at 16,12,8 then you'll use these thresholds:

-w 800,600,400 -c 1600,1200,800

Thomas




More information about the Help mailing list