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

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
nagiosa
Posts: 2
Joined: Fri Oct 18, 2013 11:26 am

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

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

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

Post 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. . .
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.
nagiosa
Posts: 2
Joined: Fri Oct 18, 2013 11:26 am

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

Post by nagiosa »

it is debian 6
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
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.
jodumont
Posts: 1
Joined: Sun Oct 27, 2013 7:24 pm

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

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