shinken-monitoring / pack-linux-snmp

Configuration pack for Linux hosts
4 stars 16 forks source link

Prevent Argument "v6.0.1" isn't numeric #16

Closed pedrojimenez closed 8 years ago

pedrojimenez commented 8 years ago

I have encountered an error with version similar to #12, this is the link: https://github.com/shinken-monitoring/pack-linux-snmp/commit/13a65fdb4efaa8362775223f2ce382f49ca0c850

The difference is just the file where to change the comparison of SNMP version. Tested in our production environment, RRD graphs are also been drawn correcty.

The previous output was:

./check_snmp_load.pl -H 10.20.30.40 -C public -f -w 80 -c 90
Argument "v6.0.1" isn't numeric in numeric lt (<) at ./check_snmp_load.pl line 685.
1 CPU, load 50.0% < 80% : OK | cpu_prct_used=50%;80;90

And the current:

./check_snmp_load.pl -H 10.20.30.40 -C public -f -w 80 -c 90         
1 CPU, load 43.0% < 80% : OK | cpu_prct_used=43%;80;90
claneys commented 8 years ago

Thanks