Home Directory Plugins Clustering and High-Availability check_ranger_stats.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_ranger_stats.pl (Advanced Nagios Plugins Collection)

Rating
0 votes
Favoured:
0
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Hits
4518
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!
Checks Ranger stats for number of policies and repositories via the Rest API
Part of the Advanced Nagios Plugins Collection

Download it here:

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

check_ranger_stats.pl

Nagios Plugin to check Ranger stats for number of policies and repositories via the Rest API

If isolating to one type then optional thresholds may be applied.

Tested on Ranger 0.5

usage: check_ranger_stats.pl [ options ]

-H --host Ranger host ($RANGER_HOST, $HOST)
-P --port Ranger port ($RANGER_PORT, $PORT, default: 6080)
-u --user Ranger user ($RANGER_USERNAME, $RANGER_USER, $USERNAME, $USER)
-p --password Ranger password ($RANGER_PASSWORD, $PASSWORD)
-T --type Stat to query, Optional, can be one of (otherwise queries all of): policy, repository
-w --warning Warning threshold or ran:ge (inclusive)
-c --critical Critical threshold or ran:ge (inclusive)
-t --timeout Timeout in secs (default: 10)
-v --verbose Verbose mode (-v, -vv, -vvv ...)
-h --help Print description and usage options
-V --version Print version and exit