installation issue on Debian Wheezy

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

Re: installation issue on Debian Wheezy

Post 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.
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.
magna.vis
Posts: 8
Joined: Tue Sep 24, 2013 9:37 pm

Re: installation issue on Debian Wheezy

Post by magna.vis »

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

Re: installation issue on Debian Wheezy

Post by abrist »

Great. Keep an eye on this thread. I am hoping mlong can post his current working debian init script.
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.
turrete
Posts: 1
Joined: Mon Oct 07, 2013 9:45 am

Re: installation issue on Debian Wheezy

Post by turrete »

Cant find any init-script.debian in source dir.
Any help ??

Ty
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: installation issue on Debian Wheezy

Post 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..
tisc0
Posts: 2
Joined: Fri Feb 28, 2014 7:22 pm

Re: installation issue on Debian Wheezy

Post 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 !
Locked