diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-02-19 18:18:07 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-02-19 18:18:07 -0800 |
commit | d55cba63e730d919f50c398fc07c35138c682ca9 (patch) | |
tree | e0e1c8ca6ae3caf31afae5f3e5230e2941886df6 /etc/inc/gwlb.inc | |
parent | d3515e02d5b8ea9f0eb8245316015852b17193c9 (diff) | |
download | pfsense-d55cba63e730d919f50c398fc07c35138c682ca9.zip pfsense-d55cba63e730d919f50c398fc07c35138c682ca9.tar.gz |
Fix gateway quality RRD to have the correct granularity and be consistent with the pfSense graphs set.
Create gateway quality RRD with settings suitable for pfSense graph set, since apinger uses default step (300) and other settings that are not so good/consistent with the pfSense graphs set.
Originally Submitted as Pull Request #672.
Resubmitting to Master.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r-- | etc/inc/gwlb.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 27271d7..cfcffd0 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -30,6 +30,7 @@ */ require_once("config.inc"); +require_once("rrd.inc"); /* Returns an array of default values used for apinger.conf */ function return_apinger_defaults() { @@ -299,6 +300,11 @@ EOD; $apingerconfig .= $alarmscfg; $apingerconfig .= $apingercfg; + + # Create gateway quality RRD with settings more suitable for pfSense graph set, + # since apinger uses default step (300; 5 minutes) and other settings that don't + # match the pfSense gateway quality graph set. + create_gateway_quality_rrd("{$g['vardb_path']}/rrd/{$gateway['name']}-quality.rrd"); } @file_put_contents("{$g['varetc_path']}/apinger.conf", $apingerconfig); unset($apingerconfig); @@ -310,6 +316,7 @@ EOD; @chown("{$g['vardb_path']}/rrd", "nobody"); + /* Restart apinger process */ if (isvalidpid("{$g['varrun_path']}/apinger.pid")) sigkillbypid("{$g['varrun_path']}/apinger.pid", "HUP"); else { |