Two NICs, the primary of which gets a DHCP address = FAIL

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Two NICs, the primary of which gets a DHCP address = FAIL

Post by eloyd »

Given a VM with two virtual NICs in it that has NLS installed on it. The primary NIC (eth0) is attached to a public network with a DHCP address that we cannot control. The secondary NIC is private to our network and has a static IP address.

This morning, the primary NIC got a new IP address. Now the cluster says its broken because it's only looking at the previously assigned IP and logstash won't stay running.

Changing or forcing the eth1 IP is not an option. Thoughts?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Two NICs, the primary of which gets a DHCP address = FAI

Post by eloyd »

Update: After a number of logstash failures to stay running, it is now staying up for no apparent reason (nothing changed on our system except for eth0 IP). We still have "Instance Status" listing the wrong IP though. I fear applying any global changes that it will try to connect to the old IP address. Any way we can convince it to use the static eth1 IP or should we stick that in for the load-balancer IP?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Two NICs, the primary of which gets a DHCP address = FAI

Post by scottwilkerson »

You can modify these settings in the elasticsearch config
/usr/local/nagioslogserver/elasticsearch/config/elasticsearch.yml

http://www.elasticsearch.org/guide/en/e ... twork.html

One Caveat, DO NOT change the value for http.host or you could expose your server
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Two NICs, the primary of which gets a DHCP address = FAI

Post by eloyd »

Thanks. I'll take a look.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked