[Nagiosplug-devel] [ nagiosplug-Patches-698384 ] check_hpjd with net-snmp 5.0 - argument fix

SourceForge.net noreply at sourceforge.net
Wed Mar 5 16:54:18 CET 2003


Patches item #698384, was opened at 2003-03-05 19:17
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=698384&group_id=29880

>Category: None
>Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael (mharo)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_hpjd with net-snmp 5.0 - argument fix

Initial Comment:
the argument order to snmpget need to be changed to 
support net-snmp 5.0.

*** plugins/check_hpjd.c.orig   Wed Mar  5 15:50:13 
2003
--- plugins/check_hpjd.c        Wed Mar  5 15:53:43 2003
***************
*** 139,146 ****
                 HPJD_GD_DOOR_OPEN, 
HPJD_GD_PAPER_OUTPUT, 
HPJD_GD_STATUS_DISPLAY
);

        /* get the command to run */
!       sprintf (command_line, "%s -m : -v 1 %s -c %s %
s", PATH_TO_SNMPGET, addr
ess,
!                                        community, query_string);

        /* run the command */
        child_process = spopen (command_line);
--- 139,146 ----
                 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, address, 
query_string);

        /* run the command */
        child_process = spopen (command_line);


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

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




More information about the Devel mailing list