Cloud

check_scaleway_bddredis

Description:

This is a Nagios check that use Scaleways’s REST API to check if the Redis bdd is up and get metric

Current Version

1.0.2

Last Release Date

2023-10-06

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

License

GPL


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!
Project Notes
check_scaleway_bddredis This is a Nagios check that use Scaleways's REST API to check if the Redis bdd is up and get metric [ALL][PERL] https://www.scaleway.com/en/developers/api/managed-database-redis/ prerequisites This script uses theses libs : REST::Client, Data::Dumper, Monitoring::Plugin, JSON, Readonly to install them type : sudo cpan REST::Client Data::Dumper Monitoring::Plugin JSON Readonly Use case check_scaleway_bddredis.pl 1.0.2 This nagios plugin is free software, and comes with ABSOLUTELY NO WARRANTY. It may be used, redistributed and/or modified under the terms of the GNU General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt). check_scaleway_bddredis.pl is a Nagios check that uses Scaleway s REST API to get redis bdd metrics Usage: check_scaleway_bddredis.pl -T -z -N | -i | -L [-m -w -c ] -?, --usage Print usage information -h, --help Print detailed help screen -V, --version Print version information --extra-opts=[section][@file] Read options from an ini file. See https://www.monitoring-plugins.org/doc/extra-opts.html for usage and examples. -T, --Token=STRING Token for api authentication -N, --name=STRING cluster name -i, --id=STRING cluster id -a, --apiversion=string Scaleway API version -w, --warning=threshold See https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT for the threshold format. -c, --critical=threshold See https://www.monitoring-plugins.org/doc/guidelines.html#THRESHOLDFORMAT for the threshold format. -L, --listInstance Autodiscover instance -z, --zone=STRING Scaleway zone -m, --metric=STRING bdd metrics : cpu_usage_percent | mem_usage_percent | db_memory_usage_percent -t, --timeout=INTEGER Seconds before plugin times out (default: 30) -v, --verbose Show details for command-line debugging (can repeat up to 3 times) sample : #list all database ./check_scaleway_bddredis.pl -T -z fr-par-2 -L #BDD sate ./check_scaleway_bddredis.pl -T -z fr-par-2 -N #get a metric ./check_scaleway_bddredis.pl -T -z fr-par-2 -N -m cpu_usage_percent ./check_scaleway_bddredis.pl -T -z fr-par-2 -i -m cpu_usage_percent you may get : #list all database #BDD sate OK - Cluster status ready name id = Id #get a metric OK - node XXXXXX cpu_usage_percent = 2.8166666 node XXXXXXX cpu_usage_percent = 4.0583334 node XXXXXX cpu_usage_percent = 2.1333334 | cpu_usage_percent_XXXXXX=2.8166666%;; cpu_usage_percent_XXXXXX=4.0583334%;; cpu_usage_percent_XXXXXX=2.1333334%;;
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
1,227