[Nagiosplug-devel] [ nagiosplug-Bugs-1420741 ] check_swap: incorrect totals for multiple partitions (BSD)

SourceForge.net noreply at sourceforge.net
Tue Jan 31 09:29:02 CET 2006


Bugs item #1420741, was opened at 2006-01-31 08:28
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=1420741&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: General plugin execution
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Scott Thompson (scottyt)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_swap: incorrect totals for multiple partitions (BSD)

Initial Comment:
The swapctl-based portion of check_swap does not
correctly handle multiple swap partitions.  It builds
incorrect totals for total space + usage by summing the
values from the first configured partition n times
where n is the number of configured partitions.

A loop to examine each swapent structure in the array
returned by swapctl exists, however the loop index is
never used to access each element.

A patch to revision 1.54 that fixes this behaviour
(tested & confirmed working) is attached.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1420741&group_id=29880




More information about the Devel mailing list