Merge branch 'ent-4890-8989-pandora_df_used-filtro-por-regexp' into 'develop'

Added regexp

See merge request artica/pandorafms!2897
This commit is contained in:
Alejandro Fraguas 2020-03-09 11:27:08 +01:00
commit 533ea33f5e
1 changed files with 7 additions and 3 deletions

View File

@ -57,7 +57,11 @@ else
{ {
if (substr($fs,0,1) eq '-') if (substr($fs,0,1) eq '-')
{ {
$excluded_filesystems{substr($fs,1,)} = '-1%'; my $mount_name=substr($fs,1,);
my @mount_all= split /\n/, `df -khTP | tail -n +2 | awk '{print \$7}'| grep -i "$mount_name"`;
foreach (@mount_all){
$excluded_filesystems{$_} = '-1%';
}
} }
else else
{ {