<div dir="ltr"><div>On Fri, Dec 02, 2016 at 13:41:59PM +0100, Marc Haber wrote:</div><div>>> I'm trying to use check_snmp to monitor power outlet consumation. I set up</div><div>>> something like this:</div><div>>> check_snmp -H <host> -P 1 -C <comm> -o SPGW-MIB::actualCurrentO.3132.4 <br></div><div>>> which correctly returns<br></div><div>>> SNMP OK - .36 | </div><div>>> since there is no consumer connected, this value is correct (0.36A).<br></div><div>>> But, when I add a warning threshold, like this:<br></div><div>>> 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:</div><div>>> SNMP OK - 36 | SPGW-MIB::actualCurrentO.3132.4=36 <br></div><div>>> So, the dot seems to get filtered and the returned value is 36 instead of 0.36.<br></div><div>> Can this be a locale issue with ,36 and .36?<br></div><div><br></div><div>I would have thought similar, but it's quite unlikely that a locale setting would only come in effect when the "-w" option is added to the commandline. So I would rather assume a parsing problem.</div><div><br></div><div><br></div><div>Frank</div><div><br></div><div>(P.S. changed my sender address to my list address since I wasn't subscibed before, which resulted from not knowing that this is a list because the manpage suggests so)</div></div>