<div><span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; ">I would sugest that you check that you've created the nagios user and group<br>as following the output of your command <i>ls -la /usr/local/nagios/var/<br>
</i>nagios should run under nagios user and nagios group.<br><br><br>if you did edit your nagios.cfg<br><div style="margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; "><div class="smallfont" style="font-size: 11px; margin-bottom: 2px; ">
Code:</div><pre class="bbcodeblock" dir="ltr" style="background-color: rgb(207, 217, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: -99999px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 2078px; height: 34px; text-align: left; overflow-x: auto; overflow-y: auto; ">
vi /usr/local/nagios/etc/nagios.cfg</pre></div>and change the nagios_user and nagios_group to nagios<br><div style="margin-right: 20px; margin-bottom: 20px; margin-left: 20px; margin-top: 5px; "><div class="smallfont" style="font-size: 11px; margin-bottom: 2px; ">
Code:</div><pre class="bbcodeblock" dir="ltr" style="background-color: rgb(207, 217, 255); margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: -99999px; padding-top: 3px; padding-right: 3px; padding-bottom: 3px; padding-left: 3px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: inset; border-right-style: inset; border-bottom-style: inset; border-left-style: inset; border-color: initial; width: 2078px; height: 50px; text-align: left; overflow-x: auto; overflow-y: auto; ">
nagios_user=nagios
nagios_group=nagios</pre></div>save it and try to restart nagios again.</span></div><div><br></div>via - <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536">http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536</a><div>
<br></div><div><a href="http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536"></a><br clear="all">Regards,<br><br>Justin Dorfman<br>Mahalo.com Inc. > Jr. Systems Engineer<br>
818.485.1458<br><a href="http://www.twitter.com/jdorfman" target="_blank">@jdorfman</a> | <a href="http://twitter.com/MahaloSysops" target="_blank">@MahaloSysops</a> | Blog: <a href="http://bit.ly/aNiWSk" target="_blank">http://bit.ly/aNiWSk</a><br>

<br><br><div class="gmail_quote">On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu <span dir="ltr"><<a href="mailto:ifepet2002@yahoo.com">ifepet2002@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hello Alex,<br><br>I have the changed the owner and group of the file to nagios but I still get the same error in nagios.log file when I try to start nagios. I tried this when logged in as the root user. I then logged in as nagios user and I could not even start apache or nagios. It was telling me that service is not a command it recognises. Please, please, please help me. Am running outta time<br>
<br>Ifeanyi Agu<br>
08063728802<br><br>--- On <b>Wed, 25/8/10, Alex Dehaini <i><<a href="mailto:alexdehaini@gmail.com" target="_blank">alexdehaini@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<br>From: Alex Dehaini <<a href="mailto:alexdehaini@gmail.com" target="_blank">alexdehaini@gmail.com</a>><div class="im"><br>Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser<br>
To: "Nagios Users List" <<a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a>><br></div>Date: Wednesday, 25 August, 2010, 5:48 PM<div><div></div><div class="h5">
<br><br><div>Permission issue - have nagios user and group own the file; heck the entire directory, :)<br><br>
<div>On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=ifepet2002@yahoo.com" target="_blank">ifepet2002@yahoo.com</a>></span> wrote:<br>
<blockquote style="border-left:1px solid rgb(204, 204, 204);margin:0px 0px 0px 0.8ex;padding-left:1ex">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">Hello Jim,<br><br>I used that command to test and there are 0 warnings and o errors. I also checked my Nagios log and this is what I got<br><br>[1282635168] Nagios 3.2.1 starting... (PID=4250)<br>[1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010<br>

[1282635168] LOG VERSION: 2.0<br>[1282635168] Warning: Could not open object cache file '/usr/local/nagios/var/objects.cache' for writing!<br>[1282635168] Failed to obtain lock on file /usr/local/nagios/var/nagios.lock: Permission denied<br>

[1282635168] Bailing out due to errors encountered while attempting to daemonize... (PID=4250)<br><br>Please do you know why am not able to write to the file?<br><br>Thanks a lot for the support so far 
<div><br><br>Ifeanyi Agu<br>08063728802<br><br>--- On <b>Wed, 25/8/10, Jim Avery <i><<a rel="nofollow" href="http://mc/compose?to=jim@jimavery.me.uk" target="_blank">jim@jimavery.me.uk</a>></i></b> wrote:<br></div>

<blockquote style="border-left:2px solid rgb(16, 16, 255);padding-left:5px;margin-left:5px">
<div><br>From: Jim Avery <<a rel="nofollow" href="http://mc/compose?to=jim@jimavery.me.uk" target="_blank">jim@jimavery.me.uk</a>><br>Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser<br>

To: "Nagios Users List" <<a rel="nofollow" href="http://mc/compose?to=nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a>><br></div>Date: Wednesday, 25 August, 2010, 5:29 PM 
<div>
<div></div>
<div><br><br>
<div>On 25 August 2010 14:55, Ifeanyi Agu <<a rel="nofollow" href="http://mc/compose?to=ifepet2002@yahoo.com" target="_blank">ifepet2002@yahoo.com</a>> wrote:<br>><br>> Hello Jim,<br>><br>> Thanks for the help so far. I disabled SELinux and I tried starting Nagios again but I noticed that Nagios was not running. I am logged in as the root user in the Linux. Could that be the problem why my Nagios is not running?<br>

<br>I wouldn't have thought that would be the problem, no.<br><br>Take a look at the nagios log file which is probably<br>/usr/local/nagios/var/nagios.log<br><br>Don't forget my earlier recommendation to validate the Nagios config like so:<br>

<br>  /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg<br><br>Did you try that, and if so what did it say?<br><br>Cheers,<br><br>Jim<br><br>------------------------------------------------------------------------------<br>

Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>Be part of this innovative community and reach millions of netbook users <br>worldwide. Take advantage of special opportunities to increase revenue and <br>

speed time-to-market. Join now, and jumpstart your future.<br><a rel="nofollow" href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a rel="nofollow" href="http://mc/compose?to=Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" 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<br></div></div></div></blockquote></td></tr></tbody></table>

<br><br>------------------------------------------------------------------------------<br>Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>Be part of this innovative community and reach millions of netbook users<br>

worldwide. Take advantage of special opportunities to increase revenue and<br>speed time-to-market. Join now, and jumpstart your future.<br><a rel="nofollow" href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</a><br>

_______________________________________________<br>Nagios-users mailing list<br><a rel="nofollow" href="http://mc/compose?to=Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" 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<br></blockquote></div><br>
</div><br></div></div>-----Inline Attachment Follows-----<div class="im"><br><br><div>------------------------------------------------------------------------------<br>Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users <br>worldwide. Take advantage of special opportunities to increase revenue and <br>speed time-to-market. Join now, and jumpstart your future.<br><a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</a></div>
<br></div>-----Inline Attachment Follows-----<div class="im"><br><br><div>_______________________________________________<br>Nagios-users mailing list<br><a href="http://mc/compose?to=Nagios-users@lists.sourceforge.net" target="_blank">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</div></div></blockquote></td></tr></tbody></table><br><br>------------------------------------------------------------------------------<br>
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program<br>
Be part of this innovative community and reach millions of netbook users<br>
worldwide. Take advantage of special opportunities to increase revenue and<br>
speed time-to-market. Join now, and jumpstart your future.<br>
<a href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank">http://p.sf.net/sfu/intel-atom-d2d</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<br></blockquote></div><br></div>