diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-11 13:00:08 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-11 13:00:08 -0200 |
commit | 48e47796e088eeaab3cff4e3cf67a52d278ad91d (patch) | |
tree | f8169631c98a36ff8650cb4c9623d343b24facc1 /src/etc/inc/rrd.inc | |
parent | c53acd0f6ab02cfc006ce9eb9854fb4d4b352b85 (diff) | |
download | pfsense-48e47796e088eeaab3cff4e3cf67a52d278ad91d.zip pfsense-48e47796e088eeaab3cff4e3cf67a52d278ad91d.tar.gz |
Remove unused function create_gateway_quality_rrd()
Diffstat (limited to 'src/etc/inc/rrd.inc')
-rw-r--r-- | src/etc/inc/rrd.inc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index 7f2eff7..a9c158f 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -1026,41 +1026,6 @@ EOD; } -# Create gateway quality RRD with settings suitable for pfSense graph set. -function create_gateway_quality_rrd($rrd_file) { - global $g; - - $rrdinterval = 60; - $valid = $rrdinterval * 2; - $rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool"; - - /* GATEWAY QUALITY, set up the rrd file */ - if (!file_exists("$rrd_file")) { - $rrdcreate = "$rrdtool create $rrd_file --step $rrdinterval "; - $rrdcreate .= "DS:loss:GAUGE:$valid:0:100 "; - $rrdcreate .= "DS:delay:GAUGE:$valid:0:100000 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; - $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; - $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; - - create_new_rrd($rrdcreate); - unset($rrdcreate); - } - - /* enter UNKNOWN values in the RRD so it knows we rebooted. */ - if (platform_booting()) { - if (!is_dir("{$g['vardb_path']}/rrd")) { - mkdir("{$g['vardb_path']}/rrd", 0775); - } - - @chown("{$g['vardb_path']}/rrd", "nobody"); - - mwexec("$rrdtool update $rrd_file N:U:U"); - } - unset($rrdtool, $rrdinterval, $valid, $rrd_file); -} - function kill_traffic_collector() { global $g; |