[Nagiosplug-help] Problem with output of check_disk

Joerg Janes j.janes at gmx.de
Wed Nov 8 17:23:23 CET 2006


Hi Ton,

but if I use the check_disk from 1.4.4, the output of nagios is not 
correct also:

But if I call it from the commandline itself:
sauron:/usr/lib/nagios/plugins# ./check_disk -V
*check_disk (nagios-plugins 1.4.4) 1.78*
sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% -p 
"/dev/hdc1"
DISK OK - free space: /storage/media/video 127 GB (53% inode=-);| 
/storage/media/video=111GB;190;214;0;238

The wrong line in the web interface:

	
Disk Space 4 
<http://sauron/cgi-bin/nagios2/extinfo.cgi?type=2&host=sauron&service=Disk+Space+4> 


	

	OK 	2006-11-08 17:23:33 	0d 0h 50m 15s 	1/4 	DISK OK - free space: 
/storage/media/video *13348000600 GB (-179370% inode=-48%)*: 



To be honest, I have tested the check_disk plugin from the following 
versions:

    * 1.4.0
    * 1.4.3
    * 1.4.4
    * head from today

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?

Thanks in advance,
Joerg


Ton Voon schrieb:
> Hi!
>
> This was fixed in the plugins release 1.4.4.
>
> Ton
>
> On 8 Nov 2006, at 15:52, Joerg Janes wrote:
>
>> Hi folks,
>>
>> 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):
>>
>> The command definition:
>>     define command{
>>         command_name    check_disk_gb
>>         command_line    /usr/lib/nagios/plugins/check_disk -u GB -w 
>> $ARG1$ -c $ARG2$ -p $ARG3$
>>         }
>>
>> The service definition in the config file:
>>     define service{
>>             host_name                          sauron
>>             service_description             Disk Space 4
>>             check_command                   
>> check_disk_gb!20%!10%!"/dev/hdc1"
>>             use                             generic-service
>>     }
>>
>> The wrong line in the web interface:
>>     Disk Space 4    CRITICAL     2006-11-08 08:26:31     0d 19h 8m 1s 
>>     4/4     DISK CRITICAL - free space: /storage/media/video 
>> *136298985198123397907742720000 GB (100% inode=105%)*:
>>
>> But if I call it from the commandline itself:
>>     sauron:/usr/lib/nagios/plugins# ./check_disk -u GB -w 20% -c 10% 
>> -p "/dev/hdc1"
>>     DISK OK - free space: /storage/media/video *127 GB (53% 
>> inode=nan%)*;| /storage/media/video=111GB;190;214;-2147483648;238
>>
>> Does anyone have an idea how to fix this output error? Ist ist a 
>> problem of parsing the status output of the plugin?
>>
>> Some infos about my linux and nagios version-
>>     sauron:/usr/lib/nagios/plugins# uname -a
>>     Linux sauron 2.6.17-2-k7 #1 SMP Wed Sep 13 17:18:46 UTC 2006 i686 
>> GNU/Linux
>>     sauron:/usr/lib/nagios/plugins# ./check_disk -V
>>     check_disk (nagios-plugins 1.4.3) 1.68
>>     sauron:/usr/lib/nagios/plugins# nagios2 --version
>>     Nagios 2.5
>> I use the testing branch of Debian, which is called etch.
>>
>> Thanks in advance,
>> Impesa
>>
>
>
>
> http://www.altinity.com
> T: +44 (0)870 787 9243
> F: +44 (0)845 280 1725
> Skype: tonvoon
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20061108/358a0b2c/attachment.html>


More information about the Help mailing list