check_snmp on Sol 10 mangling data

Kyle Tucker kylet at panix.com
Mon Mar 6 12:43:07 CET 2006


I just want to add that snmpget returns a good clean string on both
Solaris 8 and 10. I also copied over and ran the check_snmp that I 
built (and runs well) on Solaris 8 on the Solaris 10 system and it
too returns the garbage strings. So I'm at a total loss as to what
about Solaris 10 that would cause such behavior, but it's bad enough
that I cannot use check_snmp dependably.

> 	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
> ---------------------------------------------
> kylet at panix.com   http://www.panix.com/~kylet   =20
> ---------------------------------------------
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 


-- 
- Kyle 
---------------------------------------------
kylet at panix.com   http://www.panix.com/~kylet    
---------------------------------------------


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list