Thank you all for your help. I was able to get the web service working again. but the issue I'm having now is when I am in the web service and want to view my hosts and services I get the following error:
You don't have permission to access /nagios/cgi-bin/status.cgi on this server.
I am on RHEL 7. And I'm running Nagios 4.1.1 with the plugins 2.1.1 This was all working properly before and I havent changed anything manually so I'm not sure what caused the issue.
Code: Select all
tail /var/log/httpd/error_log
[Thu Apr 28 10:59:58.929334 2016] [autoindex:error] [pid 4731] [client 127.0.0.1:35804] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:04:58.906829 2016] [autoindex:error] [pid 4218] [client 127.0.0.1:35808] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:09:58.884736 2016] [autoindex:error] [pid 4214] [client 127.0.0.1:35812] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:14:58.862423 2016] [autoindex:error] [pid 4221] [client 127.0.0.1:35816] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[root@bauspap218 ~]# tail /var/log/httpd/error_log
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 10:59:58.929334 2016] [autoindex:error] [pid 4731] [client 127.0.0.1:35804] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:04:58.906829 2016] [autoindex:error] [pid 4218] [client 127.0.0.1:35808] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:09:58.884736 2016] [autoindex:error] [pid 4214] [client 127.0.0.1:35812] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:14:58.862423 2016] [autoindex:error] [pid 4221] [client 127.0.0.1:35816] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[root@bauspap218 ~]# [Thu Apr 28 10:59:58.929334 2016] [autoindex:error] [pid 4731] [client 127.0.0.1:35804] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# [Thu Apr 28 11:04:58.906829 2016] [autoindex:error] [pid 4218] [client 127.0.0.1:35808] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# [Thu Apr 28 11:09:58.884736 2016] [autoindex:error] [pid 4214] [client 127.0.0.1:35812] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# [Thu Apr 28 11:14:58.862423 2016] [autoindex:error] [pid 4221] [client 127.0.0.1:35816] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# [Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
-bash: [Thu: command not found
[root@bauspap218 ~]# [Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
-bash: [Thu: command not found
[root@bauspap218 ~]# [Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
-bash: [Thu: command not found
[root@bauspap218 ~]# [Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
-bash: [Thu: command not found
[root@bauspap218 ~]# [Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# [Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
-bash: syntax error near unexpected token `('
[root@bauspap218 ~]# tail /var/log/httpd/error_log
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated di[Thu Apr 28 10:59:58.929334 2016] [autoindex:error] [pid 4731] [client 127.0.0.1:35804] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directiver
[Thu Apr 28 11:04:58.906829 2016] [autoindex:error] [pid 4218] [client 127.0.0.1:35808] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:09:58.884736 2016] [autoindex:error] [pid 4214] [client 127.0.0.1:35812] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:14:58.862423 2016] [autoindex:error] [pid 4221] [client 127.0.0.1:35816] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:23.713323 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:19:58.840519 2016] [autoindex:error] [pid 4219] [client 127.0.0.1:35820] AH01276:ectory inde Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directivex
forbid[Thu Apr 28 11:24:58.818157 2016] [autoindex:error] [pid 4730] [client 127.0.0.1:35824] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directived
en by Options directive
[root@bauspap218 ~]# tail /var/log/httpd/error_log
[Thu Apr 28 11:18:20.306027 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi, referer: http://172.17.205.81/nagios/main.php
[Thu Apr 28 11:18:22.120275 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http://172.17.205.81/nagios/side.php
[Thu Apr 28 11:18:22.829417 2016] [access_compat:error] [pid 4216] [client 172.17.206.144:60699] AH01797: client denied by server configuration: /usr/local/nagios/sbin/status.cgi, referer: http:[root@bauspap218 ~]#
Thanks for your help again.