mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34:05 +02:00
HealthCommand: compare overall numeric state...
...not the object itself
This commit is contained in:
parent
a133706996
commit
c5bbc5a1fa
@ -50,7 +50,7 @@ class HealthCommand extends Command
|
||||
$output[] = $check->getOutput();
|
||||
}
|
||||
|
||||
if ($state === 0) {
|
||||
if ($state->getNumeric() === 0) {
|
||||
echo "Icinga Director: everything is fine\n\n";
|
||||
} else {
|
||||
echo "Icinga Director: there are problems\n\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user