Home Directory Plugins Clustering and High-Availability check_hbase_regionserver_jmx.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

check_hbase_regionserver_jmx.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
1709

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

Nagios Plugin to parse metrics from a given HBase RegionServer's /jmx page
Part of the Advanced Nagios Plugins Collection

Download it here:

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

check_hbase_regionserver_jmx.pl

Nagios Plugin to parse metrics from a given Hadoop daemon's /jmx page

Make sure you specify --mbean in prod, leave it out with --all-metrics and -vv only for exploring what is available. Nagios has a char limit and will truncate the output, and the perfdata at the end
would be lost.

Tested on Hadoop 2.6 / 2.7 NameNode & DataNode, HBase 0.98 Master & RegionServer on Hortonworks HDP 2.2 & HDP 2.3


usage: check_hbase_regionserver_jmx.pl [ options ]

-H --host HBase RegionServer host ($HBASE_REGIONSERVER_HOST, $HBASE_HOST, $HOST)
-P --port HBase RegionServer port ($HBASE_REGIONSERVER_PORT, $HBASE_PORT, $PORT, default: 60030)
-b --bean Bean to check (see --list-beans)
-m --metrics Metric(s) to collect, comma separated. Output in the order specified for convenience. Optional thresholds will only be applied when a single metrics is given
-a --all-metrics Grab all metrics. Useful if you don't know what to monitor yet or just want to graph everything
-w --warning Warning threshold or ran:ge (inclusive)
-c --critical Critical threshold or ran:ge (inclusive)
-e --expected Expected string match when specifying a single field to check. Use this to check non-float fields such as settings eg. -b Hadoop:service=NameNode,name=NameNodeStatus -m State -e
active
--list-beans List all beans returned by HBase jmx page
-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