<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Dear all,<br>
<br>
I have researched a little more. I have compared the check_disk from
the following versions:<br>
<ul>
<li>1.4.0</li>
<li>1.4.3</li>
<li>1.4.4</li>
<li>head from today</li>
</ul>
Therefore, I have writte the following script:<br>
<br>
echo<br>
df -h<br>
echo<br>
echo 1.40:<br>
./check_disk.140 -u GB -w 20% -c 10% -p "/dev/hdc1"<br>
echo 1.43:<br>
./check_disk.143 -u GB -w 20% -c 10% -p "/dev/hdc1"<br>
echo 1.44:<br>
./check_disk.144 -u GB -w 20% -c 10% -p "/dev/hdc1"<br>
echo head:<br>
./check_disk.head -u GB -w 20% -c 10% -p "/dev/hdc1"<br>
echo<br>
echo 1.40:<br>
./check_disk.140 -u GB -w 20% -c 10% -p "/dev/hda3"<br>
echo 1.43:<br>
./check_disk.143 -u GB -w 20% -c 10% -p "/dev/hda3"<br>
echo 1.44:<br>
./check_disk.144 -u GB -w 20% -c 10% -p "/dev/hda3"<br>
echo head:<br>
./check_disk.head -u GB -w 20% -c 10% -p "/dev/hda3"<br>
echo<br>
<br>
<br>
The output of the script is as follows:<br>
<br>
sauron:/usr/lib/nagios/plugins# ./check_disk.test<br>
<br>
Dateisystem Größe Benut Verf Ben% Eingehängt auf<br>
<b>/dev/hda3 56G 1,2G 55G 3% /</b><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>/dev/hdc1 239G 108G 131G 46% /storage/media/video</b><br>
/dev/hdc2 60G 33M 60G 1% /backup<br>
<br>
1.40:<br>
DISK OK - free space: /storage/media/video 131 GB (55%);|
/storage/media/video=108GB;190;214;0;238<br>
1.43:<br>
DISK OK - free space: /storage/media/video 131 GB (55% inode=nan%);|
/storage/media/video=108GB;190;214;<b>-2147483648</b>;238<br>
1.44:<br>
DISK OK - free space: /storage/media/video 130 GB (54% inode=-);|
/storage/media/video=107GB;190;214;0;238<br>
head:<br>
DISK OK - free space: /storage/media/video 130 GB (54% inode=-);|
/storage/media/video=107GB;190;214;0;238<br>
<br>
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 <b>(98% inode=nan%);</b>| /=1GB;44;49;<b>-2147483648</b>;55<br>
1.44:<br>
DISK OK - free space: <b>/dev 0 GB</b> (99% inode=98%);| <b>/dev=0GB</b>;0;0;0;0<br>
head:<br>
DISK OK - free space: <b>/dev 0 GB</b> (99% inode=98%);| <b>/dev=0GB</b>;0;0;0;0<br>
<br>
I have marked the part, which seems to be a liitle "strange".<br>
<br>
Current Situation, none of the check_disk commands shows the correct
status info in the web interface...<br>
<br>
Any ideas, how to debug/analyse further?<br>
<br>
Thanks in advance,<br>
Joerg<br>
<br>
<br>
<br>
Joerg Janes schrieb:
<blockquote cite="mid4552047B.4010407@gmx.de" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Hi Ton,<br>
<br>
but if I use the check_disk from 1.4.4, the output of nagios is not
correct also:<br>
<br>
But if I call it from the commandline itself:<br>
sauron:/usr/lib/nagios/plugins# ./check_disk -V<br>
<b>check_disk (nagios-plugins 1.4.4) 1.78</b><br>
sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% -p
"/dev/hdc1" <br>
DISK OK - free space: /storage/media/video 127 GB (53% inode=-);|
/storage/media/video=111GB;190;214;0;238<br>
<br>
The wrong line in the web interface:<br>
<table class="status" border="0" width="100%">
<tbody>
<tr>
<td><br>
</td>
<td class="statusOdd">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="statusOdd" align="left" valign="center"><a
href="http://sauron/cgi-bin/nagios2/extinfo.cgi?type=2&host=sauron&service=Disk+Space+4">Disk
Space 4</a></td>
</tr>
</tbody>
</table>
</td>
<td class="statusOdd" align="right">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td class="statusOK">OK</td>
<td class="statusOdd" nowrap="nowrap">2006-11-08 17:23:33</td>
<td class="statusOdd" nowrap="nowrap"> 0d 0h 50m 15s</td>
<td class="statusOdd">1/4</td>
<td class="statusOdd">DISK OK - free space:
/storage/media/video <font color="#ff0000"><b>13348000600 GB (-179370%
inode=-48%)</b></font>: </td>
</tr>
</tbody>
</table>
<br>
<br>
To be honest, I have tested the check_disk plugin from the following
versions:<br>
<ul>
<li>1.4.0</li>
<li>1.4.3</li>
<li>1.4.4</li>
<li>head from today</li>
</ul>
All plugins have an different output in the webinterface - but if I
call the plugin from the commandline, all seems to be correct? Do you
have any ideas how to proceed with logging/debugging?<br>
<br>
Thanks in advance,<br>
Joerg<br>
<br>
<br>
Ton Voon schrieb:
<blockquote
cite="midF9F84CFD-F139-4989-B984-1276D1220DC4@altinity.com" type="cite">
<div>Hi!</div>
<div><br class="khtml-block-placeholder">
</div>
<div>This was fixed in the plugins release 1.4.4.</div>
<div><br class="khtml-block-placeholder">
</div>
<div>Ton</div>
<div><br>
<div>
<div>On 8 Nov 2006, at 15:52, Joerg Janes wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"> Hi folks,<br>
<br>
i'm new with nagios configuration and struggle with an error in the
display of the disk usage in the web interface of nagios2. I want to
display the disk usage of the localhost (sauron):<br>
<br>
The command definition:<br>
define command{<br>
command_name check_disk_gb<br>
command_line /usr/lib/nagios/plugins/check_disk -u GB -w
$ARG1$ -c $ARG2$ -p $ARG3$<br>
}<br>
<br>
The service definition in the config file:<br>
define service{<br>
host_name sauron<br>
service_description Disk Space 4<br>
check_command
check_disk_gb!20%!10%!"/dev/hdc1"<br>
use generic-service <br>
}<br>
<br>
The wrong line in the web interface:<br>
Disk Space 4 CRITICAL 2006-11-08 08:26:31 0d 19h 8m 1s
4/4 DISK CRITICAL - free space: /storage/media/video <font
color="#ff0000"><b>136298985198123397907742720000 GB (100% inode=105%)</b></font>:
<br>
<br>
But if I call it from the commandline itself:<br>
sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% -p
"/dev/hdc1"<br>
DISK OK - free space: /storage/media/video <font color="#ff0000"><b>127
GB (53% inode=nan%)</b></font>;|
/storage/media/video=111GB;190;214;-2147483648;238<br>
<br>
Does anyone have an idea how to fix this output error? Ist ist a
problem of parsing the status output of the plugin?<br>
<br>
Some infos about my linux and nagios version-<br>
sauron:/usr/lib/nagios/plugins# uname -a<br>
Linux sauron 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686
GNU/Linux<br>
sauron:/usr/lib/nagios/plugins# ./check_disk -V<br>
check_disk (nagios-plugins 1.4.3) 1.68<br>
sauron:/usr/lib/nagios/plugins# nagios2 --version<br>
Nagios 2.5<br>
I use the testing branch of Debian, which is called etch.<br>
<br>
Thanks in advance,<br>
Impesa<br>
<br class="khtml-block-placeholder">
</blockquote>
</div>
<br>
<div> <span class="Apple-style-span"
style="border-collapse: separate; border-spacing: 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-indent: 0px; 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; 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-indent: 0px; 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; 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-indent: 0px; 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; 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-indent: 0px; 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; 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-indent: 0px; 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; 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-indent: 0px; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px;">
<div><br class="khtml-block-placeholder">
</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>
</blockquote>
<br>
<pre wrap="">
<hr size="4" width="90%">
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
<a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a></pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nagiosplug-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a>
::: Please include plugins version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
<br>
</body>
</html>