The requested URL /nagios was not found on this server.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ekalavya
Posts: 4
Joined: Thu Aug 13, 2020 6:43 am

The requested URL /nagios was not found on this server.

Post by ekalavya »

Hi,

I have installed Nagios on CentOS8 sucessfully, but I am not able to access it. I am getting "The requested URL /nagios was not found on this server."

Please guide me.

Ekalavya
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: The requested URL /nagios was not found on this server.

Post by cdienger »

It sounds like the Apache configuration is missing. Did you follow the steps at https://support.nagios.com/kb/article/n ... .html#RHEL ? The command to install the Apache config is:

Code: Select all

make install-webconf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ekalavya
Posts: 4
Joined: Thu Aug 13, 2020 6:43 am

Re: The requested URL /nagios was not found on this server.

Post by ekalavya »

Hi cdienger,

Thanks for your reply. I did follow that steps successfully. But, when i was trying to access from a remote system, i am getting "The requested URL /nagios was not found on this server". I am able to access phpmyadmin for database creation without any problem.

What could be wrong?.

regards,

Ekavalya
ekalavya
Posts: 4
Joined: Thu Aug 13, 2020 6:43 am

Re: The requested URL /nagios was not found on this server.

Post by ekalavya »

Hi cdienger

Thanks for your reply. I have searched the net and found the solution as below:

Alias /nagios/ "/var/opt/user/monitoring/nagios/share/./"

<Directory "/var/opt/user/monitoring/nagios/share/./">

But i only added the Alias. Now, my nagios.conf is as below. Please advise me where all i have to make changes. Further, only localhost is visible, but i have 3 windows servers which are not showing. In this regard, how i can add?.

Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
</Directory>

regards,

Ekavalya
Locked