<div dir="auto"><div>Hi Frank,</div><div dir="auto"><br></div><div dir="auto">could you please submit a bug report on github?</div><div dir="auto"><br></div><div dir="auto">Best regards</div><div dir="auto">Oliver<br><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">Am 02.12.2016 14:57 schrieb "Frank Altpeter" <<a href="mailto:frank.altpeter@gmail.com">frank.altpeter@gmail.com</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="quoted-text"><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.<wbr>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.<wbr>4 >> to be warned when the returned value equals zero, the output becomes:</div><div>>> SNMP OK - 36 | SPGW-MIB::actualCurrentO.3132.<wbr>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><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>
</blockquote></div><br></div></div></div>