Nagios IP Change
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Nagios IP Change
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
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.
You simply modify the IP per standard procedure for the OS you are using.
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios IP Change
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
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 agentsdonnyforbes wrote:Do I need to do anything to the agents? We have both Linux and windows?
-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios IP Change
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.scottwilkerson wrote: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 agentsdonnyforbes wrote:Do I need to do anything to the agents? We have both Linux and windows?
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
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-
donnyforbes
- Posts: 357
- Joined: Tue Jun 13, 2017 2:17 pm
Re: Nagios IP Change
ok thank you.scottwilkerson wrote:I believe IP only but you can add multiple with mask such asCode: Select all
allowed_hosts=192.168.1.0/24,192.168.5.0/25,192.168.10.0/24
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios IP Change
Are we ok to mark this issue resolved?