Home Directory Plugins Others check_hdfs.rb

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_hdfs.rb

Current Version
0.1
Hits
36438
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!
Nagios plugin to check health of hdfs by parsing dfshealth.jsp. Checked the script with different hadoop versions including CDH.
This nagios plugin checks hdfs health by parsing dfshealth.jsp.

The script is written in Ruby and makes use of nokogiri gem for parsing dfshealth.jsp.

Please install nokogiri gem before using the script.

The script has been tested using Ruby 1.9.3.

Help for running the script can be found by supplying -h argument to the script.

./check_hdfs.rb -h

Usage: check_hdfs.rb [options]
-u, --url URL URL of dfs health page
-w, --warningdfs WARNINGDFS Warning Limit for DFS free space
-c, --criticaldfs CRITICALDFS Critical Limit for DFS free space
-x WARNINGUNREPLICATEDBLOCKS, Warning limit for UnReplicated Blocks
--warningunreplicatedblocks
-z CRITICALUNREPLICATEDBLOCKS, Critical limit for UnReplicated Blocks
--criticalunreplicatedblocks
-H, --help Display this screen

URL is the URL of the dfshealth.jsp page. For e.g. http://example.com:50070/dfshealth.jsp

-w takes an argument which specifies percentage of free disk space below which we should be alerted with warning message.

-c takes an argument which specifies percentage of free disk space below which we should be alerted with error message.

-x takes an argument which specifies warning limit for number of un-replicated blocks.

-z takes an argument which specifies critical limit for number of un-replicated blocks.