Nagios monitoring redis

Source: Internet
Author: User
Tags redis download install redis
Install redis support perl-MCPAN-eshellcpaninstallRedis download check_redis.plexchange.nagios.orgdirectoryPluginsDatabasescheck_redis-2Epldetailsgithub.comwillixixWL-NagiosPlugins test. check_redis.pl-H192.168.0.130-p

Install redis support perl-MCPAN-e shell cpan> install Redis download check_redis.pl http://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details https://github.com/willixix/WL-NagiosPlugins test./check_redis.pl-H 192.168.0.130-p

Install redis support
Perl-MCPAN-e shell
Cpan> install Redis

Download check_redis.pl

Http://exchange.nagios.org/directory/Plugins/Databases/check_redis-2Epl/details

Https://github.com/willixix/WL-NagiosPlugins

Test
./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

Add commands. cfg

define command {            command_namecheck_redis            command_line$USER1$/check_redis.pl -H $HOSTADDRESS$ -p $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -f}

Add to host monitoring

define service{        use                             local-service         ; Name of service template to use        host_name                       c1gredis        service_description             redischeck_commandcheck_redis!6379!'connected_clients,blocked_clients'!~,~!~,~notifications_enabled0        }

Reload the configuration.

/Etc/init. d/nagios reload

Refer:
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 uses sendEmail to send emails)
  • Add the drawing function to install pnp in nagios 3.X)
  • Nagios installation)

Original article address: nagios monitors redis and thanks to the original author for sharing it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.