getCondition(); $mm = Icinga::app()->getModuleManager(); if (! $mm->hasInstalled($name)) { $this->setStateText(sprintf(mt('setup', '%s is not installed'), $this->getAlias())); return false; } $module = $mm->getModule($name, false); $this->setStateText(sprintf(mt('setup', '%s version: %s'), $this->getAlias(), $module->getVersion())); return version_compare($module->getVersion(), $version, $op); } }