Home Directory Plugins Databases check_redis_publish_subscribe.pl (Advanced Nagios Plugins Collection)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_redis_publish_subscribe.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
28473
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Check Redis server is up and working via publish/subscribe API calls

Checks:

1. Subscribes to a unique channel
2. Publishes to that same unique channel with a randomly generated and timestamped token
3. Waits for the channel to feed the message through for a given number of secs
4. Checks the message received is the same as the one published
5. compares each operation's time taken against the warning/critical thresholds if given
Part of the Advanced Nagios Plugins Collection.

Download it here:

https://github.com/harisekhon/nagios-plugins

check_redis_publish_subscribe.pl

Nagios Plugin to check a Redis server is up and working via publish/subscribe API calls

Checks:

1. Subscribes to a unique channel
2. Publishes to that same unique channel with a randomly generated and timestamped token
3. Waits for the channel to feed the message through for a given number of secs
4. Checks the message received is the same as the one published
5. compares each operation's time taken against the warning/critical thresholds if given

Developed on Redis 2.4.10

usage: check_redis_publish_subscribe.pl [ options ]

-H --host Redis Host to connect to
-P --port Redis Port to connect to (default: 6379)
-p --password Password to connect with (use if Redis is configured with requirepass)
--subscriber-wait Let the subscriber wait this many secs to make sure it has received the message (default: 0.001, min: 1e-06, max: 10)
-w --warning Warning threshold in seconds for each publish/subscribe operation (use float for milliseconds)
-c --critical Critical threshold in seconds for each publish/subscribe operation (use float for milliseconds)
--precision Number of decimal places for timings (default: 5)
-h --help Print description and usage options
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode (-v, -vv, -vvv ...)
-V --version Print version and exit