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:
parent
10dc32cd07
commit
08eefc2587
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue