Module: nagvis
Branch: nagvis-1.5
Commit: 545415f029646a16b738bfe05bf689ae779755a0
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=545415f029646a16b738bfe05bf689ae779755a0

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 bb4bd29..716a56a 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -579,18 +579,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