git-svn-id: http://svn.merethis.net/centreon-esxd/trunk@34 a5eaa968-4c79-4d68-970d-af6011b5b055
This commit is contained in:
Quentin Garnier 2012-09-28 13:44:03 +00:00
parent ff1e7cc581
commit ccca4470ea
1 changed files with 5 additions and 5 deletions

View File

@ -38,12 +38,12 @@ sub statushost_do {
);
foreach my $entity_view (@$result) {
my $status = $entity_view->{'summary.overallStatus'}->val;
my $status_esx = $entity_view->{'summary.overallStatus'}->val;
if (defined($status) && $overallStatus{$status}) {
$output = "The Server '$lhost' " . $overallStatus{$status};
if ($MYERRORS_MASK{$overallStatusReturn{$status}} != 0) {
$status |= $MYERRORS_MASK{$overallStatusReturn{$status}};
if (defined($status) && $overallStatus{$status_esx}) {
$output = "The Server '$lhost' " . $overallStatus{$status_esx};
if ($MYERRORS_MASK{$overallStatusReturn{$status_esx}} != 0) {
$status |= $MYERRORS_MASK{$overallStatusReturn{$status_esx}};
}
} else {
$output = "Can't interpret data...";