Nagios doesn't start with the system.

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
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Nagios doesn't start with the system.

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios doesn't start with the system.

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios doesn't start with the system.

Post 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.
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: Nagios doesn't start with the system.

Post 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!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios doesn't start with the system.

Post by jdalrymple »

So it's solved? OK to lock the topic and mark solved?
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

Re: Nagios doesn't start with the system.

Post by xerez »

OK :)
Locked