Home Directory Plugins Clustering and High-Availability check_hadoop_hdfs_httpfs.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_hadoop_hdfs_httpfs.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
23463
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 HDFS files/directories or writable via WebHDFS API or HttpFS server
Part of the Advanced Nagios Plugins Collection.

Download it here:

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

./check_hadoop_hdfs_httpfs.pl --help

Nagios Plugin to check HDFS files/directories or writable via WebHDFS API or HttpFS server

Checks:

- File/directory existence and one or more of the following:
- type: file or directory
- owner/group
- permissions
- size / empty
- block size
- replication factor
- last accessed time
- last modified time

OR

- HDFS writable - writes a small canary file to hdfs:///tmp to check that HDFS is fully available and not in Safe mode (this means than enough DataNodes have checked in after startup)

Tested on CDH 4.5


usage: check_hadoop_hdfs_httpfs.pl [ options ]

-H --host Hadoop HttpFS Server host ($HADOOP_HTTPFS_HOST, $HADOOP_HOST, $HOST)
-P --port Hadoop HttpFS Server port ($HADOOP_HTTPFS_PORT, $HADOOP_PORT, $PORT, default: 14000)
-w --write Write unique canary file to hdfs:///tmp to check HDFS is writable and not in Safe mode
-p --path File or directory to check exists in Hadoop HDFS
-T --type 'FILE' or 'DIRECTORY' (default: 'FILE')
-o --owner Owner name
-g --group Group name
-e --permission Permission octal mode
-Z --zero Additional check that file is empty
-S --size Minimum size of file
-R --replication Replication factor
-a --last-accessed Last-accessed time maximum in seconds
-m --last-modified Last-modified time maximum in seconds
-B --blockSize Blocksize to expect
-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