mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +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();
|
$output[] = $check->getOutput();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($state === 0) {
|
if ($state->getNumeric() === 0) {
|
||||||
echo "Icinga Director: everything is fine\n\n";
|
echo "Icinga Director: everything is fine\n\n";
|
||||||
} else {
|
} else {
|
||||||
echo "Icinga Director: there are problems\n\n";
|
echo "Icinga Director: there are problems\n\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user