您的位置:首页 > 运维架构 > Linux

安装Monitorix 到CentOS 6.5 x86-64

2014-12-12 09:27 597 查看
yum -y install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple perl-IO-Socket-SSL

rpm -ivh monitorix-3.6.0-1.noarch.rpm
vi /etc/monitorix/monitorix.conf
service monitorix start

http://monitorix-server-ip:8080/monitorix

Apache statistics (apache.rrd)

vi /etc/httpd/conf/httpd.conf
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Allow,Deny
Allow from all # you should replace "all" with specific ip address for security, like "localhost other-ip"
</Location>

Notes:

1. for Virtual Host, put "Location" section into "Virtual Host" section
2. for using .htaccess, put "RewriteRule ^(server-info|server-status) - [L]" before any RewriteRule

service httpd restart

vi /etc/monitorix/monitorix.conf
apache = y

<apache>
list = http://localhost/server-status?auto rigid = 0, 2, 0
limit = 100, 100, 100
</apache>

service monitorix restart

本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1589049
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: