Howto install Monitorix on Centos 6.4 6.3 5.9 Fedora 18 17 RHEL

Howto install Monitorix on Centos 6.4 6.3 5.9 Fedora 18 17 RHEL

install Monitorix  Fedora 18

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:
# Don’t forget to add <username> in .htpasswd with the ‘htpasswd’ command.
#

# Uncomment these lines
<Directory “/usr/share/monitorix”>
Options Indexes Includes FollowSymLinks
Order Deny,Allow
Deny from All
allow from all // Alllow connect from the outside
AllowOverride None
AuthUserFile /etc/httpd/conf/.htpasswd
AuthGroupFile /dev/null
AuthName “Monitorix: Restricted access, sorry.”

AuthType Basic
Require 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:

install Monitorix  Fedora 18 a

 

7. Now you can monitor your system:

install Monitorix  Fedora 18 b (converted) (converted)

That’s all. Thanks for using ITHelpblog.com.

2 comments to Howto install Monitorix on Centos 6.4 6.3 5.9 Fedora 18 17 RHEL

  • Christopher Meng  says:

    I’ve packaged it into Fedora and EPEL now.

    Just yum install monitorix

    • Kevin  says:

      Thanks Christopher. It will be easier for installation.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>