<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank all for the help so far.<br><br>My Nagios is running now. <br><br>Many of the sites I want to monitor are Java based sites. I want to know whether Nagios would report that the site is down if for instance Apache Tomcat or the db service is not running.<br><br>Ifeanyi Agu<br>
08063728802<br><br>--- On <b>Wed, 25/8/10, Alex Dehaini <i><alexdehaini@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Alex Dehaini <alexdehaini@gmail.com><br>Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to access Nagios on the browser<br>To: "Nagios Users List" <nagios-users@lists.sourceforge.net><br>Date: Wednesday, 25 August, 2010, 7:11 PM<br><br><div id="yiv523509362"><div>Yep;</div>
<div> </div>
<div>The importance of reading the docs, :)<br><br></div>
<div class="yiv523509362gmail_quote">On Wed, Aug 25, 2010 at 12:28 PM, Dorfman, Justin <span dir="ltr"><<a rel="nofollow" ymailto="mailto:justin@mahalo.com" target="_blank" href="/mc/compose?to=justin@mahalo.com">justin@mahalo.com</a>></span> wrote:<br>
<blockquote class="yiv523509362gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<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: 1px inset ; padding: 3px; margin-top: 0px; min-height: 34px; margin-bottom: 0px; margin-left: 0px; width: 2078px; 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: 1px inset ; padding: 3px; margin-top: 0px; min-height: 50px; margin-bottom: 0px; margin-left: 0px; width: 2078px; background-color: rgb(207, 217, 255); text-align: left;">nagios_user=nagios<br>nagios_group=nagios</pre></div>save it and try to restart nagios again.</span></div>
<div><br></div>via - <a rel="nofollow" target="_blank" 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>
<div class="yiv523509362im"><a rel="nofollow" target="_blank" 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>
</div>818.485.1458
<div class="yiv523509362im"><br><a rel="nofollow" target="_blank" href="http://www.twitter.com/jdorfman">@jdorfman</a> | <a rel="nofollow" target="_blank" href="http://twitter.com/MahaloSysops">@MahaloSysops</a> | Blog: <a rel="nofollow" target="_blank" href="http://bit.ly/aNiWSk">http://bit.ly/aNiWSk</a><br>
<br><br></div>
<div>
<div></div>
<div class="yiv523509362h5">
<div class="yiv523509362gmail_quote">On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ifepet2002@yahoo.com" target="_blank" href="/mc/compose?to=ifepet2002@yahoo.com">ifepet2002@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv523509362gmail_quote" 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 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 rel="nofollow" ymailto="mailto:alexdehaini@gmail.com" target="_blank" href="/mc/compose?to=alexdehaini@gmail.com">alexdehaini@gmail.com</a>></i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br>From: Alex Dehaini <<a rel="nofollow" ymailto="mailto:alexdehaini@gmail.com" target="_blank" href="/mc/compose?to=alexdehaini@gmail.com">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 rel="nofollow" ymailto="mailto:nagios-users@lists.sourceforge.net" target="_blank" href="/mc/compose?to=nagios-users@lists.sourceforge.net">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 rel="nofollow" target="_blank" href="http://mc/compose?to=ifepet2002@yahoo.com">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" target="_blank" href="http://mc/compose?to=jim@jimavery.me.uk">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" target="_blank" href="http://mc/compose?to=jim@jimavery.me.uk">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" target="_blank" href="http://mc/compose?to=nagios-users@lists.sourceforge.net">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" target="_blank" href="http://mc/compose?to=ifepet2002@yahoo.com">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" target="_blank" href="http://p.sf.net/sfu/intel-atom-d2d">http://p.sf.net/sfu/intel-atom-d2d</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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" target="_blank" href="http://p.sf.net/sfu/intel-atom-d2d">http://p.sf.net/sfu/intel-atom-d2d</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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 rel="nofollow" target="_blank" href="http://p.sf.net/sfu/intel-atom-d2d">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 rel="nofollow" target="_blank" href="http://mc/compose?to=Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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 rel="nofollow" target="_blank" href="http://p.sf.net/sfu/intel-atom-d2d">http://p.sf.net/sfu/intel-atom-d2d</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a rel="nofollow" ymailto="mailto:Nagios-users@lists.sourceforge.net" target="_blank" href="/mc/compose?to=Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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 rel="nofollow" target="_blank" href="http://p.sf.net/sfu/intel-atom-d2d">http://p.sf.net/sfu/intel-atom-d2d</a><br>_______________________________________________<br>Nagios-users mailing list<br>
<a rel="nofollow" ymailto="mailto:Nagios-users@lists.sourceforge.net" target="_blank" href="/mc/compose?to=Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a rel="nofollow" target="_blank" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">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>-----Inline Attachment Follows-----<br><br><div class="plainMail">------------------------------------------------------------------------------<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>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Nagios-users mailing list<br><a ymailto="mailto:Nagios-users@lists.sourceforge.net" href="/mc/compose?to=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</div></blockquote></td></tr></table><br>