check_disk

Andreas Ericsson ae at op5.se
Wed Dec 20 16:56:12 CET 2006


Marc Powell wrote:
> 
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Marc Powell
>> Sent: Wednesday, December 20, 2006 9:35 AM
>> To: Nagios Users mailinglist
>> Subject: Re: [Nagios-users] check_disk
>>
>>
>>
>>> -----Original Message-----
>>> From: nagios-users-bounces at lists.sourceforge.net
> [mailto:nagios-users-
>>> bounces at lists.sourceforge.net] On Behalf Of Hugo van der Kooij
>>> Sent: Wednesday, December 20, 2006 9:13 AM
>>> To: Nagios Users mailinglist
>>> Subject: Re: [Nagios-users] check_disk
>>>
>> [chop]
>>
>>> Regardless of how I run it I see some bogus values in the output:
>>>
>>> $ /usr/lib/nagios/plugins/check_disk -K 99% -p /var
>>> DISK OK - free space: /var 52274 MB (82% inode=98%);| /var=10724MB;-
>>> 2147483648;-2147483648;0;66370
>>>
>>> So I think it is safe to assume the plugin is in fact broken. But
>> unless
>>> you have a very specific application capable of creating loads of
> tiny
>>> files on your system you are unlikely to run out of inodes.
>> 1.64 (from plugins-1.4.3) works successfully here (RHAS3.7 checking an
>> ext3 formatted LVM partition) --
>>
>> $ ./check_disk --version
>> check_disk (nagios-plugins 1.4.3) 1.64
>>
>> $ ./check_disk --icritical 91%  /
>> DISK CRITICAL - free space: / 2546 MB (32% inode=90%);|
>> /=5328MB;7874;7874;89;7874
>>
>> $ ./check_disk --icritical 1%  /
>> DISK OK - free space: / 2546 MB (32% inode=90%);|
>> /=5328MB;7874;7874;89;7874
> 
> 1.79 from plugins-1.4.5 appears borked --
> 
> $ ./check_disk --version
> check_disk (nagios-plugins 1.4.5) 1.79
> 
> $ ./check_disk --icritical 91%  /
> DISK OK - free space: / 2531 MB (33% inode=89%);|
> /=4942MB;-2147483648;-2147483648;0;7874
> 
> $ ./check_disk --icritical 1%  /
> DISK CRITICAL - free space: / 2531 MB (33% inode=89%);|
> /=4942MB;-2147483648;-2147483648;0;7874
> 

Looks to me like it's only the performance data that doesn't get 
initialized, and some genius swapped the meaning of "critical" around, 
so that it now matches inversely of what it earlier did. Very sexy...

I'll import it to git and see what's been going on.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list