[Nagiosplug-devel] patch check_hpjd.c (nagios-plugins-1.3.0)
Subhendu Ghosh
sghosh at sghosh.org
Thu May 22 10:48:02 CEST 2003
This has been fixed in CVS - both HEAD and r1_3_0 branches.
-sg
On Thu, 22 May 2003, Otto Jongerius wrote:
> 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
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> _______________________________________________
> Nagiosplug-devel mailing list
> Nagiosplug-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
--
More information about the Devel
mailing list