<!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">
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>
</body>
</html>