From 4e166aa94da5b065f5f7fb43d1578075d2dc28b2 Mon Sep 17 00:00:00 2001 From: Juned Memon Date: Fri, 29 Oct 2010 05:36:49 +0200 Subject: [PATCH] Initial version --- plugins/other/hadoop-under_replicated-blocks | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 plugins/other/hadoop-under_replicated-blocks diff --git a/plugins/other/hadoop-under_replicated-blocks b/plugins/other/hadoop-under_replicated-blocks new file mode 100755 index 00000000..630f136f --- /dev/null +++ b/plugins/other/hadoop-under_replicated-blocks @@ -0,0 +1,19 @@ +#!/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 Dxtv +graph_vlabel block +block.label block +EOM + exit 0;; +esac + +echo -n "block.value " +hadoop dfsadmin -report | grep "Under replicated blocks" | awk '{print $4}'