[英]Unable to zoom-in Munin graphs on CentOS
I have installed munin on my CentOS 6 system.我已经在我的 CentOS 6 系统上安装了 munin。 The installation procedure is as follows:
安装过程如下:
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
Url to check graphs - http://[MY_IP]/munin检查图表的网址 - http://[MY_IP]/munin
In Munin.conf, replace the existing data with the following:在 Munin.conf 中,将现有数据替换为以下内容:
Alias /munin /var/www/html/munin
<Directory /var/www/html/munin>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Am able to view all the graphs, but not able to zoom-in any of them.我能够查看所有图表,但无法放大其中任何一个。 I have attached the screenshot of the screen that I get when I try zooming.
我附上了我尝试缩放时得到的屏幕截图。
Do we have any solutions for this?我们有什么解决方案吗? Am I missing something in the installation steps?
我在安装步骤中遗漏了什么吗?
I fixed it like this without any further tweaking from defaults in RHEL/CentOS7:我像这样修复了它,而没有进一步调整 RHEL/CentOS7 中的默认值:
sudo mkdir /var/lib/munin/cgi-tmp
sudo chown apache:apache /var/lib/munin/cgi-tmp
If you still get grief, use audit2allow to make sure you aren't getting dunked on by selinux.如果您仍然感到悲伤,请使用 audit2allow 以确保您不会被 selinux 欺骗。
I needed to do the following:我需要执行以下操作:
chown -R munin:apache /var/log/munin/
systemctl restart httpd
and my /etc/httpd/conf.d/munin.conf looks like this:我的 /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>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.