Hi all!
I’ve setup nagios 1.2, later 2.0, nagios-plugins 1.4, 1.4.2
I have huge problem: network plugins does not work under nagio, but works perfectly under nagios user from shell
Every time they say smth like “CRITICAL - Plugin timed out after 10 seconds” or “CRITICAL - Socket timeout after 10 seconds” (standard).
When I set up debug script (shell) for check_ping and put there call of ping with the same options (called from nagios) it works fine.
check_ping.pl from hannes-schulz.de/projs/nagios/check_ping.pl (got link from nagiosexchange) works fine from su - nagios, but from nagios daemon does smth like “PING - Packet loss = 100%, RTA = 3499.87 ms” for each host, even local.
Also I have problems with embedded perl, so I switch it off.
Linux teseus 2.6.14-gentoo-r2 #1 Thu Nov 17 20:58:01 EET 2005 i686 AMD Athlon™ XP 2500+ AuthenticAMD GNU/Linux
check_linux_raid, check_users, check_procs works fine.
I have no thoughts about it.
Was trying setting LC_ALL during nagios start, cleaning env, cleaning env but LC_ALL, strace, etc. Nothing helps
/bin/ping has setuid flag
Setting setuid to check_ping also doesn’t help
Has anybody any suggestions?