安装redis支持 perl -MCPAN -e shell cpan>install Redis 下载check_redis.pl http://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details https://github.com/willixix/WL-NagiosPlugins 测试 ./check_redis.pl -H 192.168.0.130 -p
安装redis支持
perl -MCPAN -e shell
cpan>install Redis
下载check_redis.pl
http://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details
https://github.com/willixix/WL-NagiosPlugins
测试
./check_redis.pl -H 192.168.0.130 -p 6379 -a ‘connected_clients,blocked_clients’ -w ~,~ -c ~,~ -f
OK: REDIS 2.6.12 on 192.168.0.130:6379 has 1 databases (db0) with 49801 keys, up 3 days 14 hours - connected_clients is 1, blocked_clients is 0 | connected_clients=1 blocked_clients=0
commands.cfg添加
define command {
command_name check_redis
command_line $USER1$/check_redis.pl -H $HOSTADDRESS$ -p $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -f
}
加入主机监控
可批量生成卡号与密码然后做成实物卡后销售给客户,客户到您的网站来用此卡号密码来提交充值相关游戏卡点、QQ币、其它数字卡等相关信息,(适合做"一卡通")而您在后台可监控客户的提交信息,并手动为客户完成充值后 点击完后重点功能如下:1、卡号、密码批量生成。2、添加和修改游戏名称、区、服务器、充值方法、游戏点卡列隔等充值选择3、开启充值网站和关闭充值网站的功能4、前台用所生成的卡号密
define service{
use local-service ; Name of service template to use
host_name c1gredis
service_description redis
check_command check_redis!6379!'connected_clients,blocked_clients'!~,~!~,~
notifications_enabled 0
}
重新载入配置。
/etc/init.d/nagios reload
参考:
http://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details
http://www.ttlsa.com/nagios/nagios-redis-monitor/
http://bbs.linuxtone.org/thread-6241-1-1.html
Related Posts
原文地址:nagios 监控redis, 感谢原作者分享。









