[Nagiosplug-devel] [ nagiosplug-Bugs-1523748 ] check_disc uninitialized variable
SourceForge.net
noreply at sourceforge.net
Mon Jul 17 11:37:57 CEST 2006
Bugs item #1523748, was opened at 2006-07-17 11:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1523748&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dick van den Burg (vandenburgd)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_disc uninitialized variable
Initial Comment:
the new se->w_idfp and se->c_idfp in version 1.4.3 are
not initialized resulting in the following error (on
HP-UX 11.23)
check_disk -c 5% -w 10% -p /dev/vg00/lvol1
INPUT ERROR: C_IDFP (0.000000) should be less than
W_IDFP
(64768802081573470261722606760322190900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0)
and both should be between zero and 100 percent,
inclusive for /dev/vg00/lvol1
check_disk: Could not parse arguments
Usage: check_disk -w limit -c limit [-p path | -x
device] [-t timeout][-m] [-e] [-W limit] [-K limit]
[-v] [-q]
The following patch corrects this
*** check_disk.c Mon Jul 17 11:32:26 2006
--- check_disk.c.good Mon Jul 17 11:32:03 2006
***************
*** 462,467 ****
--- 462,469 ----
se->c_df = c_df;
se->w_dfp = w_dfp;
se->c_dfp = c_dfp;
+ se->w_idfp = w_idfp;
+ se->c_idfp = c_idfp;
se->found = 0;
se->found_len = 0;
*pathtail = se;
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1523748&group_id=29880
More information about the Devel
mailing list