Skip to content

Commit

Permalink
FIX: Weathermap lines now respect the configured error colors
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsMichelsen committed Jan 7, 2019
1 parent 8e4d8de commit 200e80b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
@@ -1,4 +1,6 @@
1.9.11
Frontend
* FIX: Weathermap lines now respect the configured error colors

1.9.10
Frontend
Expand Down
6 changes: 4 additions & 2 deletions share/frontend/nagvis-js/js/ElementLine.js
Expand Up @@ -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';

Expand All @@ -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;
}
},

Expand Down

0 comments on commit 200e80b

Please sign in to comment.