[Nagiosplug-devel] check_disk plugin problems

Stefan Lambrev stefan.lambrev at sun-fish.com
Fri Jul 20 11:26:39 CEST 2007


Hello,

Matthias Eble wrote:
> Stefan Lambrev schrieb:
>> Hello,
>>
>> I'm having some strange problems with nagios' check_disk plugin under 
>> FreeBSD i386 7-current.
>>
>> 1st if I use -p /some/path the plugin exits with segmentation fault -
>>     http://cheffo.freebsd-bg.org/ktrace.out provided if someone knows 
>> how to use ktrace/kdump
>>
>> 2nd problem is "-c" option does not work at all.
>> Here is example:
>>
>> /usr/local/libexec/nagios/check_disk -c 99%
>> DISK OK - free space: / 3792 MB (83% inode=99%); /dev 0 MB (0% 
>> inode=-); /tmp 4559 MB (99% inode=99%); /usr 91711 MB (97% 
>> inode=98%); /var 18101 MB (99% inode=99%);| /=769MB;;;0;4958 
>> /dev=0MB;;;0;0 /tmp=2MB;;;0;4958 /usr=2006MB;;;0;101867 
>> /var=144MB;;;0;19832
>>
>> it is quite strange that -w is working may be they work in different 
>> ways ?
>>
>> Thanks in advance.
>>
>> P.S. I'm not subscribed so please CC me on replies.
>>
> Hi Stefan,
>
> never used ktrace.. However. Which version of the plugins are you using?
> I have a freebsd 6.2 here and everything works fine. -w should work 
> exactly like -c.
> I successfully ran the test cases for the latest snapshot on my 
> freebsd box, too.
> Could you send an output of the segfaulting call with -vvvv turned on?
>
> Matthias
I'm using check_disk (nagios-plugins 1.4.9) 1.91

/usr/local/libexec/nagios/check_disk -c 30% -w 40% -vvvv -p /tmp
For /tmp, used_pct=1 free_pct=99 used_units=2 free_units=4559 
total_units=4958 used_inodes_pct=1 free_inodes_pct=99
Freespace_units result=0
Freespace% result=0
Usedspace_units result=0
Usedspace_percent result=0
Usedinodes_percent result=0
zsh: segmentation fault (core dumped)  
/usr/local/libexec/nagios/check_disk -c 30% -w 40% -vvvv -p /tmp

I can confirm that this plugin works ok with FreeBSD 6.2 (amd64/i386)
-p option work under FreeBSD 7 amd64, but does not under i386 version.
-c is not working on FreeBSD 7 (i386/amd64), but only FreeBSD 6.X

The main differences between FreeBSD 6 and FreeBSD 7 are gcc and libc :)

(6) gcc version 3.4.6 [FreeBSD] 20060305
(7) gcc version 4.2.0 20070514 [FreeBSD]

I'm not sure what is the difference between libc 6 & 7, but all other 
apps that I tested works without a problems.

-- 

Best Wishes,
Stefan Lambrev
ICQ# 24134177





More information about the Devel mailing list