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