Page 1 of 1

Can't open /etc/init.d/functions

Posted: Fri Oct 18, 2013 11:51 am
by nagiosa
Hello I am installing nagios-4.0.1 but this level of problem: Service nagios restart
.: 21: Can not open / etc / init.d / functions
So ask for help.

Re: Can't open /etc/init.d/functions

Posted: Fri Oct 18, 2013 11:53 am
by abrist
I presume you are running debian, ubuntu or suse? If so, try the init script in the following post:
http://support.nagios.com/forum/viewtop ... =20#p64091
It is a hack, but it works. . .

Re: Can't open /etc/init.d/functions

Posted: Fri Oct 18, 2013 11:58 am
by nagiosa
it is debian 6

Re: Can't open /etc/init.d/functions

Posted: Fri Oct 18, 2013 12:40 pm
by abrist
If that is the case, try the altered init script in the linked post above. You will need to:

Code: Select all

apt-get install daemon
In order for the script to work.

Re: Can't open /etc/init.d/functions

Posted: Sun Oct 27, 2013 7:43 pm
by jodumont
I had the same result == Can't open /etc/init.d/functions with Ubuntu 12 and Debian 7.
I'd just install apt-get install daemon, reboot and replace /etc/init.d/nagios file by the "hack" script.
Now everything fine ;) thx!