Page 1 of 3
NagiosXi-adding host error
Posted: Wed Jun 13, 2018 5:36 pm
by smapple
Hi,
I am trying to add a new host for monitoring. Nagios says "One or more config files have problems" when I apply Configuration.
This host was macOS but now its been migrated to Linux.After adding the server in core config, it does not give any error but I dont see the host added.
Can you let me know how do I resolve this?
Thanks,
Shilpa Nagaraja
Re: NagiosXi-adding host error
Posted: Thu Jun 14, 2018 9:04 am
by scottwilkerson
You can remove the services for this host and the host in the Configure -> CCM
Service
Select template for the host to me removed
select all
Delete
Then under the hosts menu,
Select host Delete
Then Apply Configuration
Re: NagiosXi-adding host error
Posted: Fri Jun 15, 2018 12:34 pm
by smapple
I have deleted the macOS host. Now I am trying to add the Linux host and is not going through
Re: NagiosXi-adding host error
Posted: Fri Jun 15, 2018 1:00 pm
by smapple
After I try to add the host using CCM, "I get a message successfully added the host".
However when I search for the host it does not list this host in Host Status page.
Re: NagiosXi-adding host error
Posted: Fri Jun 15, 2018 1:39 pm
by tgriep
Is the Host set as not active in the Core Config Manager?
If it is not active, it is not saved to the running config so it will not be in the Host Details menu.
Also, if the Apply Config was not run, it will not save the host to the running config. Make sure you Applied the Config as well.
Re: NagiosXi-adding host error
Posted: Mon Jun 18, 2018 12:39 pm
by smapple
I have deleted the host from both CCM and XI. I don't see my previous host anymore.
Is there a way you can call me and fix this issue? Messages take longer
Re: NagiosXi-adding host error
Posted: Mon Jun 18, 2018 1:18 pm
by tgriep
If the Host was removed from the Core Config Manager and the Apply Config passed, you can re-add the new host and services by following the instructions in the 2 links below.
https://assets.nagios.com/downloads/nag ... gement.pdf
https://support.nagios.com/kb/article/n ... t-539.html
And these links are some short videos / documentation on how to use the Wizards in XI to monitor Linux systems.
https://support.nagios.com/kb/article/n ... s-721.html
https://support.nagios.com/kb/article/n ... d-761.html
https://support.nagios.com/kb/article/n ... p-249.html
Take a look at them and let us know if you have any further questions.
Re: NagiosXi-adding host error
Posted: Tue Jun 19, 2018 11:54 am
by smapple
I tried adding the host using the link provided.
Im still facing the same issue. I have attached the file with screenshot of the error.
Re: NagiosXi-adding host error
Posted: Tue Jun 19, 2018 12:58 pm
by tgriep
The permissions has to be reset for the configuration files and to to that, run the following as root.
Code: Select all
cd /usr/local/nagiosxi/scripts
./reset_config_perms.sh
Then try and add the host again to see if it can be created.
Re: NagiosXi-adding host error
Posted: Thu Jun 28, 2018 11:48 am
by smapple
I ran the script.
cd /usr/local/nagiosxi/scripts
/reset_config_perms.sh
RESETTING PERMS
It said RESETTING PERMS. However I still see the error.Attached screenshot.
I see the number of host is CMM is 19 now with status "Not applied", However I swear I have applied configuration at least 4 times.
This is a critical server and its not been monitored. Please do let me know how do I resolve this?
Thanks,
Shilpa Nagaraja