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.
Start Nagios 4.0.7 at bootup
Re: Start Nagios 4.0.7 at bootup
What OS and version are you running? Startups will be handled differently by different distros.
Former Nagios employee
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Start Nagios 4.0.7 at bootup
Ubuntu 14.04
- 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
Perhaps:
I found this on:
http://wellsie.net/p/512/
Code: Select all
ln -s /etc/init.d/nagios /etc/rc2.d/S20nagios
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.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Start Nagios 4.0.7 at bootup
Ok,have tried that,am not getting any error but then 's20nagios' does not exist in /etc/rc2.d/
- 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
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.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Start Nagios 4.0.7 at bootup
Thanks,sorted.
- 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
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.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Start Nagios 4.0.7 at bootup
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.
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.