Multiple IP for Single Host on Nagios done for Spectranet
Objective :[edit]
As of now, we have scenario in which 2 different ISP with 2 different IP are connected in single device. We have no measure to configure loopback or management IP. In that situation we only monitoring via public IP.
- From monitoring prospective it is very challanging if we add single ip and in service 2 interface doesn’t mean if one interface or ISP1 gets down.
- Also if we add same device with different name then for same probe we have multiple alarm.
Solution[edit]
Download check_muliaddr.pl from https://exchange.nagios.org/directory/Plugins/Others/check_multiaddr/details
And Deploy to NagiosXI Server and Attached pollers in /usr/local/nagios/libexec directory
Also do chown to nagios and chmod to 755
Basic Testing[edit]
Our testing Host is BGL-MWIFI-STANZA-9078408-DENVR-BNGINV00S3_001 and IP are 119.82.126.244,103.5.132.187
cd /usr/local/nagios/libexec ./check_multiaddr.pl ./check_ping -H 119.82.126.244,103.5.132.187 -w 800.0,20% -c 999.0,60% -p 5 Should have proper output
Deployment Process[edit]
Now with Nagios XI admin Panel
- create Command via CCM example check_xi_service_ifoperstatus_multiaddr ( copy check_xi_service_ifoperstatus) and change command to
original Command $USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$ $ARG3$ to $USER1$/check_multiaddr.pl $USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$ $ARG3$
example check-host-alive_multiaddr ( copy check-host-alive) and change command to
$USER1$/check_multiaddr.pl $USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
Via CCM Choose Host --> add both IP 119.82.126.244,103.5.132.187 on IP Address and Save .
On All Services create Service Command like check_xi_service_ifoperstatus_multiaddr or check-host-alive_multiaddr and Apply to the Services .


