View previous topic :: View next topic |
Author |
Message |
stas n00b
Joined: 21 Nov 2005 Posts: 2
|
Posted: Mon Nov 21, 2005 9:16 am Post subject: Nagios-plugins does not work under nagios |
|
|
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 http://www.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(tm) 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? |
|
Back to top |
|
|
stas n00b
Joined: 21 Nov 2005 Posts: 2
|
Posted: Tue Nov 22, 2005 7:33 am Post subject: |
|
|
F*ck, f*ck, f*ck!!!!
Stupid, stupid me!!!!
I have misspelled 1 digit in first host IP and copy it to all host defenitions (they are from one subnet)
3-days problem was solved in 3 seconds when I decide to change monitoring host IP to 127.0.0.1
I decide not to delete this thread - maybe someone occur the same problem and this post helps |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|