Page 1 of 1
Nagios access by FQDN and IP Addr
Posted: Thu Mar 20, 2014 4:45 pm
by dianeghir
Hi
Is there any functionality to add two servers in Nagios XI? First one being a FQDN and the second an IP address if it cannot reach or resolve the FQDN.
Thanks
diane
Re: Nagios access by FQDN and IP Addr
Posted: Thu Mar 20, 2014 4:58 pm
by tmcdonald
Well, you could set up two different servers. Make one the "main" server, then when that fails call an event handler to disable checking on it and enable checking on the "failover".
It might be easier to just have the server send passive checks back to Nagios though.
Re: Nagios access by FQDN and IP Addr
Posted: Fri Mar 21, 2014 8:45 am
by dianeghir
We want to be able to send messages to Nagios either via IP addr or FQDN
For example
If this command fails because the DNS server is down for some reason
send_nrdp.sh -u
http://nagios.acres4.net/nrdp -t "test_token" -H myhost -s watchdog -S 0 -o "OK: Watchdog is running."
we want to resend as
send_nrdp.sh -u
http://192.168.1.1/nrdp -t "test_token" -H myhost -s watchdog -S 0 -o "OK: Watchdog is running."
Re: Nagios access by FQDN and IP Addr
Posted: Fri Mar 21, 2014 8:50 am
by scottwilkerson
send_nrdp.sh doesn't have this built in, but why not just go with the IP address and skip name resolution all together?
Re: Nagios access by FQDN and IP Addr
Posted: Fri Mar 21, 2014 10:00 am
by dianeghir
Our sysadmin just wanted to know if it was possible. He'd really like to use the FQDN but doesn't want to loose any thing if the DNS is down.
I think he was thinking that if the IP addr changed, it would be a nuisance.
If this is not possible, then we will continue to pass by IP.
Thanks!
Re: Nagios access by FQDN and IP Addr
Posted: Fri Mar 21, 2014 1:17 pm
by lmiltchev
I would recommend using the IP - it would simplify things.