From: Kyle T. <ky...@pa...> - 2006-03-03 21:05:08
|
Hi, I had check_snmp from the 1.4.2 plugins working great with=20 Net-SNMP 5.2.2 on Solaris 8. I have built it all on Solaris 10 now=20 for my production server and I get mangled data back from check_snmp going to the exact same snmpd client.=20 Here's a good working Solaris 8 query from check_snmp and snmpget and it'= s output through 'od'. # /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L auth= Priv \ -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.= 2.4.101.120.116.116 SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.= 116.116=3D"extt running okay";;;; =20 0000000 S N M P O K - " e x t t =20 0000020 r u n n i n g o k a y " | =20 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 0000120 =3D " e x t t r u n n i n g o 0000140 k a y " ; ; ; ; \n snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno= 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116=20 NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" =3D STRING: extt running o= kay And here's the mangled output on Solaris 10 /usr/local/nagios/libexec/check_snmp -t 3 -P 3 -H 192.168.16.11 -L authPr= iv \ -U Username -a MD5 -A abcdefg -X hijklmno -o .1.3.6.1.4.1.8072.1.3.2.3.1.= 2.4.101.120.116.116 SNMP OK - "extt running okay" | iso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.= 116.116=3D"extt running okay"=FFp=FF?Xiso.3.6.1.4.1.8072.1.3.2.3.1.2.4.10= 1.120.116.116 =3D STRING: "extt running okay" ;;;; =20 0000000 S N M P O K - " e x t t =20 0000020 r u n n i n g o k a y " | =20 0000040 i s o . 3 . 6 . 1 . 4 . 1 . 8 0 0000060 7 2 . 1 . 3 . 2 . 3 . 1 . 2 . 4 0000100 . 1 0 1 . 1 2 0 . 1 1 6 . 1 1 6 0000120 =3D " e x t t r u n n i n g o 0000140 k a y " 377 " \b p 377 ? 017 X i s o . 0000160 3 . 6 . 1 . 4 . 1 . 8 0 7 2 . 1 0000200 . 3 . 2 . 3 . 1 . 2 . 4 . 1 0 1 0000220 . 1 2 0 . 1 1 6 . 1 1 6 =3D S 0000240 T R I N G : " e x t t r u n 0000260 n i n g o k a y " \n ; ; ; ; =20 snmpget -l AuthPriv -v 3 -u Username -a MD5 -A abcdefg -x DES -X hijklmno= 192.168.16.11 .1.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116=20 NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" =3D STRING: extt running o= kay Oddly the output from the mangled one is 3 lines, 2 for the good one. Any thoughts what's going on or where to chase this? Thanks. --=20 - Kyle=20 --------------------------------------------- ky...@pa... http://www.panix.com/~kylet =20 --------------------------------------------- |