Page 1 of 1

Nagios does not start automatically when reboot

Posted: Fri Nov 23, 2018 11:44 am
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 ?

Re: Nagios does not start automatically when reboot

Posted: Mon Nov 26, 2018 9:39 am
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

Re: Nagios does not start automatically when reboot

Posted: Mon Nov 26, 2018 4:46 pm
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.

Re: Nagios does not start automatically when reboot

Posted: Tue Nov 27, 2018 7:21 am
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.

Re: Nagios does not start automatically when reboot

Posted: Tue Nov 27, 2018 11:31 am
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?

Re: Nagios does not start automatically when reboot

Posted: Tue Nov 27, 2018 12:11 pm
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