Install Linux monitoring software Monitorix in CentOS

Source: Internet
Author: User

1. Set an installation source in CentOS to facilitate the use of the yum command.
# Vi/etc/yum. repos. d/CentOS-Base.repo
# Add the following parts at the end of the file
[Dag]
Name = Dag RPM Repository for Red Hat Enterprise Linux
Baseurl = http://apt.sw.be/redhat/el?releasever/en/?basearch/dag
Gpgcheck = 1
Gpgkey = http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Enabled = 1

2. install the software using YUM
Yum install rrdtool-perl-libwww-perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server -Simple wget

3. Next, use the wget command to download the latest 'monitorix 'package.
Example: # wget http://www.monitorix.org/monitorix-3.4.0-1.noarch.rpm
Once the download is successful, run the rpm command to install it.
# Rpm-ivh monitorix-3.4.0-1.noarch.rpm
Once the installation is successful, check the main configuration file '/etc/monitorix. conf' and add some additional settings based on your system to enable or disable graphics.
Finally, add the Monitorix service to the system startup Item and use the following two commands to enable the Service.
# Chkconfig -- level 35 monitorix on
# Service monitorix start
Once this service is enabled, the program starts to collect system information based on the configuration set in the '/etc/monitorix. conf' file. After a few minutes,
You will start to see the system image from the browser at the following locations:
Http: /localhost: 8080/monitorix/
If you have SELinux enabled, the image is invisible and you will find it in '/var/log/messages' or '/var/log/audit. A large number of error messages are displayed in the log' file,
The error message shows that the RRD database file is denied. To clear this type of error information and the right-side image, disable SELinux.
To disable SELinux, change "enforcing" to "disabled" in the '/etc/selinux/config' file ".
SELINUX = disabled
The above change will temporarily disable SELinux until you restart the machine. If you want to enable the system in disabled mode, restart the system.
To monitor multiple linux Hosts at the same time. You need to install "monitorix" on each linux host and modify the configuration file monitorix. conf of one of the linux Hosts.
Find and modify it to the following:
<Multihost>
Enabled = n // change enable to y
Footer_url = y
Graphs_per_row = 2
Remotehost_list = server 1
<Remotehost_desc>
1 = http: // 172.16.0.102: 8080, //, // change to the IP address of the host to be monitored:
</Remotehost_desc>
Groups = n
Remotegroup_list = My Group
<Remotegroup_desc>
0 = server 2, server 3
</Remotegroup_desc>
</Multihost>

Monitorix details: click here
Monitorix: click here

Monitorix monitors your Linux host

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.