Install Monit on CentOS/Redhat

Monit is a free open source tool to monitor and manage linux system and services.

To install Monit on Redhat or CentOS, you need to enable EPEL (Extra Packages for Enterprise Linux). You need to login as root to enable EPEL and install monit.

$ ls /etc/yum.repos.d/

You will see some repo and conf at this path. Eg: redhat-rhui-client-config.repo,  rhel-source.repo, rhui-load-balancers.conf, etc

$ vi /etc/yum.repos.d/epel.repo

Add the following lines:

[epel]
 name=Extra Packages for Enterprise Linux 5 – $basearch
 mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
 failovermethod=priority
 enabled=1
 gpgcheck=0

Save and close file

$ yum clean all

Loaded plugins: amazon-id, rhui-lb, security

Cleaning repos: epel rhui-REGION-client-config-server-6 rhui-REGION-rhel-server-releases

              : rhui-REGION-rhel-server-rh-common

Cleaning up Everything

$ yum install monit

Loaded plugins: amazon-id, rhui-lb, security
Setting up Install Process
epel                                          | 3.7 kB     00:00     
epel/primary_db                               | 3.3 MB     00:01 
:
:
Installed:
  monit.x86_64 0:4.10.1-9.el5                                                                                         
Dependency Installed:
  openssl098e.x86_64 0:0.9.8e-18.el6_5.2                                                                              
Complete!
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s