mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
fix wrong commit
git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@42 a5eaa968-4c79-4d68-970d-af6011b5b055
This commit is contained in:
parent
4cbffb1235
commit
5d11abb2e5
@ -169,7 +169,7 @@ sub get_entities_host {
|
|||||||
eval {
|
eval {
|
||||||
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
|
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
|
||||||
};
|
};
|
||||||
if ($@ =~ /decryption failed or bad record mac/) {
|
if ($@) {
|
||||||
writeLogFile(LOG_ESXD_ERROR, "'$whoaim' $@");
|
writeLogFile(LOG_ESXD_ERROR, "'$whoaim' $@");
|
||||||
eval {
|
eval {
|
||||||
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
|
$entity_views = $session1->find_entity_views(view_type => $view_type, properties => $properties, filter => $filters);
|
||||||
@ -181,12 +181,6 @@ sub get_entities_host {
|
|||||||
print_response("-1|Error: " . Data::Dumper::Dumper($lerror) . "\n");
|
print_response("-1|Error: " . Data::Dumper::Dumper($lerror) . "\n");
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
} elsif ($@) {
|
|
||||||
writeLogFile(LOG_ESXD_ERROR, "'$whoaim' $@");
|
|
||||||
my $lerror = $@;
|
|
||||||
$lerror =~ s/\n/ /g;
|
|
||||||
print_response("-1|Error: " . $lerror . "\n");
|
|
||||||
return undef;
|
|
||||||
}
|
}
|
||||||
if (!@$entity_views) {
|
if (!@$entity_views) {
|
||||||
my $status |= $MYERRORS_MASK{'UNKNOWN'};
|
my $status |= $MYERRORS_MASK{'UNKNOWN'};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user