Nagios init script not working on Ubuntu 12.04

Gavin Grieve [DATACOM] Gavin.Grieve at datacom.co.nz
Wed Jun 12 22:58:06 CEST 2013


You could try replacing the line that mentions functions with:
. /lib/lsb/init-functions

Note the full stop at the start is required.

I believe this is the Ubuntu equivalent.

--
Gavin Grieve

Systems Management Specialist |  Datacom  |  Datacom House, 68 Jervois Quay, Wellington, 6011, New Zealand
www.datacom.co.nz<http://www.datacom.co.nz/>  |  PO Box 6376, Marion Square, Wellington, New Zealand 6141

From: Daniel Wittenberg [mailto:dwittenberg2008 at gmail.com]
Sent: Thursday, 13 June 2013 7:30 a.m.
To: Nagios Users List
Subject: Re: [Nagios-users] Nagios init script not working on Ubuntu 12.04


Functions is a file on rhel-based systems and provides common start/stop routines. I dont use Ubuntu myself but if you figure out how to make it work let me know. If I get some time I'll see if I still have an ubuntu test VM to look at.

Dan
On Jun 12, 2013 2:09 PM, "Abhinav Upadhyay" <er.abhinav.upadhyay at gmail.com<mailto:er.abhinav.upadhyay at gmail.com>> wrote:
Hi,

I just followed the instructions on
http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html to
install the latest stable release of Nagios (3.5) on a fresh Ubuntu
12.04 machine. Everything went fine, but when I try to start nagios
using /etc/init.d/nagios start, I get following error:

/etc/init.d/nagios: 20: .: Can't open /etc/rc.d/init.d/functions

There is no file at /etc/rc.d/init.d/functions. It seems like the
Makefile could not put the functions file at /etc/rc.d/init.d ? Is it
a bug or I missed something?

Regards
Abhinav

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net<mailto:Nagios-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130613/f14dbc90/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list