Nagios stops working when I add new host

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chamados
Posts: 1
Joined: Wed Dec 06, 2017 12:30 pm

Nagios stops working when I add new host

Post 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?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios stops working when I add new host

Post 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.
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios stops working when I add new host

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked