New 2 Nagios and need help removing a host
-
New2Nagios
- Posts: 1
- Joined: Thu Dec 22, 2016 3:38 pm
New 2 Nagios and need help removing a host
I just took over for a Network admin that left. I have a server that I have changed the IP address of (because it was dhcp) and now the nagios errors are filling my email. I have a couple of servers I need to decommission and cannot find a easy way to remove the host from Nagios. I have limited directions from previous admin and have access via Putty to ssh into the nagios server. Any help with some commands that will safely remove specific hosts would be awesome!
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: New 2 Nagios and need help removing a host
It would be helpful to include more information about your system. There is some documentation:
https://assets.nagios.com/downloads/nag ... n/toc.html
https://assets.nagios.com/downloads/nag ... gmain.html
The above file will reference configuration files. One of them will contain the host info. You can comment out the host definition and restart Nagios to apply it provided nothing depends on that host is active.
https://assets.nagios.com/downloads/nag ... tions.html
Generally it may be easier to find where your host is defined something like this:
https://assets.nagios.com/downloads/nag ... n/toc.html
https://assets.nagios.com/downloads/nag ... gmain.html
The above file will reference configuration files. One of them will contain the host info. You can comment out the host definition and restart Nagios to apply it provided nothing depends on that host is active.
https://assets.nagios.com/downloads/nag ... tions.html
Generally it may be easier to find where your host is defined something like this:
Code: Select all
# cd /usr/local/nagios/etc
[root@avandemore-centos7 etc]# grep -R "Host Name" .Previous Nagios employee