
Clustering and High-Availability
check_hadoop_hdfs_httpfs.pl (Advanced Nagios Plugins Collection)
Description:
Checks HDFS files/directories or writable via WebHDFS API or HttpFS server
Current Version
Last Release Date
March 17, 2014
Compatible With
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
Owner
Download URL
Project Notes
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
Reviews
(0)
Add a Review
Add a Review
You must be logged in to submit a review.
Thank you for your review!
Your review has been submitted and is pending approval.
Recommend
To:
From:
Thank you for your recommendation!
Your recommendation has been sent.
Page Sections
Project Stats
Rating
0 (0)
Favorites
0
Views
23,462