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


Remember Me

check_hadoop_hdfs_blocks.pl (Advanced Nagios Plugins Collection)

0 votes
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI

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

Checks the number of total blocks on the HDFS NameNode
Part of the Advanced Nagios Plugins Collection

Download it here:



Nagios Plugin to check the number of total blocks on the HDFS NameNode (works against either the Active or Standby NameNode in an HA configuration) via the Namenode JSP pages in order to detect when you
need to tune JVM heap size up.

See also check_hadoop_namenode.pl for heap size and block checks

Tested on Hortonworks 2.2 (Apache 2.6.0)

usage: check_hadoop_hdfs_blocks.pl [ options ]

-H --host Hadoop NameNode host ($HADOOP_NAMENODE_HOST, $HADOOP_HOST, $HOST)
-P --port Hadoop NameNode port ($HADOOP_NAMENODE_PORT, $HADOOP_PORT, $PORT, default: 50070)
-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