Page 1 of 1
Issue with SLES 12 - Unable to open Nagios Console
Posted: Wed Aug 12, 2015 12:21 am
by ankit_bansal3
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.
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Wed Aug 12, 2015 9:59 am
by hsmith
What do the permissions look like in the share directory?
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Wed Aug 12, 2015 11:56 pm
by ankit_bansal3
drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Thu Aug 13, 2015 9:30 am
by hsmith
ankit_bansal3 wrote:drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
Can you post the results of this command?
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Fri Aug 14, 2015 6:04 am
by ankit_bansal3
nagcmd

1000:www,nagios
nagios

1001:www,nagios
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Fri Aug 14, 2015 10:26 am
by hsmith
ankit_bansal3 wrote:nagcmd

1000:www,nagios
nagios

1001:www,nagios
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.
Can you issue a:
If that doesn't work, try a
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
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!
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Sat Aug 15, 2015 7:08 am
by ankit_bansal3
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.
Re: Issue with SLES 12 - Unable to open Nagios Console
Posted: Mon Aug 17, 2015 9:23 am
by hsmith
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