【问题标题】:Unable to zoom-in Munin graphs on CentOS无法在 CentOS 上放大 Munin 图
【发布时间】:2015-04-18 00:25:46
【问题描述】:

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

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

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

【问题讨论】:

  • 感谢您的回复。我们到底在哪里添加这个 apache 配置?与此一起完成的任何其他配置?
  • 您必须将配置保存在您的虚拟主机设置中。一般位于/etc/httpd/sites-available/。
  • 我尝试按照上述链接中的 apache 配置进行操作。但它没有帮助。

标签: apache apache2 centos6 munin


【解决方案1】:

我没有对 RHEL/CentOS7 中的默认设置做任何进一步的调整,就这样修复了它:

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

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

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

【讨论】:

    【解决方案2】:

    我需要做以下事情:

    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>
    

    【讨论】:

      猜你喜欢
      • 2012-10-05
      • 1970-01-01
      • 2014-06-14
      • 2014-08-04
      • 1970-01-01
      • 1970-01-01
      • 2011-05-29
      • 2015-02-02
      • 2013-10-18
      相关资源
      最近更新 更多