check_disk
Hugo van der Kooij
hvdkooij at vanderkooij.org
Wed Dec 20 16:13:27 CET 2006
On Wed, 20 Dec 2006, Matthias wrote:
> i am wondering about the output of the check_disk plugins:
> on the ext3 partition is 38% of inodes used:
>
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sda2 9.2G 3.3G 5.5G 38% /
That will be disk blocks, not inodes (See the df manual page)
> but the check_disk plugins says the parttion has less than 5% inodes
> free:
>
> # /usr/lib/nagios/plugins/check_disk --icritical=5% -p /;echo $?
> DISK CRITICAL - free space: / 5568 MB (62% inode=69%);| /
> =3343MB;-2147483648;-2147483648;0;9388
> 2
The help page seems to indicate this is a check on free space. But it
seems to act more like used space. But a quick check here seems to
indicate it is not doing any sane check on inodes at all.
Regardless of how I run it I see some bogus values in the output:
$ /usr/lib/nagios/plugins/check_disk -K 99% -p /var
DISK OK - free space: /var 52274 MB (82% inode=98%);| /var=10724MB;-2147483648;-2147483648;0;66370
So I think it is safe to assume the plugin is in fact broken. But unless
you have a very specific application capable of creating loads of tiny
files on your system you are unlikely to run out of inodes.
Hugo.
--
hvdkooij at vanderkooij.org http://hvdkooij.xs4all.nl/
This message is using 100% recycled electrons.
-------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list