summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-09-21 19:53:55 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-09-21 19:53:55 +0000
commit4c9f3cf593f97551b7ed33baf8484f95697451de (patch)
tree0733f66d51125f5bd29021fd2f7d8b1af5958f31 /etc
parent551e91596cfa33780bfccef562078ce4d18b42df (diff)
downloadpfsense-4c9f3cf593f97551b7ed33baf8484f95697451de.zip
pfsense-4c9f3cf593f97551b7ed33baf8484f95697451de.tar.gz
If we really can't find what to ping just continue with the next graph
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index fffc154..18daaa1 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -2957,6 +2957,10 @@ function enable_rrd_graphing() {
if(!is_ipaddr($monitorip)) {
$monitorip = get_interface_gateway($ifname);
}
+ if(!is_ipaddr($monitorip)) {
+ /* still no monitor IP, don't write a collector and pass the batton */
+ continue;
+ }
/* 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