New 4.0 install, won't start on boot

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
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

New 4.0 install, won't start on boot

Post by MikeM-2468 »

I've installed 4.0.2 on Debian 7.3.0. Everything is great except for start on boot. I've done what I've always done for all my other 3.x installs:

Code: Select all

ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios
Running this works fine.

Code: Select all

/etc/init.d/nagios start
I'm not seeing any errors in any logs. Where can I look? I used the script in http://support.nagios.com/forum/viewtop ... =7&t=21578 to make it start. I was getting the error

Code: Select all

Can't open /etc/rc.d/init.d/functions error.
with the default script.

I also tried applying all of the suggestions in http://support.nagios.com/forum/viewtop ... oot#p60396
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New 4.0 install, won't start on boot

Post by abrist »

Any hints in the system messages from boot?

Code: Select all

dmesg | grep nagios
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.
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

Re: New 4.0 install, won't start on boot

Post by MikeM-2468 »

nothing
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New 4.0 install, won't start on boot

Post by abrist »

How about the full system logs?

Code: Select all

grep nagios /var/log/messages
You could just create a script to start the service and then run that script on boot with rc.local, bashrc, etc.
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.
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

Re: New 4.0 install, won't start on boot

Post by MikeM-2468 »

That won't help since nagios is part of the host name.

rc.local works, but I'm puzzled as to why it doesn't work the normal way. If it indicates a larger problem, I'd like to get to the bottom of it.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New 4.0 install, won't start on boot

Post by abrist »

The larger problem is an issue with the init script - some newer distros changed up the lsb functions and broke the init script. I wrote a hack to get it working, but it most likely does not integrate nicely with certain init systems . . .
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.
MikeM-2468
Posts: 17
Joined: Wed May 18, 2011 2:58 pm

Re: New 4.0 install, won't start on boot

Post by MikeM-2468 »

I used the hack to start it, but I can only get it to start in rc.local.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New 4.0 install, won't start on boot

Post by abrist »

MikeM-2468 wrote:but I can only get it to start in rc.local.
That may be as far as you can go without the script getting fixed proper.
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.
Locked