[Nagiosplug-devel] [ nagiosplug-Bugs-2872843 ] check_disk reports disk usage on bind mounted volumes

SourceForge.net noreply at sourceforge.net
Tue Nov 17 12:35:06 CET 2009


Bugs item #2872843, was opened at 2009-10-05 04:44
Message generated for change (Settings changed) made by dermoth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=2872843&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Troy Rose (troyjrose)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_disk reports disk usage on bind mounted volumes

Initial Comment:
The check disk usage reports disk usage on bind mounted filesystems when specifying local only filesystems.
This in itself isn't a problem but the problem comes when the filesystem being bind mounted is not a local filesystem
I'm using the latest version of the nagios plugins (1.14).

I'm submitted a patch to check disk that allows excluding of partitions that match certain mount options.


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

Comment By: Troy Rose (troyjrose)
Date: 2009-10-07 05:14

Message:
I've noticed that on RHEL4 systems the bind mounts are not set as
filesystem type "none", and are still displayed. So I've added in another
macro to mountlist.c to fix this and check for a bind mounted option, and
set it as a dummy filesystem. I've attached the patch.

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

Comment By: Troy Rose (troyjrose)
Date: 2009-10-07 03:56

Message:
Okay, I've gotten to the bottom of it. There is an almost unsed static
variable in the check_disk plugin which is used to display or not display
dummy filesystems (like proc etc). So, setting that to disabled, everything
works as expected, and bind filesystesm (which show up as type "none") dont
get displayed anymore.

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

Comment By: Troy Rose (troyjrose)
Date: 2009-10-05 04:46

Message:
Oopps I meant I'm using the latest public release 1.4.14 of the
nagios-plugins.

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

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




More information about the Devel mailing list