Nagios - Access Forbidden 403 -
Nagios - Access Forbidden 403 -
i have seen few question regard, unfortunately not solve problem. please allow me know if have been able run nagios on opensuse on virtual machine.
i have open suse installed in 2 different computers. 1 via vmware , 1 via virtualbox , run fine other application. no problem on accessing network etc.
but after next open suse installation steps mentioned at: http://nagios.sourceforge.net/docs/nagioscore/4/en/quickstart-opensuse.html
i find "access forbidden! error 403" messege when start localhost/nagios (removed http:// purposefully in post) on firefox. installation looks went through fine no error. using opensuse 13.1 version, tried nagios version 4.0.6 , 4.0.7 along plugins 2.0.2.
i made sure, apache(apache2), gcc, gcc++, kernel-source (as suggested in nagios forum user), php, apache2-mod_php5, create etc installed. apache2 service running , retasrted after running: create install-webconf
the username , password rightly keyed in :).
can please guide me on going wrong on this.
here apache2/error_log:
[mon jun 23 14:50:57.331306 2014] [autoindex:error] [pid 6138] [client 127.0.0.1:46061] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 14:51:57.317399 2014] [autoindex:error] [pid 6139] [client 127.0.0.1:46066] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 14:52:57.299316 2014] [autoindex:error] [pid 24637] [client 127.0.0.1:46068] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 14:57:57.289446 2014] [autoindex:error] [pid 6137] [client 127.0.0.1:46077] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 14:58:59.372027 2014] [autoindex:error] [pid 6136] [client ::1:59841] ah01276: cannot serve directory /usr/local/nagios/share/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:02:57.274830 2014] [autoindex:error] [pid 6139] [client 127.0.0.1:46119] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:07:57.263871 2014] [autoindex:error] [pid 24637] [client 127.0.0.1:46143] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:12:57.251875 2014] [autoindex:error] [pid 6137] [client 127.0.0.1:46147] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:17:57.239626 2014] [autoindex:error] [pid 6135] [client 127.0.0.1:46152] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:22:57.228968 2014] [autoindex:error] [pid 6136] [client 127.0.0.1:46155] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:27:57.217628 2014] [autoindex:error] [pid 6138] [client 127.0.0.1:46158] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:32:57.206081 2014] [autoindex:error] [pid 6139] [client 127.0.0.1:46161] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:37:57.197239 2014] [autoindex:error] [pid 24637] [client 127.0.0.1:46165] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:42:57.180851 2014] [autoindex:error] [pid 6137] [client 127.0.0.1:46168] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:47:57.165708 2014] [autoindex:error] [pid 6135] [client 127.0.0.1:46172] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:52:57.154070 2014] [autoindex:error] [pid 6136] [client 127.0.0.1:46174] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 15:57:57.136265 2014] [autoindex:error] [pid 6138] [client 127.0.0.1:46182] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:02:57.122498 2014] [autoindex:error] [pid 6139] [client 127.0.0.1:46186] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:07:57.110446 2014] [autoindex:error] [pid 24637] [client 127.0.0.1:46191] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:12:57.092886 2014] [autoindex:error] [pid 6137] [client 127.0.0.1:46197] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:17:57.077070 2014] [autoindex:error] [pid 6135] [client 127.0.0.1:46204] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:22:57.067403 2014] [autoindex:error] [pid 6136] [client 127.0.0.1:46206] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:27:57.054625 2014] [autoindex:error] [pid 6138] [client 127.0.0.1:46209] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:32:57.042447 2014] [autoindex:error] [pid 6139] [client 127.0.0.1:46213] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive [mon jun 23 16:37:57.030372 2014] [autoindex:error] [pid 24637] [client 127.0.0.1:46219] ah01276: cannot serve directory /srv/www/htdocs/: no matching directoryindex (index.html,index.html.var) found, , server-generated directory index forbidden options directive
here apache2/acsess_log:
::1 - - [23/jun/2014:14:58:59 -0700] "get /nagios http/1.1" 401 1233 "-" "mozilla/5.0 (x11; linux x86_64; rv:25.0) gecko/20100101 firefox/25.0" ::1 - nagiosadmin [23/jun/2014:14:58:59 -0700] "get /nagios http/1.1" 301 310 "-" "mozilla/5.0 (x11; linux x86_64; rv:25.0) gecko/20100101 firefox/25.0" ::1 - - [23/jun/2014:14:58:59 -0700] "get /nagios/ http/1.1" 403 1004 "-" "mozilla/5.0 (x11; linux x86_64; rv:25.0) gecko/20100101 firefox/25.0" ::1 - nagiosadmin [23/jun/2014:15:01:43 -0700] "get /nagios/index.php http/1.1" 200 1628 "-" "mozilla/5.0 (x11; linux x86_64; rv:25.0) gecko/20100101 firefox/25.0" 127.0.0.1 - - [23/jun/2014:15:02:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:07:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:12:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:17:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:22:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:27:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:32:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:37:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:42:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:47:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:52:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:15:57:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:02:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:07:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:12:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:17:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:22:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:27:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:32:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:37:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)" 127.0.0.1 - - [23/jun/2014:16:42:57 -0700] "get / http/1.0" 403 1004 "-" "check_http/v2.0.2 (nagios-plugins 2.0.2)"
the conf file is:
scriptalias /nagios/cgi-bin "/usr/local/nagios/sbin" <directory "/usr/local/nagios/sbin"> # sslrequiressl options execcgi allowoverride none order allow,deny allow # order deny,allow # deny # allow 127.0.0.1 authname "nagios access" authtype basic authuserfile /usr/local/nagios/etc/htpasswd.users require valid-user </directory> alias /nagios "/usr/local/nagios/share" <directory "/usr/local/nagios/share"> # sslrequiressl options none allowoverride none order allow,deny allow # order deny,allow # deny # allow 127.0.0.1 authname "nagios access" authtype basic authuserfile /usr/local/nagios/etc/htpasswd.users require valid-user </directory>
i know old thread,i face similar issue today in case of centos7,the thing resolve issue adding index.php directoryindex parameter,not sure how much useful in case of opensuse
httpd.conf
changed
<ifmodule dir_module> directoryindex index.html </ifmodule>
to
<ifmodule dir_module> directoryindex index.html index.php </ifmodule>
nagios
Comments
Post a Comment