Start Nagios 4.0.7 at bootup

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
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Start Nagios 4.0.7 at bootup

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Start Nagios 4.0.7 at bootup

Post by tmcdonald »

What OS and version are you running? Startups will be handled differently by different distros.
Former Nagios employee
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Start Nagios 4.0.7 at bootup

Post by tariqondego »

Ubuntu 14.04
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Start Nagios 4.0.7 at bootup

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Start Nagios 4.0.7 at bootup

Post by tariqondego »

Ok,have tried that,am not getting any error but then 's20nagios' does not exist in /etc/rc2.d/
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Start Nagios 4.0.7 at bootup

Post by Box293 »

See if this helps find the nagios file:

Code: Select all

find /etc/ -name '*nagios'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Start Nagios 4.0.7 at bootup

Post by tariqondego »

Thanks,sorted.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Start Nagios 4.0.7 at bootup

Post by Box293 »

Just out of curiosity, what was the final solution?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Start Nagios 4.0.7 at bootup

Post 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.
Locked