Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Simple plugin for nagios to check status of a redis server

NotificationsYou must be signed in to change notification settings

coder-sreeraj/nagios-check-redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple plugin for nagios to check status or memory usage of a redis server.

Prerequisites

  • NodeJS
  • Nagios
  • NRPE (optional)

Installing

To download the latest version:

npm install -g nagios-redis

Usage

# check pingcheck_redis -H localhost -p 6379 -t ping# check memorycheck_redis -H localhost -p 6379 -t memory -w 1GB -c 2GBcheck_redis --help

Note on units: when memory size is needed, it is possible to specify it in the usual form of 1k 5GB 4M and so forth.

Edit your commands.cfg and add the following:

define command {    command_name    check_redis_ping    command_line    $USER1$/nagios-redis/check_redis.js -H $HOSTADDRESS$ -p $ARG1$ -t ping}define command {    command_name    check_redis_memory    command_line    $USER1$/nagios-redis/check_redis.js -H $HOSTADDRESS$ -p $ARG1$ -t memory -w $ARG2$ -c $ARG3$}

Now you can monitor redis servers by adding:

define service {    use                 generic-service    hostgroup_name          Redis servers    service_description     Redis ping    check_command           check_redis_ping!6379}define service {    use                 generic-service    hostgroup_name          Redis servers    service_description     Redis memory    check_command           check_redis_memory!6379!1GB!2GB}

Usage monitoring remote host with NRPE

Add the command to your NRPE configuration on your remote host:

command[check_redis_ping]=check_redis -t pingcommand[check_redis_memory]=check_redis -t memory -w 2GB -c 3GB

Monitor the service on your Nagios host:

define service{use                             generic-servicehost_name                       your hostservice_description             Redis pingcheck_command                   check_nrpe!check_redis_pingservicegroupsredis}define service{use                             generic-servicehost_name                       your hostservice_description             Redis memorycheck_command                   check_nrpe!check_redis_memoryservicegroupsredis}

P.S. We could provide the arguments from Nagios to the NRPE configuration (with nrpe dont_blame_nrpe set to true) but this is quicker and easier to manage.

License

nope :)

About

Simple plugin for nagios to check status of a redis server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp