In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
First of all, introduce the monitoring redis information: Redis ping: verify pingRedis alive: check whether the port is aliveRedis connections: check the number of connections Redis blockedClients: number of connections waiting for blocking clients Redis connectionsUsage:redis connection usage Redis memoryUsage:redis memory usage Redis evictedKeys: number of key deleted since operation Redis rejectedConnections: number of connections rejected Redis ops:redis OPSRedis hitRate:redis hit rate redis automatic detector Shell #! / bin/shREDIS_SERVER_PIDS= "$(ps-ef | egrep-v 'grep | egrep | vi | vim | find | cat | tac | head | tail | more | less' | grep' redis-server' | awk'{print $2}')" REDIS_PORTS= "" for pid in ${REDIS_SERVER_PIDS} " Do PORTS=$ (sudo netstat-anlp | grep-w ${pid} | awk'{print $4}'| awk-F:'{print $2}'| grep-v "[0-9] [0-9] [0-9] [0-9] [0-9] [0-9]" | grep-v "^ $" | head-1) REDIS_PORTS= "${PORTS} ${REDIS_PORTS}" doneport= (${REDIS_PORTS}) function node_port {length=$ {# port [@]} printf "{\ n" printf'\ t' "\" data\ ": [" for ((iTun0) ITun5: password = sys.argv [4] else: password = None except Exception, e: print "Usage: python% s type 127.0.0.1 6379"% sys.argv [0] sys.exit (1) parse (type, host, port, password) # python supports redis template or error will be reported
Add UserParameter=redis_port.discovery-py,/app/sinova/zabbix/scripts/check_redis_port.pyUserParameter=redis.stats to zabbix configuration file [*], / app/sinova/python2.7.15/bin/python / app/sinova/zabbix/scripts/check_redis.py $1 127.0.0.1 $2 resume configuration # restart zabbix, otherwise the zabbix template configuration will not take effect
Automatic discovery rule
# configure monitoring phase items to provide an example of the above monitoring configuration
Redis.stats [memoryUsageRate, {# REDIS_PORT}]
{HOST.NAME}: {# REDIS_PORT} redis redis connection utilization > 80%, reaching {ITEM.LASTVALUE1} {Template for redis-zabbix:redis.stats [connectionsUsage, {# REDIS_PORT}] .last ()} > 80
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.