Page 2 of 2

Re: installation issue on Debian Wheezy

Posted: Wed Sep 25, 2013 4:18 pm
by abrist
Please file a bug on http://tracker.nagios.org. It looks like the init script is not currently working for ubuntu/debian systems.

Re: installation issue on Debian Wheezy

Posted: Wed Sep 25, 2013 6:14 pm
by magna.vis

Re: installation issue on Debian Wheezy

Posted: Thu Sep 26, 2013 9:26 am
by abrist
Great. Keep an eye on this thread. I am hoping mlong can post his current working debian init script.

Re: installation issue on Debian Wheezy

Posted: Mon Oct 07, 2013 9:51 am
by turrete
Cant find any init-script.debian in source dir.
Any help ??

Ty

Re: installation issue on Debian Wheezy

Posted: Mon Oct 07, 2013 4:29 pm
by slansing
turrete, please open a new thread dedicated to your issue, outline what you have done and what your current problem is, that way we can keep this thread on track and clutter free, thank you..

Re: installation issue on Debian Wheezy

Posted: Sat Mar 01, 2014 5:21 am
by tisc0
The init script (/etc/init.d/nagios) have to be well modified.

Code: Select all

sudo apt-get install daemon
sudo sed -i 's/^\.\ \/etc\/rc.d\/init.d\/functions$/\.\ \/lib\/lsb\/init-functions/g' /etc/init.d/nagios
sudo sed -i 's/status\ /status_of_proc\ /g' /etc/init.d/nagios
sudo sed -i 's/daemon\ --user=\$user\ \$exec\ -ud\ \$config/daemon\ --user=\$user\ --\ \$exec\ -d\ \$config/g' /etc/init.d/nagios
sudo sed -i 's/\/var\/lock\/subsys\/\$prog/\/var\/lock\/\$prog/g' /etc/init.d/nagios
sudo sed -i 's/\/sbin\/service\ /\/usr\/sbin\/service\ /g' /etc/init.d/nagios
sudo sed -i 's/runuser/su/g' /etc/init.d/nagios
sudo service nagios start
I also removed the '-d 10' option applied on killproc in the stop sequence (around line 94) to avoid error message on 'service nagios stop' call.
$Stopping nagios: Illegal option -d
/sbin/start-stop-daemon: signal value must be numeric or name of signal (KILL, INT, ...)
Try '/sbin/start-stop-daemon --help' for more information.
Thanks Nicolargo on stackoverflow !