summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-24 11:53:56 +0200
committerErmal <eri@pfsense.org>2014-09-24 11:53:56 +0200
commita99547e47e2db663f611fa564350275f86615d80 (patch)
tree378bb07508d00b55f48714627a142e3f7a83b2aa /usr/local/www/system_advanced_misc.php
parent73b8c1623bfada61551e8d8cb996f2e611b10240 (diff)
downloadpfsense-a99547e47e2db663f611fa564350275f86615d80.zip
pfsense-a99547e47e2db663f611fa564350275f86615d80.tar.gz
Provide a toggle for apinger debug messages to be logged to syslog. To help with roubleshooting issues
Diffstat (limited to 'usr/local/www/system_advanced_misc.php')
-rw-r--r--usr/local/www/system_advanced_misc.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index d583efd..a224ffb 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -64,6 +64,7 @@ $pconfig['thermal_hardware'] = $config['system']['thermal_hardware'];
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
$pconfig['kill_states'] = isset($config['system']['kill_states']);
$pconfig['skip_rules_gw_down'] = isset($config['system']['skip_rules_gw_down']);
+$pconfig['apinger_debug'] = isset($config['system']['apinger_debug']);
$pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']);
$pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size'];
$pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size'];
@@ -188,6 +189,17 @@ if ($_POST) {
else
unset($config['system']['skip_rules_gw_down']);
+ $need_apinger_restart = false;
+ if($_POST['apinger_debug'] == "yes") {
+ if (!isset($config['system']['apinger_debug']))
+ $need_apinger_restart = true;
+ $config['system']['apinger_debug'] = true;
+ } else {
+ if (isset($config['system']['apinger_debug']))
+ $need_apinger_restart = true;
+ unset($config['system']['apinger_debug']);
+ }
+
if($_POST['use_mfs_tmpvar'] == "yes")
$config['system']['use_mfs_tmpvar'] = true;
else
@@ -220,6 +232,8 @@ if ($_POST) {
load_thermal_hardware();
if ($need_relayd_restart)
relayd_configure();
+ if ($need_apinger_restart)
+ setup_gateways_monitor();
}
}
@@ -502,6 +516,15 @@ function tmpvar_checked(obj) {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Enable debugging messages of gateway monitoring daemon"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="apinger_debug" type="checkbox" id="apinger_debug" value="yes" <?php if ($pconfig['apinger_debug']) echo "checked=\"checked\""; ?> />
+ <br />
+ <?=gettext("By default, gateway monitoring does not log its error messages, ".
+ "by toggling this setting the daemon would enable logging its messages to syslog."); ?>
+ </td>
+ </tr>
+ <tr>
<td colspan="2" valign="top" class="listtopic"><?=gettext("RAM Disk Settings (Reboot to Apply Changes)"); ?></td>
</tr>
<?php if ($g['platform'] == "pfSense"): ?>
OpenPOWER on IntegriCloud