[Nagiosplug-devel] patch check_hpjd.c (nagios-plugins-1.3.0)

Otto Jongerius otto at bookings.net
Thu May 22 08:05:04 CEST 2003


Hi,

check_hpdj (Last Modified: $Date: 2003/02/03 05:07:26 $) from nagios-plugins-1.3.0
barfed when I tried to run it (host not responding) because the order of line 139 of
check_hpjd.c is wrong. Following patch fixes this:

[otto at foo>diff -u check_hpjd.c /home/otto/check_hpjd.c.patch ~/foobar/nagios-plugins-1.3.0/plugins
--- check_hpjd.c        Sat Feb 15 13:48:44 2003
+++ /home/otto/check_hpjd.c.patch       Thu May 22 16:37:35 2003
@@ -139,8 +139,8 @@
                 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);
+       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);

--
Otto Jongerius




More information about the Devel mailing list