I am trying to deploy a monitored server, before I do that on production machine again I was hoping to configure it on my virtual lab. I am following this guide http://www.tecmint.com/how-to-add-linux ... ed-server/
I have installed Nagios Core on Ubuntu Machine and the machine being monitored is a Centos Machine (dont ask about weird compination ...
Apperently, I can't pass remote-host's nrpe check. Although both machines can talk to each other using ssh, when testing it says "no route to host on port 5666".
I performed nrpe-check from nagios-serv and got its request on port 5666 on Monitorig-node using tcpdump(which i can clearly see ... )
Nagios-Server is 192.168.0.154, monitored Node is 192.168.0.106.
From nagios-serv
Code: Select all
root@nagios-srv:/home/x# /usr/local/nagios/libexec/check_nrpe -H localhost
connect to address ::1 port 5666: Connection refused
connect to address ::1 port 5666: Connection refused
NRPE v2.15
root@nagios-srv:/home/x# /usr/local/nagios/libexec/check_nrpe -H 192.168.0.106
connect to address 192.168.0.106 port 5666: No route to host
connect to host 192.168.0.106 port 5666: No route to host
root@nagios-srv:/home/x# ssh 192.168.0.106 /usr/local/nagios/libexec/check_procs
[email protected]'s password:
PROCS OK: 93 processes | procs=93;;;0;
Code: Select all
[root@localhost x]# tcpdump -i any tcp port 5666
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
18:29:47.231835 IP 192.168.0.154.34586 > localhost.nrpe: Flags [S], seq 2953610689, win 29200, options [mss 1460,sackOK,TS val 1946237 ecr 0,nop,wscale 6], length 0
18:37:09.533490 IP 192.168.0.154.34596 > localhost.nrpe: Flags [S], seq 2300650933, win 29200, options [mss 1460,sackOK,TS val 2056803 ecr 0,nop,wscale 6], length 0
18:59:05.558560 IP 192.168.0.154.34627 > localhost.nrpe: Flags [S], seq 294239989, win 29200, options [mss 1460,sackOK,TS val 2385780 ecr 0,nop,wscale 6], length 0
18:59:39.126467 IP6 localhost.38143 > localhost.nrpe: Flags [S], seq 3595959895, win 43690, options [mss 65476,sackOK,TS val 9583007 ecr 0,nop,wscale 6], length 0
I can also do tcp_check
From Monitored node to Nagios-sever
Code: Select all
[root@localhost x]# /usr/local/nagios/libexec/check_tcp -H localhost -p 5666
TCP OK - 0.009 second response time on localhost port 5666|time=0.008811s;;;0.000000;10.000000
[root@localhost x]# /usr/local/nagios/libexec/check_tcp -H 192.168.0.154 -p 5666
TCP OK - 0.001 second response time on 192.168.0.154 port 5666|time=0.000831s;;;0.000000;10.000000
[root@localhost x]# Code: Select all
root@nagios-serv:/home/x# /usr/local/nagios/libexec/check_tcp -H localhost -p 5666
TCP OK - 0.006 second response time on localhost port 5666|time=0.005666s;;;0.000000;10.000000
root@nagios-serv:/home/x# /usr/local/nagios/libexec/check_tcp -H 192.168.0.106 -p 5666
connect to address 192.168.0.106 and port 5666: No route to host