Nagios not starting at boot

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Nagios not starting at boot

Postby yahootoby » Wed Sep 09, 2015 6:15 pm

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

Re: Nagios not starting at boot

Postby RandomGuy86 » Wed Sep 09, 2015 7:11 pm

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
RandomGuy86
 
Posts: 21
Joined: Tue Sep 08, 2015 10:12 am

Re: Nagios not starting at boot

Postby yahootoby » Thu Sep 10, 2015 8:45 am

For Ubuntu:
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios


And yes, I did that.
yahootoby
 
Posts: 6
Joined: Wed Sep 09, 2015 12:36 pm

Re: Nagios not starting at boot

Postby hsmith » Thu Sep 10, 2015 10:04 am

What version of Ubuntu?

sudo update-rc.d nagios defaults may work for you. Source.
Former Nagios Employee.
me.
User avatar
hsmith
Agent Smith
 
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1


Return to Community Support

Who is online

Users browsing this forum: No registered users and 24 guests