Erro 404 Página Munin não encontrada

0

Eu instalei o Munin e o munin-node no servidor e o httpd já estava instalado. Mas depois de instalado quando eu executo o nó munin, o Browser me dá esse erro.

Not Found

The requested URL /munin was not found on this server.

Apache/2.2.3 (Red Hat) Server at 192.168.5.1 Port 80

Eu verifiquei o arquivo /etc/munin.conf e o caminho para o diretório Html está correto.

# Example configuration file for Munin, generated by 'make build'

# The next three variables specifies where the location of the RRD
# databases, the HTML output, and the logs, severally.  They all
# must be writable by the user running munin-cron.
dbdir   /var/lib/munin
htmldir /var/www/munin
logdir  /var/log/munin
rundir  /var/run/munin

E a permissão para / var / www / munin / está definida para munin: munin

/etc/httpd/conf.d/munin.conf

# For SSL-servers
ScriptAlias /munin/cgi/ /var/www/munin/cgi/
#<Directory /var/www/munin/cgi/>
#   Options ExecCGI
#   SSLRequireSSL
#   order deny,allow
#   deny from all
#   AuthType Basic
#   AuthUserFile /site/cfg/passwd
#   AuthGroupFile /site/cfg/group
#   AuthName "munin"
#   require group munin
#   Satisfy Any
#</Directory>
#
Alias /munin/ /var/www/munin/
#<Directory /var/www/munin/>
#   Options None
#   SSLRequireSSL
#   order deny,allow
#   deny from all
#   AuthType Basic
#   AuthUserFile /site/cfg/passwd
#   AuthGroupFile /site/cfg/group
#   AuthName "munin"
#   require group munin
#   Satisfy Any
#</Directory>

Logs Apache

[Sun Sep 01 04:03:12 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 01 04:03:12 2013] [notice] Digest: done
[Sun Sep 01 04:03:12 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Sun Sep 01 11:34:47 2013] [notice] caught SIGTERM, shutting down
[Sun Sep 01 14:50:15 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 01 14:50:15 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 01 14:50:15 2013] [notice] Digest: done
[Sun Sep 01 14:50:16 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Sun Sep 01 14:50:18 2013] [notice] caught SIGTERM, shutting down
[Sun Sep 01 14:50:18 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 01 14:50:18 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Sep 01 14:50:18 2013] [notice] Digest: done
[Sun Sep 01 14:50:18 2013] [notice] Apache/2.2.3 (Red Hat) configured -- resuming normal operations
[Sun Sep 01 14:50:41 2013] [error] [client 10.20.20.147] File does not exist: /var/www/html/munin
[Sun Sep 01 14:50:41 2013] [error] [client 10.20.20.147] File does not exist: /var/www/html/favicon.ico

Depois de descomentar alguns arquivos em /etc/httpd/conf.d/munin.conf

# For SSL-servers
ScriptAlias /munin/cgi/ /var/www/munin/cgi/
<Directory /var/www/munin/cgi/>
   Options ExecCGI
   #SSLRequireSSL
   order deny,allow
#   deny from all
   #deny from none
   allow from all
   AuthType Basic
   AuthUserFile /site/cfg/passwd
   AuthGroupFile /site/cfg/group
   AuthName "munin"
   require group munin
   Satisfy Any
</Directory>
#
Alias /munin/ /var/www/munin/
<Directory /var/www/munin/>
   Options None
   #SSLRequireSSL
   order deny,allow
#   deny from all
   #deny from none
   allow from all
   AuthType Basic
   AuthUserFile /site/cfg/passwd
   AuthGroupFile /site/cfg/group
   AuthName "munin"
   require group munin
   Satisfy Any
</Directory>
    
por OmiPenguin 29.08.2013 / 13:31

2 respostas

1

Os arquivos HTML e PNG são realmente criados, mas a permissão definida no arquivo é 640 em vez de 644, que apache não é capaz de ler. Portanto, há uma solução alternativa para isso. você deveria estar rodando o munin como

su - munin --shell=/bin/bash munin-cron  

Isso atualizará os gráficos com a permissão 644 e apache poderá lê-lo.

    
por 23.04.2014 / 14:45
0

Por favor, adicione as seguintes linhas em /etc/httpd/conf/httpd.conf

Alias /munin /var/www/munin
<Directory /var/www/munin>
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

salve o arquivo, remova todo o seu arquivo de configuração munin e reinicie o apache e o nó munin.

/etc/init.d/httpd restart
 chkconfig --levels 235 munin-node on
 /etc/init.d/munin-node restart
    
por 31.08.2013 / 15:57