.7after install nagios 4.3 on centos.7 now able to take web

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
sandy9090
Posts: 1
Joined: Fri Dec 14, 2018 2:47 am

.7after install nagios 4.3 on centos.7 now able to take web

Post by sandy9090 »

HI ,

I have installed nagios 4.3 on centos 7 , I followed this web site for the installation .https://www.tecmint.com/install-nagios-in-linux/

all went successful, I am not able to take web interface using http://localip/nagios

I disabled selinux and iptables as well

attaching access log:
__________________
127.0.0.1 - - [14/Dec/2018:12:39:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:40:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:41:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:42:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:47:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:52:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:12:57:30 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [14/Dec/2018:13:03:07 +0530] "GET / HTTP/1.0" 403 4897 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"

error log:
________________
[Fri Dec 14 12:29:00.953665 2018] [core:notice] [pid 3174] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Dec 14 12:29:00.956023 2018] [suexec:notice] [pid 3174] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::250:56ff:feb1:5f90. Set the 'ServerName' directive globally to suppress this message
[Fri Dec 14 12:29:01.052984 2018] [auth_digest:notice] [pid 3174] AH01757: generating secret for digest authentication ...
[Fri Dec 14 12:29:01.055648 2018] [lbmethod_heartbeat:notice] [pid 3174] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 14 12:29:01.086470 2018] [mpm_prefork:notice] [pid 3174] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Fri Dec 14 12:29:01.086511 2018] [core:notice] [pid 3174] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Dec 14 12:39:30.352975 2018] [autoindex:error] [pid 3182] [client 127.0.0.1:55706] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:40:30.364615 2018] [autoindex:error] [pid 3179] [client 127.0.0.1:55708] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:41:30.372952 2018] [autoindex:error] [pid 3183] [client 127.0.0.1:55712] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:42:30.380993 2018] [autoindex:error] [pid 3180] [client 127.0.0.1:55714] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:47:30.391565 2018] [autoindex:error] [pid 3181] [client 127.0.0.1:55718] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:52:30.399594 2018] [autoindex:error] [pid 3182] [client 127.0.0.1:55722] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 12:57:30.407958 2018] [autoindex:error] [pid 3179] [client 127.0.0.1:55726] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Fri Dec 14 13:02:07.805730 2018] [mpm_prefork:notice] [pid 3174] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Dec 14 13:02:30.634759 2018] [suexec:notice] [pid 1179] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::250:56ff:feb1:5f90. Set the 'ServerName' directive globally to suppress this message
[Fri Dec 14 13:02:30.689033 2018] [auth_digest:notice] [pid 1179] AH01757: generating secret for digest authentication ...
[Fri Dec 14 13:02:30.689735 2018] [lbmethod_heartbeat:notice] [pid 1179] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 14 13:02:30.778141 2018] [mpm_prefork:notice] [pid 1179] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Fri Dec 14 13:02:30.778191 2018] [core:notice] [pid 1179] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Dec 14 13:03:07.730168 2018] [autoindex:error] [pid 1388] [client 127.0.0.1:36350] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: .7after install nagios 4.3 on centos.7 now able to take

Post by npolovenko »

Hello, @sandy9090. This looks like some Apache setting misconfiguration in your installation. I highly recommend using the official instruction for installing the Nagios Core. The tutorial you used is was written in 2013 and the most recent version of Core as of right now is 4.4.1. If you can wipe the server and start all over here is the most recent tutorial:
https://assets.nagios.com/downloads/nag ... start.html
[Fri Dec 14 12:29:00.953665 2018] [core:notice] [pid 3174] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
I'm not sure if this message came before you disabled SELinux, but it still says that it's enabled. We do not support SElinux with Nagios installations.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked