2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00
contrib-munin/plugins/hdfs/hadoop-under_replicated-blocks
dipohl 3ad41d6a4a Category Tree: Reduce number of categories
squid -> webserver (squid)
openfire -> chate
nfs -> fs
xastir -> radio
2017-02-23 04:29:44 +01:00

20 lines
514 B
Bash
Executable File

#!/bin/sh
#Author Juned Memon www.tipsNtrapS.com (juned.memon@tipsntraps.com)
#To Check how stable the Hadoop filesystem is, we generally check number of under-replicated nodes in hadoop. This plugin graphs the under-replicated nodes in hadoop.
case $1 in
config)
cat <<'EOM'
graph_title Under Replicated Blocks Hadoop
graph_category fs
graph_vlabel block
block.label block
EOM
exit 0;;
esac
echo -n "block.value "
hadoop dfsadmin -report | grep "Under replicated blocks" | awk '{print $4}'