Date: Sun, 4 Jun 2006 18:07:41 +0300 From: Odhiambo Washington <wash@wananchi.com> To: freebsd-isp@freebsd.org Subject: Re: Bad newbie experience with Nagios Message-ID: <20060604150741.GB12999@ns2.wananchi.com> In-Reply-To: <62057235@ho.ipt.ru> References: <20060604055131.GC14207@ns2.wananchi.com> <62057235@ho.ipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
* On 04/06/06 14:10 +0400, Boris Samorodov wrote: | On Sun, 4 Jun 2006 08:51:31 +0300 Odhiambo Washington wrote: | | > I have manually tried running the commands, with the correct args and | > the clue I get leaves me clueless ;) | | > For example, the check-host-alive command: | | > warta# /usr/local/libexec/nagios/check_ping -H 62.8.64.6 -4 -w 3000.0,80% -c 5000.0,100% -p 1 | > CRITICAL - You need more args!!! | > Could not open pipe: | | It works here: | $ /usr/local/libexec/nagios/check_ping -H 62.8.64.6 -4 -w 3000.0,80% -c 5000.0,100% -p 1 | PING OK - Packet loss = 0%, RTA = 642.54 ms | $ uname -srm | FreeBSD 5.4-STABLE i386 | | You may try to use ktrace/strace or else to diagnose the problem. Got it after some fiddling with strace! The problem is caused by the compile option - WITH_IPV6=1. If you compile with this option, you need to have at least ::1 defined in /etc/hosts. Stupid me! Why did I even enable it when I don't use IPv6? ;) -Wash http://www.netmeister.org/news/learn2quote.html DISCLAIMER: See http://www.wananchi.com/bms/terms.php -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ Cold, adj.: When the politicians walk around with their hands in their own pockets.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060604150741.GB12999>