无法放大CentOS上的Munin图表

时间:2015-02-17 10:00:54

标签: apache apache2 centos6 munin

我在CentOS 6系统上安装了munin。 安装程序如下:

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum --enablerepo=epel install munin munin-node rrdtool

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

htpasswd -cm /etc/munin/munin-htpasswd muninadmin

/etc/init.d/munin-node start

chkconfig munin-node on

service httpd restart

要检查图表的网址 - http://[MY_IP]/munin

在Munin.conf中,用以下内容替换现有数据:

Alias /munin /var/www/html/munin

<Directory /var/www/html/munin>

  Options FollowSymLinks

  AllowOverride None

  Order allow,deny

  Allow from all

</Directory>

能够查看所有图表,但无法放大任何图表。 我附上了我在尝试缩放时获得的屏幕截图。

enter image description here

我们有什么解决方案吗?我在安装步骤中遗漏了什么吗?

2 个答案:

答案 0 :(得分:0)

我没有进一步调整RHEL / CentOS7中的默认值来修复它:

sudo mkdir /var/lib/munin/cgi-tmp

sudo chown apache:apache /var/lib/munin/cgi-tmp

如果你仍然感到悲伤,请使用audit2allow确保你没有被selinux扣好。

答案 1 :(得分:0)

我需要执行以下操作:

chown -R munin:apache /var/log/munin/
systemctl restart httpd

和我的/etc/httpd/conf.d/munin.conf看起来像这样:

alias /munin /var/www/html/munin
ScriptAlias   /munin-cgi/munin-cgi-graph /var/www/html/munin/cgi/munin-cgi-graph

#ScriptAlias /munin-cgi/ /var/www/html/munin/cgi/

# FastCGI
<Directory "/var/www/html/munin/cgi">
    Options +ExecCGI
    <IfModule mod_fcgid.c>
        SetHandler fcgid-script
    </IfModule>
    <IfModule !mod_fcgid.c>
        SetHandler cgi-script
    </IfModule>
</Directory>

<directory /var/www/html/munin>
    Satisfy Any
</directory>
相关问题