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