Author: Lars Michelsen <[email protected]>
Date: Sun Jun 24 21:13:51 2012 +0200
Committer: Lars Michelsen <[email protected]>
Commit-Date: Sun Jun 24 21:13:51 2012 +0200
Fixed problematic state detection
---
.../frontend/nagvis-js/js/NagVisStatefulObject.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
index ec72671..c598f38 100644
--- a/share/frontend/nagvis-js/js/NagVisStatefulObject.js
+++ b/share/frontend/nagvis-js/js/NagVisStatefulObject.js
@@ -162,14 +162,14 @@ var NagVisStatefulObject = NagVisObject.extend({
* Returns true if the object is in non acked problem state
*/
hasProblematicState: function() {
- var subState = 'normal';
+ // In case of acked/downtimed states this is no problematic state
if(this.conf.summary_problem_has_been_acknowledged &&
this.conf.summary_problem_has_been_acknowledged === 1) {
- subState = 'ack';
+ return false;
} else if(this.conf.summary_in_downtime &&
this.conf.summary_in_downtime === 1) {
- subState = 'downtime';
+ return false;
}
- var weight = oStates[this.conf.summary_state][subState];
+ var weight = oStates[this.conf.summary_state]['normal'];
return weight > oStates['UP']['normal'];
},
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins