Nagios access by FQDN and IP Addr

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dianeghir
Posts: 20
Joined: Wed Nov 13, 2013 7:18 pm

Nagios access by FQDN and IP Addr

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios access by FQDN and IP Addr

Post 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.
Former Nagios employee
dianeghir
Posts: 20
Joined: Wed Nov 13, 2013 7:18 pm

Re: Nagios access by FQDN and IP Addr

Post 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."
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

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dianeghir
Posts: 20
Joined: Wed Nov 13, 2013 7:18 pm

Re: Nagios access by FQDN and IP Addr

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios access by FQDN and IP Addr

Post by lmiltchev »

I would recommend using the IP - it would simplify things.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked