summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-09-21 19:42:31 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-09-21 19:42:31 +0000
commit778b61288426bce120ae124de2cadd448dfa9df3 (patch)
treea16a6964328c5a16cbbcc192484475a1b98dce27 /etc
parent48b135c66f5447c9a6f7c3bda2393394aec08714 (diff)
downloadpfsense-778b61288426bce120ae124de2cadd448dfa9df3.zip
pfsense-778b61288426bce120ae124de2cadd448dfa9df3.tar.gz
Make sure we get a valid address to ping for the rrd graphs.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 1b95667..afe79fe 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2954,6 +2954,9 @@ function enable_rrd_graphing() {
$numpings = 5;
$monitorip = lookup_gateway_monitor_ip_by_name($config['interfaces'][$ifname]['gateway']);
+ if(!is_ipaddr($monitorip)) {
+ $monitorip = get_interface_gateway($ifname);
+ }
/* the ping test function. We call this on the last line */
$rrdupdatesh .= "# Quality collector for {$ifname}\n";
$rrdupdatesh .= "get_quality_stats_{$ifname} () {\n";
OpenPOWER on IntegriCloud