Nagios IP Change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Nagios IP Change

Post by donnyforbes »

I notice something yesterday. Somehow on Centos 7x my ip address changed for my nagios server not sure how this happened since the server was set to "static" and NOT dhcp. Anyhow since it change I was getting all kinds of email alerts etc and even calls from PagerDuty. I need to change the IP to something different then what it is. What is the best way to do this so there is no issues with nagios?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios IP Change

Post by scottwilkerson »

Nagios doesn't actually care one your system is registered. (although agents expecting connections from a specific IP will complain).

You simply modify the IP per standard procedure for the OS you are using.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Nagios IP Change

Post by donnyforbes »

Do I need to do anything to the agents? We have both Linux and windows?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios IP Change

Post by scottwilkerson »

donnyforbes wrote:Do I need to do anything to the agents? We have both Linux and windows?
If you are changing back to the IP you had before no. Otherwise you will need to modify the allowed_from or only from addressed if configured on the agents
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Nagios IP Change

Post by donnyforbes »

scottwilkerson wrote:
donnyforbes wrote:Do I need to do anything to the agents? We have both Linux and windows?
If you are changing back to the IP you had before no. Otherwise you will need to modify the allowed_from or only from addressed if configured on the agents
Does the allowed hostsname need to be an ip address or can it be a DNS name? This is what I have now see attachment.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios IP Change

Post by scottwilkerson »

I believe IP only but you can add multiple with mask such as

Code: Select all

allowed_hosts=192.168.1.0/24,192.168.5.0/25,192.168.10.0/24
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
donnyforbes
Posts: 357
Joined: Tue Jun 13, 2017 2:17 pm

Re: Nagios IP Change

Post by donnyforbes »

scottwilkerson wrote:I believe IP only but you can add multiple with mask such as

Code: Select all

allowed_hosts=192.168.1.0/24,192.168.5.0/25,192.168.10.0/24
ok thank you.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios IP Change

Post by scottwilkerson »

Are we ok to mark this issue resolved?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked