Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Some more logs to track restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Dec 10, 2015
1 parent 43a7064 commit f69b7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions front/restartshinken.form.php
Expand Up @@ -46,8 +46,10 @@

$pmShinkenwebservice = new PluginMonitoringShinkenwebservice();
if (isset($_GET["tag"])) {
Toolbox::logInFile("pm-restart", "call sendRestartArbiter, tag: " . $_GET["tag"] . "\n");
$pmShinkenwebservice->sendRestartArbiter(1, $_GET["tag"], isset($_GET["action"]) ? $_GET["action"] : 'reload');
} else {
Toolbox::logInFile("pm-restart", "call sendRestartArbiter, no tag\n");
$pmShinkenwebservice->sendRestartArbiter(1);
}
Html::back();
Expand Down
1 change: 1 addition & 0 deletions inc/message.class.php
Expand Up @@ -220,6 +220,7 @@ class='msgboxmonit msgboxmonit-grey' id='updated_elements'>";
// Try to restart Shinken via webservice
$pmShinkenwebservice = new PluginMonitoringShinkenwebservice();
$pmShinkenwebservice->sendRestartArbiter();
Toolbox::logInFile("pm-restart", "sendRestartArbiter, command : $command, tag: $tag, force: $force\n");
$input .= __('Shinken is restarted automatically', 'monitoring');
//$input .= __('Restart Shinken to reload this new configuration', 'monitoring');
}
Expand Down

0 comments on commit f69b7b7

Please sign in to comment.