[Nagiosplug-help] Problem with output of check_disk

Joerg Janes j.janes at gmx.de
Fri Nov 10 08:41:20 CET 2006


Hi Ton,

Ton Voon schrieb:
> Yes, I think the head figures are due to the permission. This is a bug 
> - the plugin should error when the figures have not been collected 
> properly.
>
> Please can you fix the permissions problem and retry the plugin.
Meanwhile, I have fixed the first problem with the output - the reson 
was the permissions of the folder. Nagios was not allowed to read this 
folder. Adding nagios to the right group, the output for /dev/hdc3 is OK 
now - Thanks a lot for your help...

> I still don't understand this one. The head version is effectively 
> doing a "df /dev/hda3". This should match to /, but it looks like it 
> has found /dev. What is the output from "df /dev/hda3"?
sauron:/usr/lib/nagios/plugins# df /dev/hda3
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda3             58097292   1222368  56874924   3% /

> There is possibly a bug here in that it should match the device if 
> there is an exact match before finding the closest path match.
>
> The workaround is to run check_disk against /, not /dev/hda3.
Thanks - the workaround is OK and works fine!
> Also, can you run check_disk without the -u GB parameter? I think, 
> because the inode value is showing 98% and the free space is showing 
> 99%, that there is a rounding of 10MB down to 0GB.
sauron:/usr/lib/nagios/plugins# ./check_disk.test

df (GNU coreutils) 5.97
Copyright © 2006 Free Software Foundation, Inc.
Dieses Programm ist freie Software. Sie dürfen Kopien davon weitergeben 
gemäß
der GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
Es gibt KEINERLEI GARANTIE, so weit das Gesetz es erlaubt.

Geschrieben von Torbjorn Granlund, David MacKenzie und Paul Eggert.

Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
/dev/hda3              56G  1,2G   55G   3% /
udev                   10M   72K   10M   1% /dev
devshm                380M     0  380M   0% /dev/shm
/dev/hda1             449M   55M  371M  13% /boot
/dev/hdb1             116G   37G   79G  32% /storage
/dev/hdc1             239G  105G  134G  44% /storage/media/video
/dev/hdc2              60G   33M   60G   1% /backup

1.40:
DISK OK - free space: /storage/media/video 136826 MB (56%);| 
/storage/media/video=107319MB;195315;219729;0;244144
1.43:
DISK OK - free space: /storage/media/video 136826 MB (56% inode=nan%);| 
/storage/media/video=107319MB;195315;219729;-2147483648;244144
1.44:
DISK OK - free space: /storage/media/video 136825 MB (56% inode=-);| 
/storage/media/video=107318MB;195315;219729;0;244144
head:
DISK OK - free space: /storage/media/video 136825 MB (56% inode=-);| 
/storage/media/video=107318MB;195315;219729;0;244144

DISK OK - free space: /storage/media/video 136825 MB (56% inode=-);| 
/storage/media/video=107318MB;195315;219729;0;244144

1.40:
DISK OK - free space: / 55542 MB (98%);| /=1194MB;45388;51061;0;56735
1.43:
DISK OK - free space: / 55542 MB (98% inode=nan%);| 
/=1194MB;45388;51061;-2147483648;56735
1.44:
DISK OK - free space: / 55541 MB (97% inode=-);| 
/=1193MB;45388;51061;0;56735
head:
DISK OK - free space: / 55541 MB (97% inode=-);| 
/=1193MB;45388;51061;0;56735

Thanks,
Joerg





More information about the Help mailing list