[Nagiosplug-devel] Nagios freeBSD problem

Павел Тимофеев mox87 at mail.ru
Fri Mar 27 13:25:54 CET 2009


Are you install plugins from ports or sources?
if you install from sources see /usr/ports/net-mgmt/nagios-plugins/files/patch-lib__utils_base.c

-----Original Message-----
From: bouhlel ridha <ridha2501 at gmail.com>
To: nagiosplug-devel <nagiosplug-devel at lists.sourceforge.net>
Date: Mon, 23 Feb 2009 15:23:34 +0100
Subject: [Nagiosplug-devel] Nagios freeBSD problem

> Dear Sir,
> 
> I found a problem with the plagin check_disk of nagios with -p option, there
> is a segmentation fault :
> 
> 
> 
> (gdb) r  -w 1% -c %1 -vvv -p /usr
> Starting program:
> /usr/generation_package/Test_compil_Ridha/packaging/GSUP/dist/exec/applis/superv/CE_nagios-plugins/current/bin/check_disk
> -w 1% -c %1 -vvv -p /usr
> calling stat on /usr
> calling stat on /usr
> For /usr, total=3102260, available=1095634, available_to_root=1343814,
> used=1758446, fsp.fsu_files=824318, fsp.fsu_ffree=569400
> For /usr, used_pct=62 free_pct=38 used_units=3434 free_units=2139
> total_units=6059 used_inodes_pct=31 free_inodes_pct=69
> fsp.fsu_blocksize=2048 mult=1048576
> Freespace_units result=0
> Freespace% result=0
> Usedspace_units result=0
> Usedspace_percent result=0
> Usedinodes_percent result=0
> 
> Program received signal SIGSEGV, Segmentation fault.
> check_range (value=69, my_range=0x424d) at utils_base.c: 168
> 168             if (my_range->alert_on == INSIDE) {
> (gdb) bt
> #0  check_range (value=69, my_range=0x424d) at utils_base.c:168
> #1  0x0804cf83 in get_status (value=69, my_thresholds=0x2820a09c) at
> utils_base.c:201
> #2  0x0804b425 in main (argc=Error accessing memory address 0x0: Bad
> address.
> ) at check_disk.c:359
> (gdb)
> 
> 
> Could yuo please help me resolving this problem !
> 
> Thank you
> Ridha Bouhlel
> 
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________________
> Nagios Plugin Development Mailing List Nagiosplug-devel at lists.sourceforge.net
> Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 





More information about the Devel mailing list