mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-23 06:35:42 +00:00
better way to do it
This commit is contained in:
parent
9d5a111982
commit
4682e4fee4
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ sub getCapacity {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub getStatistics {
|
sub getStatistics {
|
||||||
open(DFSADMIN, "su $hdfs_user -c 'hdfs dfsadmin -report'|") || die("Cannot open dfsadmin: $!");
|
open(DFSADMIN, "sudo -u $hdfs_user hdfs dfsadmin -report|") || die("Cannot open dfsadmin: $!");
|
||||||
while(defined(my $line = <DFSADMIN>)) {
|
while(defined(my $line = <DFSADMIN>)) {
|
||||||
chomp($line);
|
chomp($line);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue