Page 1 of 1
Crashes Nagios when I remove a Host
Posted: Thu Feb 28, 2019 5:39 pm
by CapitanG
Hi, I have Nagios core 4.3.4 on CentOS 7 server. It crashes when I remove a Windows Host. I go to the /usr/local/nagios/etc/objects/hosts/sharepoint.cfg (this is where all sharepoint hosts are) then I remove the block that belongs to the server I want to remove. when I run the command /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/objects/nagios.cfg it says no such a path! and it crashed the web interface.
Please help-- Thank you
Re: Crashes Nagios when I remove a Host
Posted: Fri Mar 01, 2019 1:41 pm
by benjaminsmith
Hi
@CapitanG,
It looks like there's a file path issue here. Can you verify the following:
1. The nagios.cfg is in the correct location -
/usr/local/nagios/etc/objects/nagios.cfg
2. The Nagios configuration file contains a definition for the object configuration file -
cfg_file = /usr/local/nagios/etc/objects/hosts/sharepoint.cfg
3. Nagios is installed in the correct location
ls /usr/local/nagios/bin/nagios
If you not able to get it working, please post your nagios.cfg file for us to review.
Re: Crashes Nagios when I remove a Host
Posted: Tue Mar 05, 2019 12:52 pm
by CapitanG
Hello, thank you for the reply.
1. Nagios.cfg is not in correct location. It is in /usr/local/Nagios/etc/Nagios.cfg
2. Nagios configuration file is missing the "hosts/sharepoint.cfg"
3. Yes, Nagios is installed in the correct location /usr/local/nagios/bin/nagios.
I corrected the reply.
Re: Crashes Nagios when I remove a Host
Posted: Tue Mar 05, 2019 2:20 pm
by CapitanG
Corrected (GH)
Re: Crashes Nagios when I remove a Host
Posted: Tue Mar 05, 2019 5:04 pm
by scottwilkerson
The verification command should be
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg