Nagios server not able to communicate using virtual IP
Posted: Thu Jan 17, 2013 2:35 am
Hi,
We are using Nagios XI 2012 R1.2 on RHEL 6.3 OS. We were using http://10.128.17.12/nagiosxi url for accessing Nagios. Where 10.128.17.12 was physical server IP. We are using two node, one is Nagios application and other is Nagios database. For failover we are doing active-passive clustering. We need above url should work in any server goes fail, for this we have change physical IP address of Nagios server 10.128.17.253 instead of 10.128.17.12, but we assign 10.128.17.12 as virtual IP. Now we can access http://10.128.17.12/nagiosxi url and see all devices, but we are getting communication error with all added devices. While command line we are getting below error.
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.13 -c check_disk
CHECK_NRPE: Error - Could not complete SSL handshake
whether i am getting output of localhost using virtual IP as well suppose i changed IP in remote host nrpe file as 10.128.17.253 instead of 10.128.17.12.
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.12 -c check_disk
DISK OK - free space: / 29059 MB (60% inode=98%);| /=18776MB;40316;45356;0;50396
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.13 -c check_disk
DISK OK - free space: / 20334 MB (42% inode=99%);| /=27502MB;40316;45356;0;50396
We have add 10.128.17.12 IP on all devices and we cant change that. Because hosts are more than 400 hundreds. Please suggest the solution, so we can use 10.128.17.12 Ip as virtual, this IP should be work if any host goes down, all devices should be communicate with Nagios using virtual IP.
We are using Nagios XI 2012 R1.2 on RHEL 6.3 OS. We were using http://10.128.17.12/nagiosxi url for accessing Nagios. Where 10.128.17.12 was physical server IP. We are using two node, one is Nagios application and other is Nagios database. For failover we are doing active-passive clustering. We need above url should work in any server goes fail, for this we have change physical IP address of Nagios server 10.128.17.253 instead of 10.128.17.12, but we assign 10.128.17.12 as virtual IP. Now we can access http://10.128.17.12/nagiosxi url and see all devices, but we are getting communication error with all added devices. While command line we are getting below error.
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.13 -c check_disk
CHECK_NRPE: Error - Could not complete SSL handshake
whether i am getting output of localhost using virtual IP as well suppose i changed IP in remote host nrpe file as 10.128.17.253 instead of 10.128.17.12.
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.12 -c check_disk
DISK OK - free space: / 29059 MB (60% inode=98%);| /=18776MB;40316;45356;0;50396
[root@EMSNagios1 libexec]# ./check_nrpe -H 10.128.17.13 -c check_disk
DISK OK - free space: / 20334 MB (42% inode=99%);| /=27502MB;40316;45356;0;50396
We have add 10.128.17.12 IP on all devices and we cant change that. Because hosts are more than 400 hundreds. Please suggest the solution, so we can use 10.128.17.12 Ip as virtual, this IP should be work if any host goes down, all devices should be communicate with Nagios using virtual IP.