1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

don't collect/send redundant data to munin

This commit is contained in:
tsaavik 2013-12-20 13:06:41 -08:00
parent 10dc32cd07
commit 08eefc2587

View file

@ -107,6 +107,9 @@ sub getStatistics {
open(DFSADMIN, "hdfs dfsadmin -report|") || die("Cannot open dfsadmin: $!");
while(defined(my $line = <DFSADMIN>)) {
chomp($line);
if ($line =~ /-------------------------------------------------/) {
last
}
if ($type eq "block") {
&getBlock($line);