Hi,
I am running CentOS 6.4 and am following the guide (referenced here: http://assets.nagios.com/downloads/nagi ... Source.pdf) to install a fresh Nagios core. I have nagios-3.5.0.tar.gz and nagios-plugins-1.4.15.tar.gz and have received no errors during installation. However, when I point my browser to the ip or domain name/nagios I am unable to see anything on screen (I am able to ping the IP).
Is there anything that this guide is missing that I did not install? I followed it from top to bottom. The services httpd and nagios are running.
Doing a 'service nagios restart' results in:
[root@vmnagios nagios-plugins-1.4.15]# service nagios restart
Running configuration check...done.
Stopping nagios: No lock file found in /usr/local/nagios/var/nagios.lock
Starting nagios: done.
I noticed the guide also did not have me install apache2. Is that a requirement? If so, how would I work it in after I've already followed all the steps to install (can I simply 'yum install' it)?
Thank you for your time reading this and for your help.
Nagios Newbie- First Time Install Problem
Re: Nagios Newbie- First Time Install Problem
Apache is required, though if the httpd service is running, you most likely have apache. Did you set up a vhost for nagios in the apache configuration? Is port 80 open?
Code: Select all
yum install httpd
service httpd start
yum install nmap
nmap localhost -p 80
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.
Re: Nagios Newbie- First Time Install Problem
Thank you for your response.
Yes, I just opened port 80 following the below and still no luck.
I am not sure if a vhost was set up for Nagios in the Apache config. I only followed the guide that I had in front of me. I can take a look and see if one is set up.
Yes, I just opened port 80 following the below and still no luck.
I am not sure if a vhost was set up for Nagios in the Apache config. I only followed the guide that I had in front of me. I can take a look and see if one is set up.
Re: Nagios Newbie- First Time Install Problem
nmap does not open the port, it just checks if it is open. If nmap reported it was open, you should be fine there. You may want to check port 80 on the nagios server from another box on your network though, as you could have firewall issues.
Get back to us with the nagios apache config well.
Get back to us with the nagios apache config well.
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.
Re: Nagios Newbie- First Time Install Problem
Thank you very much for your help and insight! I opened up port 80 and performed a reboot and I am able to access it via http.
Re: Nagios Newbie- First Time Install Problem
Wonderful. Is all working on the web ui end?
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.
Re: Nagios Newbie- First Time Install Problem
Yep! I was getting an 'Internal Server Error' when accessing the menu but I found it was tied to a permission issue and I ran 'chcon -R -t httpd_sys_content_t /usr/local/nagios' to remedy it.
Thanks again for your help.
Thanks again for your help.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Newbie- First Time Install Problem
Great, thanks for letting us know your resolution.