From f69b7b76746640fc6b97188da1a5886d8182e50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20MOHIER?= Date: Thu, 10 Dec 2015 14:10:47 +0100 Subject: [PATCH] Some more logs to track restarts --- front/restartshinken.form.php | 2 ++ inc/message.class.php | 1 + 2 files changed, 3 insertions(+) diff --git a/front/restartshinken.form.php b/front/restartshinken.form.php index 3c902688..72950b5d 100644 --- a/front/restartshinken.form.php +++ b/front/restartshinken.form.php @@ -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(); diff --git a/inc/message.class.php b/inc/message.class.php index bf5ac406..428cd9e3 100644 --- a/inc/message.class.php +++ b/inc/message.class.php @@ -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'); }