Bad newbie experience with Nagios

Odhiambo Washington wash at wananchi.com
Sun Jun 4 08:07:53 PDT 2006


* 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 at 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.


More information about the freebsd-isp mailing list