<div>Yep;</div>
<div> </div>
<div>The importance of reading the docs, :)<br><br></div>
<div class="gmail_quote">On Wed, Aug 25, 2010 at 12:28 PM, Dorfman, Justin <span dir="ltr"><<a href="mailto:justin@mahalo.com">justin@mahalo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div><span style="FONT-SIZE: 13px; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif">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: 5px 20px 20px">
<div style="FONT-SIZE: 11px; MARGIN-BOTTOM: 2px">Code:</div><pre dir="ltr" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 3px; BORDER-TOP: 1px inset; MARGIN-TOP: 0px; OVERFLOW-Y: auto; PADDING-LEFT: 3px; MIN-HEIGHT: 34px; OVERFLOW-X: auto; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: 0px; BORDER-LEFT: 1px inset; WIDTH: 2078px; PADDING-TOP: 3px; BORDER-BOTTOM: 1px inset; BACKGROUND-COLOR: rgb(207,217,255); TEXT-ALIGN: left">
vi /usr/local/nagios/etc/nagios.cfg</pre></div>and change the nagios_user and nagios_group to nagios<br>
<div style="MARGIN: 5px 20px 20px">
<div style="FONT-SIZE: 11px; MARGIN-BOTTOM: 2px">Code:</div><pre dir="ltr" style="BORDER-RIGHT: 1px inset; PADDING-RIGHT: 3px; BORDER-TOP: 1px inset; MARGIN-TOP: 0px; OVERFLOW-Y: auto; PADDING-LEFT: 3px; MIN-HEIGHT: 50px; OVERFLOW-X: auto; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 3px; MARGIN-LEFT: 0px; BORDER-LEFT: 1px inset; WIDTH: 2078px; PADDING-TOP: 3px; BORDER-BOTTOM: 1px inset; BACKGROUND-COLOR: rgb(207,217,255); TEXT-ALIGN: left">
nagios_user=nagios
nagios_group=nagios</pre></div>save it and try to restart nagios again.</span></div>
<div><br></div>via - <a href="http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536" target="_blank">http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536</a> 
<div><br></div>
<div>
<div class="im"><a href="http://www.linuxquestions.org/questions/linux-software-2/any-nagios-gurus-820989/page2.html#post4040536" target="_blank"></a><br clear="all">Regards,<br><br>Justin Dorfman<br>Mahalo.com Inc. > Jr. Systems Engineer<br>
</div>818.485.1458 
<div class="im"><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>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu <span dir="ltr"><<a href="mailto:ifepet2002@yahoo.com" target="_blank">ifepet2002@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top">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="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><br>From: Alex Dehaini <<a href="mailto:alexdehaini@gmail.com" target="_blank">alexdehaini@gmail.com</a>> 
<div><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><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 href="http://mc/compose?to=ifepet2002@yahoo.com" target="_blank" rel="nofollow">ifepet2002@yahoo.com</a>></span> wrote:<br>
<blockquote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<table cellspacing="0" cellpadding="0" border="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 href="http://mc/compose?to=jim@jimavery.me.uk" target="_blank" rel="nofollow">jim@jimavery.me.uk</a>></i></b> wrote:<br></div>

<blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid">
<div><br>From: Jim Avery <<a href="http://mc/compose?to=jim@jimavery.me.uk" target="_blank" rel="nofollow">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 href="http://mc/compose?to=nagios-users@lists.sourceforge.net" target="_blank" rel="nofollow">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 href="http://mc/compose?to=ifepet2002@yahoo.com" target="_blank" rel="nofollow">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 href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank" rel="nofollow">http://p.sf.net/sfu/intel-atom-d2d</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a href="http://mc/compose?to=Nagios-users@lists.sourceforge.net" target="_blank" rel="nofollow">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" rel="nofollow">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 href="http://p.sf.net/sfu/intel-atom-d2d" target="_blank" rel="nofollow">http://p.sf.net/sfu/intel-atom-d2d</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="http://mc/compose?to=Nagios-users@lists.sourceforge.net" target="_blank" rel="nofollow">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank" rel="nofollow">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><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><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" 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<br></blockquote></div><br></div></div></div><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>