- Copyright 2017, Costa Tsaousis.
+ Copyright 2016-2017, Costa Tsaousis.
Released under GPL v3 or later.
X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=web%2Findex.html;h=ea51cc13245e9364b687d4e99b14b6dd9798c9a2;hb=8463363f54890f3afca01f43119a30516834c8e4;hp=f91219c1b11d62239940f68968299292518d6620;hpb=169f035436e59644469ceb7cca02111878135524;p=netdata.git
diff --git a/web/index.html b/web/index.html
index f91219c1..ea51cc13 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1562,6 +1562,13 @@
function alarm_to_html(alarm, full) {
var chart = options.data.charts[alarm.chart];
+ if(typeof(chart) === 'undefined') {
+ // this means the charts loaded are incomplete
+ // probably netdata was restarted and more charts
+ // are now available.
+ return '';
+ }
+
var has_alarm = ((typeof alarm.warn !== 'undefined' || typeof alarm.crit !== 'undefined')?true:false);
var role_href = ((has_alarm === true)?('
role: ' + alarm.recipient + '
jump to chart'):(' '));
@@ -1572,10 +1579,13 @@
+ ((typeof alarm.crit !== 'undefined')?('
' + chart.green + ' ' + chart.units + '
' + chart.red + ' ' + chart.units + '
' + chart.green + ' ' + units + '
' + chart.red + ' ' + units + '