<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>You could try replacing the line that mentions functions with:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>. /lib/lsb/init-functions<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>Note the full stop at the start is required.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'>I believe this is the Ubuntu equivalent.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#003366'>-- <o:p></o:p></span></b></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#003366'>Gavin Grieve</span></b><b><span lang=EN-AU style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#003366'><o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#7F7F7F'>Systems Management Specialist </span><span lang=EN-AU style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray'>|</span><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray'>  Datacom  </span><span lang=EN-AU style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray'>|</span><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray'>  Datacom House, 68 Jervois Quay, Wellington, 6011, New Zealand</span><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Arial","sans-serif";color:gray'><a href="http://www.datacom.co.nz/">www.datacom.co.nz</a>  |  PO Box 6376, Marion Square, Wellington, New Zealand 6141</span><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> Daniel Wittenberg [mailto:dwittenberg2008@gmail.com] <br><b>Sent:</b> Thursday, 13 June 2013 7:30 a.m.<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Nagios init script not working on Ubuntu 12.04<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p>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. <o:p></o:p></p><p>Dan<o:p></o:p></p><div><p class=MsoNormal>On Jun 12, 2013 2:09 PM, "Abhinav Upadhyay" <<a href="mailto:er.abhinav.upadhyay@gmail.com">er.abhinav.upadhyay@gmail.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><p class=MsoNormal>Hi,<br><br>I just followed the instructions on<br><a href="http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html" target="_blank">http://nagios.sourceforge.net/docs/3_0/quickstart-ubuntu.html</a> to<br>install the latest stable release of Nagios (3.5) on a fresh Ubuntu<br>12.04 machine. Everything went fine, but when I try to start nagios<br>using /etc/init.d/nagios start, I get following error:<br><br>/etc/init.d/nagios: 20: .: Can't open /etc/rc.d/init.d/functions<br><br>There is no file at /etc/rc.d/init.d/functions. It seems like the<br>Makefile could not put the functions file at /etc/rc.d/init.d ? Is it<br>a bug or I missed something?<br><br>Regards<br>Abhinav<br><br>------------------------------------------------------------------------------<br>This SF.net email is sponsored by Windows:<br><br>Build for Windows Store.<br><br><a href="http://p.sf.net/sfu/windows-dev2dev" target="_blank">http://p.sf.net/sfu/windows-dev2dev</a><br>_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<o:p></o:p></p></blockquote></div></div></body></html>