Page 1 of 1

Nagios doesn't start with the system.

Posted: Wed Jun 03, 2015 4:24 am
by xerez
Hi, when I start the machine, Nagios doesn't start. Why?

I created a link with:

Code: Select all

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
And no there errors when I run:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Also, Nagios start without problems with:

Code: Select all

/etc/init.d/nagios start

Re: Nagios doesn't start with the system.

Posted: Wed Jun 03, 2015 9:18 am
by abrist
What distro/version are you running? Most distros have an init system manager bin that can be used to modify the the services initialized on boot.

Re: Nagios doesn't start with the system.

Posted: Wed Jun 03, 2015 9:28 am
by jdalrymple
xerez wrote:Hi, when I start the machine, Nagios doesn't start. Why?

I created a link with:

Code: Select all

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
I'm not a Debian guy - that looks wrong though.
Debian Wiki wrote:/!\ It is not advisable to make any changes to symlinks in /etc/rcS.d/.
I think this is what you really want

Again - I'm not a Debian guy so maybe my information is way off base, just going from the documentation.

Re: Nagios doesn't start with the system.

Posted: Thu Jun 04, 2015 6:22 am
by xerez
Yes, my distro is Debian. Finally it ran with:

Code: Select all

update-rc.d -f nagios defaults 99
ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
Thanks!

Re: Nagios doesn't start with the system.

Posted: Thu Jun 04, 2015 9:09 am
by jdalrymple
So it's solved? OK to lock the topic and mark solved?

Re: Nagios doesn't start with the system.

Posted: Fri Jun 05, 2015 3:56 am
by xerez
OK :)