Internal Server Error Occuring when trying to access Nagios on the browser

Alex Dehaini alexdehaini at gmail.com
Wed Aug 25 20:11:47 CEST 2010


Yep;

The importance of reading the docs, :)

On Wed, Aug 25, 2010 at 12:28 PM, Dorfman, Justin <justin at mahalo.com> wrote:

> I would sugest that you check that you've created the nagios user and group
> as following the output of your command *ls -la /usr/local/nagios/var/
> *nagios should run under nagios user and nagios group.
>
>
> if you did edit your nagios.cfg
>  Code:
>
> vi /usr/local/nagios/etc/nagios.cfg
>
> and change the nagios_user and nagios_group to nagios
>  Code:
>
> nagios_user=nagios
> nagios_group=nagios
>
> save it and try to restart nagios again.
>
> via -
> 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>
> Regards,
>
> Justin Dorfman
> Mahalo.com Inc. > Jr. Systems Engineer
> 818.485.1458
>
> @jdorfman <http://www.twitter.com/jdorfman> | @MahaloSysops<http://twitter.com/MahaloSysops>| Blog:
> http://bit.ly/aNiWSk
>
>
>   On Wed, Aug 25, 2010 at 10:15 AM, Ifeanyi Agu <ifepet2002 at yahoo.com>wrote:
>
>>   Hello Alex,
>>
>> 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
>>
>> Ifeanyi Agu
>> 08063728802
>>
>> --- On *Wed, 25/8/10, Alex Dehaini <alexdehaini at gmail.com>* wrote:
>>
>>
>> From: Alex Dehaini <alexdehaini at gmail.com>
>>
>> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to
>> access Nagios on the browser
>> To: "Nagios Users List" <nagios-users at lists.sourceforge.net>
>> Date: Wednesday, 25 August, 2010, 5:48 PM
>>
>>
>> Permission issue - have nagios user and group own the file; heck the
>> entire directory, :)
>>
>> On Wed, Aug 25, 2010 at 11:42 AM, Ifeanyi Agu <ifepet2002 at yahoo.com<http://mc/compose?to=ifepet2002@yahoo.com>
>> > wrote:
>>
>>   Hello Jim,
>>
>> 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
>>
>> [1282635168] Nagios 3.2.1 starting... (PID=4250)
>> [1282635168] Local time is Tue Aug 24 08:32:48 WAT 2010
>> [1282635168] LOG VERSION: 2.0
>> [1282635168] Warning: Could not open object cache file
>> '/usr/local/nagios/var/objects.cache' for writing!
>> [1282635168] Failed to obtain lock on file
>> /usr/local/nagios/var/nagios.lock: Permission denied
>> [1282635168] Bailing out due to errors encountered while attempting to
>> daemonize... (PID=4250)
>>
>> Please do you know why am not able to write to the file?
>>
>> Thanks a lot for the support so far
>>
>>
>> Ifeanyi Agu
>> 08063728802
>>
>> --- On *Wed, 25/8/10, Jim Avery <jim at jimavery.me.uk<http://mc/compose?to=jim@jimavery.me.uk>
>> >* wrote:
>>
>>
>> From: Jim Avery <jim at jimavery.me.uk<http://mc/compose?to=jim@jimavery.me.uk>
>> >
>> Subject: Re: [Nagios-users] Internal Server Error Occuring when trying to
>> access Nagios on the browser
>> To: "Nagios Users List" <nagios-users at lists.sourceforge.net<http://mc/compose?to=nagios-users@lists.sourceforge.net>
>> >
>> Date: Wednesday, 25 August, 2010, 5:29 PM
>>
>>
>> On 25 August 2010 14:55, Ifeanyi Agu <ifepet2002 at yahoo.com<http://mc/compose?to=ifepet2002@yahoo.com>>
>> wrote:
>> >
>> > Hello Jim,
>> >
>> > 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?
>>
>> I wouldn't have thought that would be the problem, no.
>>
>> Take a look at the nagios log file which is probably
>> /usr/local/nagios/var/nagios.log
>>
>> Don't forget my earlier recommendation to validate the Nagios config like
>> so:
>>
>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>>
>> Did you try that, and if so what did it say?
>>
>> Cheers,
>>
>> Jim
>>
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>>
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net<http://mc/compose?to=Nagios-users@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
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net<http://mc/compose?to=Nagios-users@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
>>
>>
>>
>> -----Inline Attachment Follows-----
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>>
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>>
>> -----Inline Attachment Follows-----
>>
>>
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at lists.sourceforge.net<http://mc/compose?to=Nagios-users@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
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
>> Be part of this innovative community and reach millions of netbook users
>> worldwide. Take advantage of special opportunities to increase revenue and
>> speed time-to-market. Join now, and jumpstart your future.
>> http://p.sf.net/sfu/intel-atom-d2d
>> _______________________________________________
>> 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
>>
>
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100825/e207399e/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
-------------- 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