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

Author: Roman Kyrylych <[email protected]>
Date:   Fri Sep  4 15:01:55 2009 +0300

gmap: Pass group's name instead of group object to get*State

Signed-off-by: Roman Kyrylych <[email protected]>

---

 share/netmap/NagiosService.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/netmap/NagiosService.php b/share/netmap/NagiosService.php
index ce7397f..5128051 100644
--- a/share/netmap/NagiosService.php
+++ b/share/netmap/NagiosService.php
@@ -173,7 +173,7 @@ class NagiosService
         */
        public function getHostGroupState($hostgroup)
        {
-               if (($data = $this->backend->getHostgroupState($hostgroup, 0)) 
=== false)
+               if (($data = 
$this->backend->getHostgroupState($hostgroup->name, 0)) === false)
                        return State::ERROR;
 
                $state = State::UNKNOWN;
@@ -213,7 +213,7 @@ class NagiosService
         */
        public function getServiceGroupState($servicegroup)
        {
-               if (($data = 
$this->backend->getServicegroupState($servicegroup, 0)) === false)
+               if (($data = 
$this->backend->getServicegroupState($servicegroup->name, 0)) === false)
                        return State::ERROR;
 
                $state = State::UNKNOWN;


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to