[Nagiosplug-devel] patch for check_hpjd.c

nsnag nsnag at lists.com.ar
Fri Jul 26 07:15:13 CEST 2002


Hi,
After migrating from UCD-SNMP to net-snmp-5.0.2a.tar.gz we had to patch
check_hpjd.c to add the "-c"option for the community.
Regards,
Maria


*** check_hpjd.c        Fri Jul 26 11:12:20 2002
--- check_hpjd.new      Fri Jul 26 11:12:08 2002
***************
*** 135,141 ****
                 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 %s %s", PATH_TO_SNMPGET,
address,
                                         community, query_string);
  
        /* run the command */
--- 135,141 ----
                 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,
address,
                                         community, query_string);
  
        /* run the command */







More information about the Devel mailing list