<span style="font-family: courier new,monospace;">On 12/11/06, </span><b style="font-family: courier new,monospace;" class="gmail_sendername">Patrick Proy</b><span style="font-family: courier new,monospace;"> <</span><a style="font-family: courier new,monospace;" href="mailto:nagios-user@proy.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
nagios-user@proy.org</a><span style="font-family: courier new,monospace;">> wrote:</span><div style="font-family: courier new,monospace;"><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>Replace line 562 in the script with :<br><br>$descr[$i] =~ s/'\/\(\)/_/g;</blockquote><div><br><br>Hi Patrick,<br><br>I changed check_snmp_int.pl at line 562 as suggested - no change in behaviour unfortunately. Looking at the line above it should work.
<br><br>I have resorted to using sed and tr like this<br><br>check_snmp_int.pl -H $HOSTADDRESS$ -C public -n $ARG1$ -B -f -w 0,0 -c
0,0 | sed 's/\//_/g' | sed 's/\///g' | sed 's/'\('R'\)'//g' | sed 's/Intel
PRO_1000 CT Network Connection*/eth0/g' | tr -d '\0'<br><br>For some reason, the output from check_snmp_int.pl contained NULL characters (HEX 00) like this <br><br>eth0NULL:UP:1 UP: OK | 'eth0NULL_in_octet'=3167298692c 'eth0NULL_out_octet'=2854496598c
<br><br>The NULLs caused the output to be truncated. I think this was a product of the SNMP description, not check_snmp_int.pl itself. The NULLS only occur against Windows machines.Doing <br><br>check_snmp_int.pl -H $HOSTADDRESS$ -C public -n "Intel\(R\) PRO\/1000 CT*" -B -f -w 0,0 -c 0,0 | od -t c
<br><br>generated this<br><br>0000000 I n t e l ( R ) P R O / 1 0 0<br>0000020 0 C T N e t w o r k C o n<br>0000040 n e c t i o n \0 : U P : 1 U P
<br>0000060 : O K | ' I n t e l ( R )<br>0000100 P R O / 1 0 0 0 C T N e t<br>0000120 w o r k C o n n e c t i o n \0
<br>0000140 _ i n _ o c t e t ' = 3 3 9 4 9<br>0000160 0 0 9 4 2 c ' I n t e l ( R )<br>0000200 P R O / 1 0 0 0 C T N e t
<br>0000220 w o r k C o n n e c t i o n \0<br>0000240 _ o u t _ o c t e t ' = 3 0 2 0<br>0000260 2 2 6 1 7 4 c \n<br>0000270<br><br><br>The NULLS are \0 in the above output. Stupid Windows. The performance data now displays properly. Hope this help someone else.
<br><br></div></div>Peter<br>