Page 2 of 2

Re: Nagios Core - Webpage is not found

Posted: Thu May 28, 2020 2:46 pm
by benjaminsmith
Hi Amanda,

That error implies that it cannot contact the repo. It could be a networking issue. You can run the following curl command to check the connection for errors.

Code: Select all

curl -k -L -v  http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock
Benjamin

Re: Nagios Core - Webpage is not found

Posted: Thu May 28, 2020 4:03 pm
by akelly0826
The attached is the output I received. What does it mean?

Re: Nagios Core - Webpage is not found

Posted: Tue Jun 02, 2020 2:01 pm
by akelly0826
I started over with CentOS 6, and I got a little further in the instructions. Now I have a new error. Please see the attached.

Re: Nagios Core - Webpage is not found

Posted: Thu Jun 04, 2020 9:31 am
by akelly0826
I started over again with CentOS 6, and it created the htpasswd.users file. I am still having the same problem with the website not loading. I had no errors when doing the install instructions from https://support.nagios.com/kb/article/n ... tml#CentOS.

If someone can help me get the webpage to load in the next 11 days (trial period for help), I would greatly appreciate it.

Re: Nagios Core - Webpage is not found

Posted: Thu Jun 04, 2020 4:41 pm
by benjaminsmith
Hi Amanda,

I hope you have made some progress on this and sorry for the late reply. This is usually some kind of network issue. It cannot connect to the repo. You can test the connection using the following curl command and the output will often help diagnose this.

Example Command (replace the URL with the one in your error message).

Code: Select all

curl -k -L -v https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=x86_64
Also, what is the output of the following command?

Code: Select all

yum repolist

Re: Nagios Core - Webpage is not found

Posted: Fri Jun 05, 2020 8:39 am
by akelly0826
I have attached the curl output and the output from "yum repolist". What do I do now?

Re: Nagios Core - Webpage is not found

Posted: Fri Jun 05, 2020 3:32 pm
by benjaminsmith
Hi Amanda,

Hmmm, that looks ok and you said you did not get any errors when following the instructions. When you run nmap on the Nagios Core host, what do you get?

Code: Select all

nmap <ipaddress>
You should see something like this:
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
When you check the Apache logs, are the error messages still the same as before? It should just work. Is this a clean, minimal CentOS 6 server? Is SELinux enabled?

Code: Select all

getenforce

Re: Nagios Core - Webpage is not found

Posted: Fri Jun 05, 2020 3:46 pm
by akelly0826
The command "nmap" is an unrecognized command. I attached the output of both of the commands you mentioned. I don't have a firewall. All I have is a 2950 Cisco router. It is allowing the recommended ports.