mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51: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: $!");
|
open(DFSADMIN, "hdfs dfsadmin -report|") || die("Cannot open dfsadmin: $!");
|
||||||
while(defined(my $line = <DFSADMIN>)) {
|
while(defined(my $line = <DFSADMIN>)) {
|
||||||
chomp($line);
|
chomp($line);
|
||||||
|
if ($line =~ /-------------------------------------------------/) {
|
||||||
|
last
|
||||||
|
}
|
||||||
|
|
||||||
if ($type eq "block") {
|
if ($type eq "block") {
|
||||||
&getBlock($line);
|
&getBlock($line);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue