getNamespace('icingadb') ->get(self::PREFERENCE_NAME, false); } /** * Whether to use icingadb as the backend * * @return bool Returns true if monitoring module is disabled or icingadb is selected as backend, false otherwise. */ final public static function useIcingaDbAsBackend(): bool { return ! Icinga::app()->getModuleManager()->hasEnabled('monitoring') || self::isIcingaDbSetAsPreferredBackend(); } }