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
Nagios access by FQDN and IP Addr
Re: Nagios access by FQDN and IP Addr
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.
It might be easier to just have the server send passive checks back to Nagios though.
Former Nagios employee
Re: Nagios access by FQDN and IP Addr
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."
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."
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios access by FQDN and IP Addr
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
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!
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
I would recommend using the IP - it would simplify things.
Be sure to check out our Knowledgebase for helpful articles and solutions!