[Nagiosplug-devel] [ nagiosplug-Bugs-1985492 ] check_disk wrongly treats devices as being NFS shares

SourceForge.net noreply at sourceforge.net
Tue Apr 13 14:27:39 CEST 2010


Bugs item #1985492, was opened at 2008-06-05 10:14
Message generated for change (Comment added) made by dermoth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1985492&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: Closed
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Jan Wagner (cyco_dd)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_disk wrongly treats devices as being NFS shares

Initial Comment:
The following Bugreport we got against our debian package:

Hiya,

check_disk -l or -L

is meant to check only the local file systems, so it excludes
the NFS mounted ones.

But to do so, it checks whether the "mount device" contains a
":" instead of checking the filesystem type.

For instance, that means that it won't check filesystems on
local devices that have ":" in their path. Example:
/dev/mapper/vol-snaphost-2008-04-30-08:00:00

You can track the bugreport via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479045

Thanks and kind regards, Jan.


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

>Comment By: Thomas Guyot-Sionnest (dermoth)
Date: 2010-04-13 08:27

Message:
This is a Gnulib bug - please report it against Gnulib.

http://www.gnu.org/software/gnulib/

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

Comment By: Matthias Eble (psychotrahe)
Date: 2008-06-07 10:11

Message:
Logged In: YES 
user_id=1694341
Originator: NO

This is actually a gnulib problem.

from gl/mountlist.c:
/* A file system is `remote' if its Fs_name contains a `:'
   or if (it is of type (smbfs or cifs) and its Fs_name starts with `//').
 */

Thus gnu df -l should have the same problem also. 
But checking the filesystem type would OTOH require knowing all the remote
filesystem types.
This might be leading to more such problems than the current solution.

I'm totally fine with syncing the gnulib code if someone can get a
solution committed there.



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

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




More information about the Devel mailing list