Home Directory Plugins Databases check_redis_write_replication.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_write_replication.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
Hits
29893
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check Redis replication via API write to master and read from slave

Checks:

1. writes a new unique key with dynamically generated value to master
2. reads same key back from slave
3. checks returned value is identical to the value generated and written to master
4. deletes the key on the master (optionally checks delete replicated to slave)
5. records the write/read/delete timings to a given precision for reporting and graphing
6. 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


usage: check_redis_write_replication.pl [ options ]

-H --host Redis Host to connect to
-P --port Redis Port to connect to (default: 6379)
-d --database Database to select (optional, default: 0)
-p --password Password to connect with (use if Redis is configured with requirepass)
-S --slave Redis slave to read key back from to test replication (defaults to reading key back from master --host)
--slave-port Redis slave port to connect to (default: 6379)
--slave-password Redis slave password. Defaults to using the same password as for the master if specified. If wanting to use password on master but not on slave, set this to a blank string
--slave-delay Wait this many secs between write to master and read from slave to give the slave replica time to process the replication update, accepts floats (default: 1, min: 0, max: 10)
--slave-deleted Additional optional check that the key was cleaned up and deleted on the slave (waits --slave-delay secs after delete)
-w --warning Warning threshold in seconds for each read/write/delete operation (use float for milliseconds)
-c --critical Critical threshold in seconds for each read/write/delete 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