[Nagiosplug-devel] check_hpjd patch for net-snmp v5.0

Michael Haro michael.haro at ceres.ca.gov
Fri Dec 6 16:28:03 CET 2002


need to change the argument order...

*** check_hpjd.c.orig   Fri Dec  6 16:19:50 2002
--- check_hpjd.c        Fri Dec  6 16:20:21 2002
***************
*** 137,144 ****
                 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);
--- 137,144 ----
                 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);


Michael





More information about the Devel mailing list