Page 1 of 1
The requested URL /nagios was not found on this server.
Posted: Thu Aug 13, 2020 6:48 am
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
Re: The requested URL /nagios was not found on this server.
Posted: Thu Aug 13, 2020 2:53 pm
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:
Re: The requested URL /nagios was not found on this server.
Posted: Fri Aug 14, 2020 12:17 am
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
Re: The requested URL /nagios was not found on this server.
Posted: Fri Aug 14, 2020 4:31 am
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