Issue with SLES 12 - Unable to open Nagios Console

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
ankit_bansal3
Posts: 20
Joined: Wed Mar 18, 2015 4:38 am

Issue with SLES 12 - Unable to open Nagios Console

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with SLES 12 - Unable to open Nagios Console

Post by hsmith »

What do the permissions look like in the share directory?

Code: Select all

ll /usr/local/nagios/share
Former Nagios Employee.
me.
ankit_bansal3
Posts: 20
Joined: Wed Mar 18, 2015 4:38 am

Re: Issue with SLES 12 - Unable to open Nagios Console

Post by ankit_bansal3 »

drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with SLES 12 - Unable to open Nagios Console

Post by hsmith »

ankit_bansal3 wrote:drwxrwxr-x 1 nagios nagios 426 Aug 5 17:16 share
Can you post the results of this command?

Code: Select all

cat /etc/group | grep nagios
Former Nagios Employee.
me.
ankit_bansal3
Posts: 20
Joined: Wed Mar 18, 2015 4:38 am

Re: Issue with SLES 12 - Unable to open Nagios Console

Post by ankit_bansal3 »

nagcmd:x:1000:www,nagios
nagios:x:1001:www,nagios
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with SLES 12 - Unable to open Nagios Console

Post by hsmith »

ankit_bansal3 wrote:nagcmd:x:1000:www,nagios
nagios:x: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:

Code: Select all

systemctl status apache2.service
If that doesn't work, try a

Code: Select all

systemctl status httpd.service
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!
Former Nagios Employee.
me.
ankit_bansal3
Posts: 20
Joined: Wed Mar 18, 2015 4:38 am

Re: Issue with SLES 12 - Unable to open Nagios Console

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Issue with SLES 12 - Unable to open Nagios Console

Post 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
Former Nagios Employee.
me.
Locked