<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Joerg,<DIV><BR><DIV><DIV>On 9 Nov 2006, at 18:15, Joerg Janes wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Ton Voon schrieb: <BLOCKQUOTE cite="mid0D99BFE7-2A63-47EF-8149-29C37E2005F1@altinity.com" type="cite"><DIV>I think there's two things going on here:</DIV> <DIV><BR class="khtml-block-placeholder"> </DIV> <DIV>1. The web interface is showing a different output because, I think, you are not running check_disk remotely. All check commands run on the Nagios server. You need NRPE / check_by_ssh / some other mechanism to run check_disk on the monitored server.</DIV> </BLOCKQUOTE> Sauron ist the localhost - therefore I am running the check_disk command locally. Do I have to specify the hostname with localhost or ti sauron also OK?<BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>I'm afraid that is outside of scope for me. Lookup NRPE or the Nagios docs for executing plugins remotely.</DIV><DIV><BR><BLOCKQUOTE type="cite"><BLOCKQUOTE cite="mid0D99BFE7-2A63-47EF-8149-29C37E2005F1@altinity.com" type="cite"><DIV>2. The first set of output from head for /storage/media/video looks correct (bar a rounding error - not sure why that would be true). The /dev is completely wrong though. What OS are you using? Also, can you run df --version to see which version of coreutils you are on.</DIV> </BLOCKQUOTE> I'm running a debian "etch" linux. <BR> <BR> I figured out that I have a problem with the permissions. See the output below:<BR> <BR> sauron:/usr/lib/nagios/plugins# ./check_disk.test<BR> <BR> <B>df (GNU coreutils) 5.97</B><BR> Copyright © 2006 Free Software Foundation, Inc.<BR> Dieses Programm ist freie Software. Sie dürfen Kopien davon weitergeben gemäß<BR> der GNU General Public License <A class="moz-txt-link-rfc2396E" href="http://www.gnu.org/licenses/gpl.html"><http://www.gnu.org/licenses/gpl.html></A>.<BR> Es gibt KEINERLEI GARANTIE, so weit das Gesetz es erlaubt.<BR> <BR> Geschrieben von Torbjorn Granlund, David MacKenzie und Paul Eggert.<BR> <BR> Dateisystem Größe Benut Verf Ben% Eingehängt auf<BR> /dev/hda3 56G 1,2G 55G 3% /<BR> udev 10M 72K 10M 1% /dev<BR> devshm 380M 0 380M 0% /dev/shm<BR> /dev/hda1 449M 55M 371M 13% /boot<BR> /dev/hdb1 116G 37G 79G 32% /storage<BR> <B>df: »/storage/media/video«: Keine Berechtigung</B><BR> /dev/hdc2 60G 33M 60G 1% /backup<BR> <BR> 1.40:<BR> DISK CRITICAL - free space: /storage/media/video 0 GB (100%);| /storage/media/video=0GB;0;0;0;0<BR> 1.43:<BR> DISK CRITICAL - free space: /storage/media/video 136365986965471102819798876160 GB (100% inode=105%);| /storage/media/video=1793396483GB;1762311124;-1775496369;104;-1018336566<BR> 1.44:<BR> DISK OK - free space: /storage/media/video 14202719064 GB (-179268% inode=-48%);| /storage/media/video=-2147483648GB;-2147483648;-2147483648;0;-2147483648<BR> head:<BR> DISK OK - free space: /storage/media/video 2937176920 GB (-179326% inode=-48%);| /storage/media/video=-2147483648GB;-2147483648;-2147483648;0;-2147483648<BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Please can you fix the permissions problem and retry the plugin.</DIV><DIV><BR><BLOCKQUOTE type="cite">1.40:<BR> DISK OK - free space: / 54 GB (98%);| /=1GB;44;49;0;55<BR> 1.43:<BR> DISK OK - free space: / 54 GB (98% inode=nan%);| /=1GB;44;49;-2147483648;55<BR> 1.44:<BR> DISK OK - free space: /dev 0 GB (99% inode=98%);| /dev=0GB;0;0;0;0<BR> head:<BR> DISK OK - free space: /dev 0 GB (99% inode=98%);| /dev=0GB;0;0;0;0<BR></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>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"?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The workaround is to run check_disk against /, not /dev/hda3.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>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.</DIV><DIV><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ton</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="http://www.altinity.com">http://www.altinity.com</A></DIV><DIV>T: +44 (0)870 787 9243</DIV><DIV>F: +44 (0)845 280 1725</DIV><DIV>Skype: tonvoon</DIV></SPAN></SPAN></SPAN></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>