[Nagiosplug-devel] [ nagiosplug-Patches-846329 ] remove snmp type output in check_hpjd

SourceForge.net noreply at sourceforge.net
Wed Nov 24 00:08:38 CET 2004


Patches item #846329, was opened at 2003-11-21 02:56
Message generated for change (Comment added) made by stanleyhopcroft
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=846329&group_id=29880

Category: Enhancement
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Antony Simmonds (asimmonds)
Assigned to: Subhendu Ghosh (sghosh)
Summary: remove snmp type output in check_hpjd

Initial Comment:

If I use snmpget from net-snmp v5.07, it will show the 
snmp type in the output from the plugin. The "-O Q" flag 
suppresses the type label from snmpget's output.

So instead of the nagios status string showing:
Printer ok - (STRING: "00 READY") 
it now shows:
Printer ok - ("00 READY") 

--- check_hpjd.orig     2003-11-11 09:48:12.000000000 
+1300
+++ check_hpjd.c        2003-11-21 15:03:27.000000000 
+1300
@@ -103,7 +103,7 @@
                 HPJD_GD_DOOR_OPEN, 
HPJD_GD_PAPER_OUTPUT, HPJD_GD_STATUS_DISPLAY);

        /* get the command to run */
-       sprintf (command_line, "%s -m : -v 1 -c %s %s %
s", PATH_TO_SNMPGET, community,
+       sprintf (command_line, "%s -m : -v 1 -O Q -c %s 
%s %s", PATH_TO_SNMPGET, community,
                                                                        
address, query_string);

        /* run the command */


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

>Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2004-11-24 05:33

Message:
Logged In: YES 
user_id=395628

Thank you very much for the patch.

Will be completed along with bug 889948 (supress hex output of
ASCII strings).

Should be committed in HEAD very shortly.

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

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




More information about the Devel mailing list