[Nagiosplug-devel] [ nagiosplug-Patches-698384 ] check_hpjd with net-snmp 5.0 - argument fix
SourceForge.net
noreply at sourceforge.net
Fri Apr 11 09:56:05 CEST 2003
Patches item #698384, was opened at 2003-03-05 19:17
Message generated for change (Comment added) made by sghosh
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=698384&group_id=29880
Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Michael (mharo)
Assigned to: Subhendu Ghosh (sghosh)
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);
----------------------------------------------------------------------
>Comment By: Subhendu Ghosh (sghosh)
Date: 2003-04-11 13:11
Message:
Logged In: YES
user_id=46572
fixed in both r1_3_0 and HEAD branches
----------------------------------------------------------------------
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