Re: help with check_snmp
Marc Haber <[email protected]> Fri, 2 Dec 2016 13:41:59 +0100
| Newsgroups | gmane.network.nagios.plugins,gmane.network.monitoring.plugins.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 02, 2016 at 12:53:07PM +0100, Frank Altpeter wrote: > I'm trying to use check_snmp to monitor power outlet consumation. I set up > something like this: > > check_snmp -H <host> -P 1 -C <comm> -o SPGW-MIB::actualCurrentO.3132.4 > > which correctly returns > SNMP OK - .36 | > > since there is no consumer connected, this value is correct (0.36A). > > But, when I add a warning threshold, like this: > > check_snmp -H <host> -P 1 -C <comm> -w @0:0 -o SPGW-MIB::actualCurrentO.3132.4 > > to be warned when the returned value equals zero, the output becomes: > > SNMP OK - 36 | SPGW-MIB::actualCurrentO.3132.4=36 > > So, the dot seems to get filtered and the returned value is 36 instead of 0.36. Can this be a locale issue with ,36 and .36? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421