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.
xerez
Posts: 77 Joined: Wed Apr 22, 2015 7:50 am
Post
by xerez » Wed Jun 03, 2015 4:24 am
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:
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Wed Jun 03, 2015 9:18 am
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
Post
by jdalrymple » Wed Jun 03, 2015 9:28 am
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
Post
by xerez » Thu Jun 04, 2015 6:22 am
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
Post
by jdalrymple » Thu Jun 04, 2015 9:09 am
So it's solved? OK to lock the topic and mark solved?
xerez
Posts: 77 Joined: Wed Apr 22, 2015 7:50 am
Post
by xerez » Fri Jun 05, 2015 3:56 am
OK