Nagios does not start automatically when reboot

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
UndMe
Posts: 14
Joined: Thu Nov 22, 2018 6:40 pm

Nagios does not start automatically when reboot

Post by UndMe »

Good afternoon, I write this message because I can not find a solution to the problem.

I have Nagios installed on an Ubuntu Server 16.04.5 server and every time I restart the server I have to manually start the service with the following command:

Service nagios start

I want to put the following command to automatically start each reboot:

sudo update-rc.d nagios defaults


But I get the following error:

insserv: script nagios is not an executable regular file, skipped!

Any solution ?
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios does not start automatically when reboot

Post by mcapra »

The official documentation for installing on Ubuntu has a discrete step for configuring the service/daemon files:
https://support.nagios.com/kb/article/n ... tml#Ubuntu

What process did you use to install Nagios Core? If you followed the official documentation and are still having this problem, there's likely a bug report that needs to be made:
https://github.com/NagiosEnterprises/nagioscore/issues
Former Nagios employee
https://www.mcapra.com/
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Nagios does not start automatically when reboot

Post by npolovenko »

Thanks, @mcapra!
@UndMe, Please let us know whether you used the above-mentioned tutorial to install the Core so that I can try to replicate your issue in the lab.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
UndMe
Posts: 14
Joined: Thu Nov 22, 2018 6:40 pm

Re: Nagios does not start automatically when reboot

Post by UndMe »

mcapra wrote:The official documentation for installing on Ubuntu has a discrete step for configuring the service/daemon files:
https://support.nagios.com/kb/article/n ... tml#Ubuntu

What process did you use to install Nagios Core? If you followed the official documentation and are still having this problem, there's likely a bug report that needs to be made:
https://github.com/NagiosEnterprises/nagioscore/issues
npolovenko wrote:Thanks, @mcapra!
@UndMe, Please let us know whether you used the above-mentioned tutorial to install the Core so that I can try to replicate your issue in the lab.
Thank you very much for the answer, I installed it with another guide and something would be wrong.
I have reinstalled with the official guide of nagios that you have left me in the link and it works perfectly for me.

Thank you.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios does not start automatically when reboot

Post by benjaminsmith »

Thank you very much for the answer, I installed it with another guide and something would be wrong.
I have reinstalled with the official guide of nagios that you have left me in the link and it works perfectly for me.
Glad to hear your got it solved. Did you have any other questions, or are we ok to lock this topic?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
UndMe
Posts: 14
Joined: Thu Nov 22, 2018 6:40 pm

Re: Nagios does not start automatically when reboot

Post by UndMe »

benjaminsmith wrote:
Thank you very much for the answer, I installed it with another guide and something would be wrong.
I have reinstalled with the official guide of nagios that you have left me in the link and it works perfectly for me.
Glad to hear your got it solved. Did you have any other questions, or are we ok to lock this topic?
This is all solved, the message can be closed.
Thanks. :D
Locked