您好,欢迎访问一九零五行业门户网

nagios 监控redis

安装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 }
加入主机监控
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 postsnagios 使用sendemail 发送邮件 ( 2009-05-05) nagios 3.x 安装 pnp 增加绘图功能 ( 2009-05-04) nagios 安装 ( 2009-05-04) 原文地址:nagios 监控redis, 感谢原作者分享。
其它类似信息

推荐信息