Nagios not starting at boot

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
yahootoby
Posts: 6
Joined: Wed Sep 09, 2015 12:36 pm

Nagios not starting at boot

Post by yahootoby »

I can start Nagios manually with /etc/init.d/nagios start or service nagios start. Even though the script is right there in /etc/init.d/ and working, I have to start Nagios manually after every reboot.
RandomGuy86
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Nagios not starting at boot

Post by RandomGuy86 »

Have you added Nagios to the list of services that start at boot?

Code: Select all

7) Start Nagios

Add Nagios to the list of system services and have it automatically start when the system boots.

chkconfig --add nagios
chkconfig nagios on
https://assets.nagios.com/downloads/nag ... edora.html
yahootoby
Posts: 6
Joined: Wed Sep 09, 2015 12:36 pm

Re: Nagios not starting at boot

Post by yahootoby »

For Ubuntu:
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
And yes, I did that.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios not starting at boot

Post by hsmith »

What version of Ubuntu?

sudo update-rc.d nagios defaults may work for you. Source.
Former Nagios Employee.
me.
Locked