Zabbix监控redis status】的更多相关文章

概述 zabbix采用Trapper方式监控redis status 原理 redis-cli info命令得到redis服务器的统计信息,脚本对信息分两部分处理: (1)# Keyspace部分为Zabbix agent,因为不确定db的数目所以此段的items也不确定,Zabbix server需要low level discovery(redis.discovery脚本)来确定db的数目以确定对redis服务器发起哪些items请求 (2)其余部分为Zabbix trapper,脚本整理这…
Zabbix 监控redis 1.监控脚本,github上的 [root@localhost ~]# cat /etc/zabbix/script/redis-status.sh #!/bin/bash #Redis status METRIC="$2" SERV="$1" DB="$3" PORT=" if [[ -z "$1" ]]; then echo "Please set server"…
与前面的文章 zabbix监控nginx-rtmp status(html版)区别只在于取值的页面不一样 http://127.0.0.1:81/control/get/all_streams stat状态值详解 name:application名 static_pulls:从编码器拉流模式 pushes:编码器推流模式 { name:流名字 audio_bitrate:音频码流 video_bitrate:视频码流 active:1(流up)0(流down) } stream.py  # 先判…
利用Zabbix监控Redis Zabbix监控redis就比较简单了,因为zabbix官方提供了监控redis的模版和脚本,而且脚本有nodejs和python两种,下载地址:https://github.com/blacked/zbx_redis_template,此处采用python版本. 需要下载的文件: zbx_redis.conf zbx_redis_stats.py zbx_redis_templates.xml 本例先用python版本. 1.安装python需要的库: pip…
一.zabbix 自动发现并监控redis多实例 1.1 编写脚本 1.1.1 redis_low_discovery.sh 用于发现redis多实例 [root@redis02 homed]# cat /usr/local/zabbix/redis_low_discovery.sh #!/bin/bash # line: V1.0 # mail: gczheng@139.com # data: 2018-08-06 # script_name: redis_low_discovery.sh #…
1)agent端配置 安装redis yum install epel-release -y yum install redis -y 配置认证密码 #vim /etc/redis.conf requirepass redhat #systemctl restart redis 获取redis的item值shell脚本 #vim /etc/zabbix/zabbix_agentd.d/redis_status.sh #/bin/bash R_COMMAND="$1" R_PORT=&q…
开启php-fpm status php-fpm.conf pm.status_path = /statusx45 nginx.conf location ~ /(statusx45)$ { include fastcgi_params; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_param SCRIPT_FILENAME $fastcgi_script_name; } http://127.0.0.1/statusx45  # 可带参数(…
nginx开启status ./configure --with-http_stub_status_module nginx.conflocation /statusx35 { stub_status on; } http://127.0.0.1/statusx35 Active connections: server accepts handled requests Reading: Writing: Waiting: nginx status状态值详解 Active connections:…
nginx-rtmp开启stats # nginx(--add-module=nginx-rtmp-module-master) nginx.conf: server { listen ; location /stat { rtmp_stat all; } } http://127.0.0.1:81/stat stat状态值详解 codec: 编码 bits/s: 码流 size: 分辨率 fps: 每秒传输帧数 freq: 音频频率 chan: 声道数 定义zabbix监控item key v…
redis  可以直接使用zabbix官方的模板 模板地址: https://github.com/blacked/zbx_redis_template redis 主机通过脚本把数据推送到zabbix server 1.下载模板文件导入模板 2.把模板关联到redis主机上 3.在redis 主机上编辑Python脚本 vim /data/app/zabbix/script/zbx_redis-stats.py #!/usr/bin/python import sys, redis, json…