mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
enh(discovery) add custom attributes
This commit is contained in:
parent
ef1eec0e50
commit
fe788ba890
@ -136,7 +136,7 @@ sub run {
|
||||
my $customValuesEsx = [];
|
||||
if (defined($esx->{'summary.customValue'})) {
|
||||
foreach (@{$esx->{'summary.customValue'}}) {
|
||||
push @$customValuesEsx, { key => $customFields->{ $_->{key}}, value => $_->{value}};
|
||||
push @$customValuesEsx, { key => $customFields->{ $_->{key} }, value => $_->{value} };
|
||||
}
|
||||
}
|
||||
$esx{type} = 'esx';
|
||||
@ -178,7 +178,7 @@ sub run {
|
||||
my $customValuesVm = [];
|
||||
if (defined($vm->{'summary.customValue'})) {
|
||||
foreach (@{$vm->{'summary.customValue'}}) {
|
||||
push @$customValuesVm, { key => $customFields->{ $_->{key}}, value => $_->{value}};
|
||||
push @$customValuesVm, { key => $customFields->{ $_->{key} }, value => $_->{value} };
|
||||
}
|
||||
}
|
||||
$entry->{type} = 'vm';
|
||||
|
Loading…
x
Reference in New Issue
Block a user