mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +00:00
Initial version
This commit is contained in:
parent
f0015e24e4
commit
4e166aa94d
1 changed files with 19 additions and 0 deletions
19
plugins/other/hadoop-under_replicated-blocks
Executable file
19
plugins/other/hadoop-under_replicated-blocks
Executable file
|
@ -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}'
|
Loading…
Add table
Add a link
Reference in a new issue