Page 1 of 1

Nagios stops working when I add new host

Posted: Wed Dec 06, 2017 12:41 pm
by chamados
I have successfully installed the Nagio Core on Ubuntu Server 16.04 today.
I usually log in to Nagios Core and it says it's working normally, but when I add a new host by adding a .cfg file to "/usr/local/nagios/etc/servers", I restart Nagios service with the command

Code: Select all

$ sudo service nagios restart
, it returns me the message "Unable to get process status".

How do I add a new host?

Re: Nagios stops working when I add new host

Posted: Wed Dec 06, 2017 1:18 pm
by mcapra
Please share the output of the following command executed from the CLI of your Nagios Core machine:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
From this page for additional explanation of what the command does:
https://assets.nagios.com/downloads/nag ... onfig.html
chamados wrote:I have successfully installed the Nagio Core on Ubuntu Server 16.04 today.
It might also be handy to know what documentation/process you followed to install Nagios Core.

Re: Nagios stops working when I add new host

Posted: Wed Dec 06, 2017 4:09 pm
by npolovenko
@chamados, We need to see whether there's a definition error in your config files or if that's an issue with the core installation itself. Please post the output of the command that @mcapra mentioned.
Also, please make sure that SELinux is disabled on your system.