We have installed Nagios[4.0.8] on SLES12. No Errors/Failures during installation.
But unable to open Nagios home page console. Getting below error.
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
10.94.172.113
Apache/2.4.10 (Linux/SUSE)
Please help us to fix this issue.
Issue with SLES 12 - Unable to open Nagios Console
-
- Posts: 20
- Joined: Wed Mar 18, 2015 4:38 am
Re: Issue with SLES 12 - Unable to open Nagios Console
What do the permissions look like in the share directory?
Code: Select all
ll /usr/local/nagios/share
Former Nagios Employee.
me.
me.
-
- Posts: 20
- Joined: Wed Mar 18, 2015 4:38 am
Re: Issue with SLES 12 - Unable to open Nagios Console
drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
Re: Issue with SLES 12 - Unable to open Nagios Console
Can you post the results of this command?ankit_bansal3 wrote:drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
Code: Select all
cat /etc/group | grep nagios
Former Nagios Employee.
me.
me.
-
- Posts: 20
- Joined: Wed Mar 18, 2015 4:38 am
Re: Issue with SLES 12 - Unable to open Nagios Console
nagcmd1000:www,nagios
nagios1001:www,nagios
nagios1001:www,nagios
Re: Issue with SLES 12 - Unable to open Nagios Console
I'm going to be honest with you, I don't have a copy of SLES 12 spun up yet, so I am going to need you to check a couple things for me.ankit_bansal3 wrote:nagcmd1000:www,nagios
nagios1001:www,nagios
Can you issue a:
Code: Select all
systemctl status apache2.service
Code: Select all
systemctl status httpd.service
Otherwise, the file location may be /etc/sysconfig/apache2
I'm currently spinning up a SLES 12 to try to replicate your issue, but if you could check those things, that would be great.
Thank you for your patience!
Former Nagios Employee.
me.
me.
-
- Posts: 20
- Joined: Wed Mar 18, 2015 4:38 am
Re: Issue with SLES 12 - Unable to open Nagios Console
Commend =>
systemctl status apache2.service
Output =>
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: active (running) since Wed 2015-08-05 18:21:25 IST; 1 weeks 2 days ago
Process: 25963 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 25985 (httpd2-prefork)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/apache2.service
ââ25985 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26004 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26005 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26006 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26007 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26008 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26067 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
Aug 05 18:21:25 NAGIOS408SLES12-64 start_apache2[25985]: AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, usi...s message
Hint: Some lines were ellipsized, use -l to show in full.
systemctl status apache2.service
Output =>
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: active (running) since Wed 2015-08-05 18:21:25 IST; 1 weeks 2 days ago
Process: 25963 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 25985 (httpd2-prefork)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/apache2.service
ââ25985 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26004 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26005 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26006 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26007 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26008 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26067 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
Aug 05 18:21:25 NAGIOS408SLES12-64 start_apache2[25985]: AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, usi...s message
Hint: Some lines were ellipsized, use -l to show in full.
Re: Issue with SLES 12 - Unable to open Nagios Console
ankit_bansal3 wrote:Commend =>
systemctl status apache2.service
Output =>
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: active (running) since Wed 2015-08-05 18:21:25 IST; 1 weeks 2 days ago
Process: 25963 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
Main PID: 25985 (httpd2-prefork)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/apache2.service
ââ25985 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26004 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26005 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26006 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26007 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26008 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
ââ26067 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -DFOREGROUND -k start
Aug 05 18:21:25 NAGIOS408SLES12-64 start_apache2[25985]: AH00558: httpd2-prefork: Could not reliably determine the server's fully qualified domain name, usi...s message
Hint: Some lines were ellipsized, use -l to show in full.
Can you look in /etc/httpd/conf/httpd.conf , and look for the "User" and "Group" lines and tell me what they are set to?
Otherwise, the file location may be /etc/sysconfig/apache2
Former Nagios Employee.
me.
me.