Don't count vm as an entity in BackupPC's entities discovery

tags/zabbix-agent-addons-0.2.69-1
Daniel Berteaud 6 years ago
parent ce3946344f
commit e51f0065a0
  1. 2
      zabbix_scripts/disco_backuppc_sudo

@ -32,7 +32,7 @@ my $json;
if ($entities) {
my %entities = ();
foreach my $host ( keys %$hosts ){
if ($host =~ m/^(?:vm_)?([^_]+)_.*/) {
if ( $host =~ m/^(?:vm_)?([^_]+)_.*/ and $1 ne 'vm' ) {
$entities{$1}= 1;
}
}

Loading…
Cancel
Save