[Nagiosplug-devel] [ nagiosplug-Bugs-3506096 ] snmp_check return only first line

SourceForge.net noreply at sourceforge.net
Fri Mar 16 15:27:12 CET 2012


Bugs item #3506096, was opened at 2012-03-16 07:27
Message generated for change (Tracker Item Submitted) made by maxxsm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3506096&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: max (maxxsm)
Assigned to: Nobody/Anonymous (nobody)
Summary: snmp_check return only first line

Initial Comment:
when OID contain newline symbol(\r)  plugin return only first of them.
for example getting sysDescr:
# /usr/lib/nagios/plugins/check_snmp  -v -H x.x.x.x -o sysDescr.0  -C xxxxx 
/usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 [authpriv] x.x.x.x:161 sysDescr.0
.1.3.6.1.2.1.1.1.0 = STRING: Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(55)SE, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2010 by Cisco Systems, Inc.
Compiled Sat 07-Aug-10 22:26 by prod_rel_team
 | P OK - Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(55)SE, RELEASE SOFTWARE (fc2)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3506096&group_id=29880




More information about the Devel mailing list