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

SourceForge.net noreply at sourceforge.net
Fri Feb 13 10:16:40 CET 2004


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

Category: Enhancement
Group: None
Status: Open
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 */


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

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