check_snmp on Sol 10 mangling data

Kyle Tucker kylet at panix.com
Fri Mar 3 22:01:46 CET 2006


Hi,
	I had check_snmp from the 1.4.2 plugins working great with 
Net-SNMP 5.2.2 on Solaris 8. I have built it all on Solaris 10 now 
for my production server and I get mangled data back from check_snmp
going to the exact same snmpd client. 

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 authPriv \
-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="extt running okay";;;;  

0000000   S   N   M   P       O   K       -       "   e   x   t   t    
0000020   r   u   n   n   i   n   g       o   k   a   y   "       |    
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   =   "   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 
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" = STRING: extt running okay

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 authPriv \
-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="extt running okay"ÿpÿ?Xiso.3.6.1.4.1.8072.1.3.2.3.1.2.4.101.120.116.116 = STRING: "extt running okay"
;;;;  

0000000   S   N   M   P       O   K       -       "   e   x   t   t    
0000020   r   u   n   n   i   n   g       o   k   a   y   "       |    
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   =   "   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       =       S
0000240   T   R   I   N   G   :       "   e   x   t   t       r   u   n
0000260   n   i   n   g       o   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 
NET-SNMP-EXTEND-MIB::nsExtendOutputFull."extt" = STRING: extt running okay

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.

-- 
- 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&kid0944&bid$1720&dat1642
_______________________________________________
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