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
Nagios web console not working even after nagioservice start
-
sagarshah1983
- Posts: 6
- Joined: Tue Sep 17, 2013 1:13 am
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios web console not working even after nagioservice s
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
http://nagios.sourceforge.net/docs/3_0/ ... onfig.html
-
sagarshah1983
- Posts: 6
- Joined: Tue Sep 17, 2013 1:13 am
Re: Nagios web console not working even after nagioservice s
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.
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
Is the httpd service set to start on boot?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
sagarshah1983
- Posts: 6
- Joined: Tue Sep 17, 2013 1:13 am
Re: Nagios web console not working even after nagioservice s
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
For fedora:
http://fedoraproject.org/wiki/Systemd
Code: Select all
systemctl enable httpdFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios web console not working even after nagioservice s
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
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
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
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
How did you install nagios? (source, package, magic?)
I would guess that you are missing the apache vhost configuration. What is the output of:
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.confFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.