monitoring: Fix view monitoring health when Icinga is not running

If Icinga is not running, the view Monitoring Health simply shows a message about the backend not being up and running.
This is of course not so useful as it lacks performance and last runtime information but is does not error.
This commit is contained in:
Eric Lippmann 2014-11-20 15:23:08 +01:00
parent 50c2c02e09
commit f470e66884
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,9 @@ class Monitoring_ProcessController extends Controller
)
->getQuery()
->fetchRow();
if ($programStatus === false) {
return $this->render('not-running', true, null);
}
$this->view->programStatus = $programStatus;
$toggleFeaturesForm = new ToggleInstanceFeaturesCommandForm();
$toggleFeaturesForm

View File

@ -0,0 +1,6 @@
<div class="controls">
<?= $this->tabs ?>
</div>
<div class="content">
<?= sprintf($this->translate('%s is currently not up and running'), $this->backendName) ?>
</div>