Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Monitorix system monitoring tools in CentOS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to install Monitorix system monitoring tools in CentOS. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Installation:

1. Set up an installation source under CentOS to facilitate the use of the yum command

# vi / etc/yum.repos.d/CentOS-Base.repo

# add the following section 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 rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple wget

Next, use the wget command to download the latest version of the 'Monitorix' package.

For example: # wget http://www.monitorix.org/monitorix-3.4.0-1.noarch.rpm

Once the download is successful, install it using the rpm command.

# rpm-ivh monitorix-3.4.0-1.noarch.rpm

Once the installation is successful, please check the main configuration file'/ etc/monitorix.conf', to add some additional settings based on your system, enable or disable graphics.

Finally, add the Monitorix service to the system startup item and use the following two commands to turn on the service.

# chkconfig-- level 35 monitorix on

# service monitorix start

Once you have enabled the service, the program will start collecting system information based on the configuration set in the'/ etc/monitorix.conf' file; a few minutes later

You will start to see the system graphics from the browser in the following location:

Http://localhost:8080/monitorix/

If you have SELinux enabled, the graphics are invisible and you will see a lot of error messages in the'/ var/log/messages' or'/ var/log/audit/audit.log' file

These error messages show that access to the RRD database file is denied. To clear such error messages and the graphics on the right, you need to disable SELinux.

To close SELinux, simply change the line "enforcing" to "disabled" in the'/ etc/selinux/config' file.

SELINUX=disabled

This change will temporarily disable SELinux until you restart the machine. If you want the system to always turn on in disabled mode, restart the system.

To monitor multiple linux hosts at the same time. You need to install "monitorix" on each linux host you want, and modify the configuration file for one of the linux hosts: monitorix.conf.

Locate and modify 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 dint / change here 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"

After reading the above, do you have any further understanding of how to install Monitorix system monitoring tools in CentOS? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report