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 does zabbix monitor redis memory

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces zabbix how to monitor redis memory related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will get something after reading this zabbix how to monitor redis memory article, let's take a look at it.

1. Import template

Download directly and import the template through the following steps: click configuration- > templates > import-> Import the downloaded xml file.

2. Client key configuration

On the monitored host, open the / etc/zabbix/zabbix_agentd.conf configuration file and add on the last line:

UserParameter=redis_stats [*], redis-cli-h 127.0.0.1-p $1 info | grep $2 | cut-d:-f2

After configuration, restart the service via / etc/init.d/zabbix_agentd restart and apply the latest configuration file.

Note: UnsafeUserParameters=1 should also be confirmed in this file.

3. Server-side verification

The way of verification is to get the data through the zabbix_get program, which can get the data normally and prove that the communication is normal.

# zabbix_get-s 172.20.0.20-k redis_stats [6379

The above normally obtains the data from the monitored host, and the communication of cUnix / s is normal.

4. Add host association template

Create a new host through configuration > hosts > create host, and in the templates tab, look for the Templates Redis_6379 template and link the template. You can get the data normally. Similarly, verify that the data uses monitoring lastest data- to call the host you just added to see if there is any data.

5. View the monitoring chart

You can view the monitoring chart of the monitoring item you just added through monitoring graphs.

This is the end of the article on "how zabbix monitors redis memory". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how zabbix monitors redis memory". If you want to learn more, you are welcome to follow the industry information channel.

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

Development

Wechat

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

12
Report