centos 6.4 instalacao - monitorix
TRANSCRIPT
Howto install Monitorix on Centos 6.4 6.3 5.9 Fedora 18 17 RHEL
1. Install the required packages:
With CentOS: Please install epel repository first
http://ithelpblog.com/os/linux/redhat/centos-redhat/how-to-install-epel-repository-on-centos-6-4-or-redhat-6-4-rhel/
[root@fedora18 ~]#yum install httpd 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
2. Download and install the Monitorix package:
[root@fedora18 ~]# rpm -ivh http://pkgs.repoforge.org/monitorix/monitorix-2.5.2-1.el6.rf.noarch.rpmRetrieving http://pkgs.repoforge.org/monitorix/monitorix-2.5.2-1.el6.rf.noarch.rpm………………………………………………………
3. Start apache and Monitorix:
[root@fedora18 ~]# service httpd start
root@fedora18 ~]# service monitorix start
4. Edit the Monitorix Configure file:
[root@fedora18 ~]# vi /etc/httpd/conf.d/monitorix.confAlias /monitorix /usr/share/monitorixScriptAlias /monitorix-cgi /usr/share/monitorix/cgi-bin
<Directory /usr/share/monitorix/cgi/>DirectoryIndex monitorix.cgiOptions ExecCGIorder deny,allowdeny from allallow from all // Alllow connect from the outside</Directory>
# Apache rules to restrict access to Monitorix:# Don’t forget to add <username> in .htpasswd with the ‘htpasswd’ command.#
# Uncomment these lines<Directory “/usr/share/monitorix”>Options Indexes Includes FollowSymLinksOrder Deny,AllowDeny from All
allow from all // Alllow connect from the outsideAllowOverride NoneAuthUserFile /etc/httpd/conf/.htpasswdAuthGroupFile /dev/nullAuthName “Monitorix: Restricted access, sorry.”
AuthType BasicRequire user <username>Satisfy Any</Directory>
5. Disabled SElinux and restart the server:
[root@fedora18 ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# enforcing – SELinux security policy is enforced.# permissive – SELinux prints warnings instead of enforcing.# disabled – No SELinux policy is loaded.SELINUX=disabled# SELINUXTYPE= can take one of these two values:# targeted – Targeted processes are protected,# minimum – Modification of targeted policy. Only selected processes are protected.# mls – Multi Level Security protection.SELINUXTYPE=targeted
6. Connect Monitorix via Web browser:
7. Now you can monitor your system: