Page 1 of 1

Start Nagios 4.0.7 at bootup

Posted: Fri Jul 18, 2014 7:21 am
by tariqondego
How do i get nagios 4.0.7 to start at bootup.
tried
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
from the quickstart installation guide,but the S99nagios does not exist in the specified directory.Figured it might be a different name/location.

Please advise.

Re: Start Nagios 4.0.7 at bootup

Posted: Fri Jul 18, 2014 10:45 am
by tmcdonald
What OS and version are you running? Startups will be handled differently by different distros.

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 1:30 am
by tariqondego
Ubuntu 14.04

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 2:00 am
by Box293
Perhaps:

Code: Select all

ln -s /etc/init.d/nagios /etc/rc2.d/S20nagios
I found this on:
http://wellsie.net/p/512/

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 2:41 am
by tariqondego
Ok,have tried that,am not getting any error but then 's20nagios' does not exist in /etc/rc2.d/

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 3:02 am
by Box293
See if this helps find the nagios file:

Code: Select all

find /etc/ -name '*nagios'

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 3:39 am
by tariqondego
Thanks,sorted.

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 4:03 am
by Box293
Just out of curiosity, what was the final solution?

Re: Start Nagios 4.0.7 at bootup

Posted: Mon Jul 21, 2014 4:54 am
by tariqondego
ln -s /etc/init.d/nagios /etc/rc2.d/S20nagios

The above command creates a symbolic link. So S20nagios will point to /etc/init.d/nagios.
All services in /etc/rc2.d/ will autostart at boot,since S20nagios is created at this location while creating the link,/etc/init.d/nagios will automatically start at boot.