3

我已经在我的 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>

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

在此处输入图像描述

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

4

2 回答 2

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>
于 2019-10-28T08:06:22.233 回答
0

我像这样修复了它,而没有对 RHEL/CentOS7 中的默认值进行任何进一步的调整:

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

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

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

于 2017-01-23T20:39:10.440 回答