Permalink
Browse files

FIX: Weathermap lines now respect the configured error colors

  • Loading branch information...
LarsMichelsen committed Jan 7, 2019
1 parent 8e4d8de commit 200e80bb7ac5989f7a970693ac59ebb20aeb8d28
Showing with 6 additions and 2 deletions.
  1. +2 −0 ChangeLog
  2. +4 −2 share/frontend/nagvis-js/js/ElementLine.js
@@ -1,4 +1,6 @@
1.9.11
Frontend
* FIX: Weathermap lines now respect the configured error colors

1.9.10
Frontend
@@ -759,6 +759,9 @@ var ElementLine = Element.extend({
},

calcWeathermapColor: function(id) {
if (this.obj.conf.summary_state == "ERROR")
return oStates["ERROR"].color;

if (!this.perfdata)
return '#FFCC66';

@@ -767,8 +770,7 @@ var ElementLine = Element.extend({
} else {
this.obj.conf.summary_output += ' (Weathermap Line Error: Value '
+ id +' is not a percentage value)';
return '#FFCC66';

return oStates["ERROR"].color;
}
},

0 comments on commit 200e80b

Please sign in to comment.