[Nagiosplug-help] plugin 'check_disk' fails on Solaris 10 with 16 TiB volume (with research) (SUCCESS)

Dennis Jenkins djenkins at istreamimaging.com
Tue Jan 29 15:18:13 CET 2008


Dennis Jenkins wrote:
> Thomas Guyot-Sionnest wrote:
>   
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 14/01/08 09:51 AM, Dennis Jenkins wrote:
>>   
>>     
>>> Success!
>>>
>>>     Thank you very much for your insight and help Thomas.  After 
>>> tracking down the compiler tool-chain, I attempted the following:
>>>
>>> PATH=/usr/sfw/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin CFLAGS=' -m64 
>>> '  ./configure && make
>>>
>>> -bash-3.00$ ./plugins/check_disk -w 20% -c 10% /
>>> DISK OK - free space: / 4939 MB (46% inode=80%);| /=5790MB;8670;9754;0;10838
>>>
>>> -bash-3.00$ ./plugins/check_disk -w 20% -c 10% /zpool1/
>>> DISK OK - free space: /zpool1 16815321 MB (99% inode=99%);| 
>>> /zpool1=59476MB;13499838;15187318;0;16874798
>>>     
>>>       
>> Sorry for replying so late, your reply went straight to my spam folder...
>>
>> I'm glad it fixed your problem. You didn't give many details though, did
>> you modified the source of fsusage.c and mountlist.c, or only compiled
>> 64bits? In my tests 32/64bits didn't matter, but the source change made
>> the trick.
>>
>> The patch I put in SVN is slightly different and the "correct" way of
>> fixing this. It could be nice that you try applying it to a fresh 1.4.11
>> source tree and confirm that check_disk works as expected (you shouldn't
>> need -m64 either). I could verify that check_disk was using the 64-bit
>> version with this patch but I don't have any 16TB array at home to test
>> with ;)
>>
>> Thanks,
>>
>> Thomas
>>   
>>     
>
> Hello Thomas,
>
>     I did not make any code changes.  I simply downloaded the latest 
> nagios-plugins source and managed to compile it on our Solaris boxes 
> with the "-m64" option.  Our servers have the base install of Solaris 
> 10.  We've made some security changes to them, but we have not done 
> anything "handy" like altering the PATH variable to include gcc and 
> related tools.  So getting anything to compile is a bit of a chore.
>
>     I will test your patch.  However, we don't have svn on any of the 
> Solaris servers, so I'll need a few minutes to grab it from a BSD box.
>
>     ps- If SVN gives me a "fresh" 1.4.11 version of nagios-plugins, 
> where do I get the patch from?  Did you merge the patch into trunk, or 
> is it in some branch?
>
>     I don't see any related changes in the revision history for the 
> "check_disk" plugin:
>     
> http://nagiosplug.svn.sourceforge.net/viewvc/nagiosplug/nagiosplug/trunk/plugins/check_disk.c?sortby=date&view=log
>
>   

DOH!  I just re-read your email and noticed that you patched the build scripts and not the source code. :)

I'll test this later today when I get time.







More information about the Help mailing list