[Nagiosplug-devel] [ nagiosplug-Bugs-983801 ] check_hpjd fails to parse responses correctly

SourceForge.net noreply at sourceforge.net
Tue Nov 23 19:34:52 CET 2004


Bugs item #983801, was opened at 2004-07-02 00:57
Message generated for change (Comment added) made by stanleyhopcroft
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=983801&group_id=29880

Category: Parsing problem
Group: CVS
>Status: Pending
Resolution: None
Priority: 5
Submitted By: Gavan Fantom (gavan)
>Assigned to: Stanley Hopcroft (stanleyhopcroft)
Summary: check_hpjd fails to parse responses correctly

Initial Comment:
When running with net-snmp 5.1.1, check_hpjd fails to
parse the results correctly, as it doesn't expect
snmpget to return the type of the object along with its
value.

This can be fixed by adding "-OQ" to the snmpget command.

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

>Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2004-11-24 03:28

Message:
Logged In: YES 
user_id=395628

Adding an -OQ seems like  a good idea.

FWIW, a 5.1.2 snmpget works Ok with check_hpjd (but I don't
think it will break anything so I will add this).

pc09011> snmpget -m : -v 1 -c public ta27
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.12.0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.17.0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.19.0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.3.0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.12.0 = INTEGER: 0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.17.0 = INTEGER: 0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.2.19.0 = INTEGER: 0
SNMPv2-SMI::enterprises.11.2.3.9.1.1.3.0 = STRING:
"PROCESSING JOB"
pc09011>
pc09011> ./check_hpjd -H ta27
Printer ok - (STRING: "PROCESSING JOB.FROM TRAY 3")
pc09011> 
pc09011> snmpget -v |& head
snmpget: option requires an argument -- v
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

  Version:  5.1.2


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

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




More information about the Devel mailing list