[Nagiosplug-help] Problems with check_disk
Ton Voon
ton.voon at altinity.com
Wed Dec 6 16:04:59 CET 2006
Jens,
I think this is a bug in check_disk. It takes the -p parameter and
tries to find the "closest match" in the filesystems list. However,
it should walk through the list of devices first to see if any of
those matches exactly first.
I'll take a look at this over the next few days.
Ton
On 6 Dec 2006, at 14:24, Jens Link wrote:
> Hi,
>
> I just ran across a small problem with th check_disk plugin running on
> Debian/testing. I can verify this on a second system also running
> Debian/testing. Running the same plugin on Debian/stable works fine. I
> used the Debian package as well as a self compiled version fresh from
> the tar ball.
>
> ,----
> | root:~/nagios-plugins-1.4.5/plugins# ./check_disk -V
> | check_disk (nagios-plugins 1.4.5) 1.79
> `----
>
> When I run check_disk against / (/dev/sda5 in the example) I get some
> strange results:
>
> ,----
> | root:~/nagios-plugins-1.4.5/plugins# ./check_disk -w 10 -c 20 -p \
> | /dev/hda5 DISK CRITICAL - free space: /dev 9 MB (99%
> inode=98%);| \
> ^^^^
> | /dev=0MB;0;-10;0;10
> `----
>
> It works fine when I use the mount point or another device:
>
> ,----
> | root:~/nagios-plugins-1.4.5/plugins# ./check_disk -w 10 -c 20 -p / \
> | DISK OK - free space: / 11652 MB (72% inode=92%);| \
> | /=4383MB;16883;16873;0;16893
> |
> | root@:~/nagios-plugins-1.4.5/plugins# ./check_disk -w 10 -c 20 -p \
> | /dev/hda7 DISK OK - free space: /home 20681 MB (22%
> inode=96%);| \
> | /home=72268MB;93893;93883;0;93903
> `----
>
> Here's the disk layout. Mabye it has something to to with udev?
>
> ,----
> | root:~/nagios-plugins-1.4.5/plugins# df -h
> | Filesystem Size Used Avail Use% Mounted on
> | /dev/hda5 17G 4.3G 12G 28% /
> | udev 10M 72K 10M 1% /dev
> | devshm 506M 0 506M 0% /dev/shm
> | /dev/hda7 92G 71G 21G 78% /home
> `----
>
> cheers,
>
> Jens
> --
> sage at guug Berlin: http://www.guug.de/lokal/berlin/index.html
> http://www.openbc.com/go/invita/4269460
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
>
> This message has been scanned for viruses by MailController -
> www.MailController.altohiway.com
http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061206/c127375e/attachment.html>
More information about the Help
mailing list