centos 6.4 instalacao - monitorix

4
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.rpm Retrieving 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.conf Alias /monitorix /usr/share/monitorix ScriptAlias /monitorix-cgi /usr/share/monitorix/cgi-bin <Directory /usr/share/monitorix/cgi/> DirectoryIndex monitorix.cgi Options ExecCGI order deny,allow deny from all allow from all // Alllow connect from the outside </Directory> # Apache rules to restrict access to Monitorix:

Upload: valdinei-quaresma

Post on 25-Oct-2015

59 views

Category:

Documents


10 download

TRANSCRIPT

Page 1: CENTOS 6.4 Instalacao - MONITORIX

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

Page 2: CENTOS 6.4 Instalacao - MONITORIX

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:

Page 3: CENTOS 6.4 Instalacao - MONITORIX