[Nagiosplug-devel] [ nagiosplug-Bugs-2616403 ] check_disk - option "--ignore-inaccessible" would be neat

SourceForge.net noreply at sourceforge.net
Thu Feb 19 15:14:04 CET 2009


Bugs item #2616403, was opened at 2009-02-19 15:14
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=2616403&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: Jan Wagner (cyco_dd)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_disk - option "--ignore-inaccessible" would be neat

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

[...]

| weasel at malo:~$ /usr/lib/nagios/plugins/check_disk 90 95
| DISK CRITICAL - /home/buildd/chroots/etch/proc is not accessible: Permission denied

I think this commit is to blame:

| 2007-07-10 20:18  psychotrahe
| 
|         * [r1754] NEWS, plugins/check_disk.c, plugins/t/check_disk.t:
|           Check_disk now calls stat() for all filesystems to check.
|           Check_disk prints an strerror() message if the call of stat()
|           fails.

[...]

weasel at simona:~$ sudo chmod o-rx /mnt/test
weasel at simona:~$ stat /mnt/test/mountpoint
stat: cannot stat `/mnt/test/mountpoint': Permission denied

[...]

so as discussed on IRC, adding an option "--ignore-inaccessible" would be neat.

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

I would say, an option, which skips mount points with missing permissions would be a good idea.

With kind regards, Jan.

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

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




More information about the Devel mailing list