diff --git a/library/Icingadb/Model/RedundancyGroupState.php b/library/Icingadb/Model/RedundancyGroupState.php index 0128410f..d6507d8e 100644 --- a/library/Icingadb/Model/RedundancyGroupState.php +++ b/library/Icingadb/Model/RedundancyGroupState.php @@ -62,4 +62,9 @@ class RedundancyGroupState extends Model { $relations->belongsTo('redundancy_group', RedundancyGroup::class); } + + public function getStateText(): string + { + return $this->failed ? 'problem' : 'ok'; + } }