Module: nagvis
Branch: master
Commit: cdeee857d297da6c9748634aff130dd2b423f35a
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=cdeee857d297da6c9748634aff130dd2b423f35a

Author: Lars Michelsen <[email protected]>
Date:   Fri Jan 14 12:20:36 2011 +0100

Fixed ack/downtime icons for hostsgroup with acked or downtime service problems

---

 .../core/classes/objects/NagVisStatefulObject.php  |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php 
b/share/server/core/classes/objects/NagVisStatefulObject.php
index 893e201..612b6d6 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -582,18 +582,16 @@ class NagVisStatefulObject extends NagVisObject {
                if($this->getSummaryState() != '') {
                        $stateLow = strtolower($this->getSummaryState());
                        
-                       // Get object type prefix
-                       $sPre = '';
-                       if($this->getType() == 'service' || $this->getType() == 
'servicegroup') {
-                               $sPre = 's';
-                       }
-                       
                        switch($stateLow) {
                                case 'unknown':
                                case 'unreachable':
                                case 'down':
                                case 'critical':
                                case 'warning':
+                                       $sPre = '';
+                                       if($stateLow == 'critical' || $stateLow 
== 'warning' || $stateLow == 'unknown')
+                                               $sPre = 's';
+
                                        if($this->getSummaryAcknowledgement() 
== 1) {
                                                $icon = 
$this->iconset.'_'.$sPre.'ack.'.$fileType;
                                        } elseif($this->getSummaryInDowntime() 
== 1) {


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to