Page 1 of 1

Nagios web console not working even after nagioservice start

Posted: Wed Sep 18, 2013 6:54 am
by sagarshah1983
Hello everyone,
I recently installed and modified few configuration of services using Nagios core on my vmware of linux fedora.
Everything worked fine. After I rebooted that linux box, though "service nagios start" works fine, I am not able to see monitored service results on web console.
I am not sure why?

I checked "getenforce", which prints me "Permissive"
I am logging in as "fedora" user and then on command login as root using "su -l" and then starting the service.
I noticed that there's status.dat also getting created. I am not sure why results are not shown on web console "http://localhost/nagios"

Any help is much appreciated.

Regards,
Sagar Shah

Re: Nagios web console not working even after nagioservice s

Posted: Wed Sep 18, 2013 10:00 am
by slansing
Can you see the web interface? Is apache running? Also, does your user have access to see the new objects you created in Nagios? Did you make sure to verify your configurations before restarting nagios?:

http://nagios.sourceforge.net/docs/3_0/ ... onfig.html

Re: Nagios web console not working even after nagioservice s

Posted: Thu Sep 19, 2013 1:06 am
by sagarshah1983
Thanks Slansing for these hints..
Everything was running well except httpd service, which I started manually after reboot and I am now able to access the console :-)

Thanks again.

Re: Nagios web console not working even after nagioservice s

Posted: Thu Sep 19, 2013 9:55 am
by abrist
Is the httpd service set to start on boot?

Re: Nagios web console not working even after nagioservice s

Posted: Thu Sep 19, 2013 12:07 pm
by sagarshah1983
Nope. I do that manually. I don't know how to do that on system startup.. I am very new to linux commands :)

Re: Nagios web console not working even after nagioservice s

Posted: Thu Sep 19, 2013 3:15 pm
by abrist
For fedora:

Code: Select all

systemctl enable httpd
http://fedoraproject.org/wiki/Systemd

Re: Nagios web console not working even after nagioservice s

Posted: Thu Apr 10, 2014 8:31 am
by rags
Hi,

I have configured Nagios on my RHEL6 server with out any errors and all the services are up and running but i am anot able to open the console. can anyone help in this pls.

Thanks,
rags

Re: Nagios web console not working even after nagioservice s

Posted: Thu Apr 10, 2014 8:40 am
by rags
Hi,

Please find the error i am getting the below error

+++++++++++++++++++++++++++++++++++++++++++++++
Not Found
The requested URL /nagios was not found on this server.
Apache/2.2.15 (Red Hat) Server at 172.17.7.32 Port 80
+++++++++++++++++++++++++++++++++++++++++++++++


Please find the configuration check output

*****************************************************************************************************
[root@test2 ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.4
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-14-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
************************************************************************************************

Thanks
rags

Re: Nagios web console not working even after nagioservice s

Posted: Thu Apr 10, 2014 10:59 am
by abrist
How did you install nagios? (source, package, magic?)
I would guess that you are missing the apache vhost configuration. What is the output of:

Code: Select all

ls -la /etc/httpd/conf.d/
cat /etc/httpd/conf.d/nagios.conf