Page 1 of 1

Nagios not starting at reboot

Posted: Thu Nov 22, 2018 6:48 pm
by UndMe
Hello everyone, I write because I can not find a solution to the problem.
I have ubuntu server 16.04 with nagios installed and it works without problem, but when restarting the server does not start the service, I have to do it manually with the following command:

systemctl start nagios

I have reinstalled nagios 3-4 times and I always have the same problem. When I reach the last step:

update-rc.d nagios defaults

I get the following error:

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


I don“t know if we can find a solution.

Greetings and thank you. ;)

Re: Nagios not starting at reboot

Posted: Mon Nov 26, 2018 1:29 pm
by scottwilkerson
Can you show the output of the following

Code: Select all

ls -l /etc/init.d/nagios

Re: Nagios not starting at reboot

Posted: Tue Nov 27, 2018 6:52 am
by UndMe
scottwilkerson wrote:Can you show the output of the following

Code: Select all

ls -l /etc/init.d/nagios
Yes.

Edit:

I just solved the problem thanks to a user of the forum who left me the link of the official tutorial to install nagios.
I was not using the official tutorial and something had to be wrong.

Thank you.

I leave the tutorial here in case someone needs it:
https://support.nagios.com/kb/article/n ... tml#Ubuntu

Re: Nagios not starting at reboot

Posted: Tue Nov 27, 2018 8:56 am
by scottwilkerson
Great! and thanks for adding the link!