Module: nagvis
Branch: master
Commit: ada5f33f4e3e73e21ae28f09fed34f070c59e75c
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=ada5f33f4e3e73e21ae28f09fed34f070c59e75c

Author: Roman Kyrylych <[email protected]>
Date:   Wed Jul 29 13:54:28 2009 +0300

backends: Added getObjectsEx function that will be used by gmap

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

---

 .../includes/classes/GlobalBackendInterface.php    |    1 +
 .../includes/classes/GlobalBackendmerlinmy.php     |   16 ++++++++++++++++
 .../includes/classes/GlobalBackendndo2fs.php       |   16 ++++++++++++++++
 .../nagvis/includes/classes/GlobalBackendndomy.php |   16 ++++++++++++++++
 4 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/share/nagvis/includes/classes/GlobalBackendInterface.php 
b/share/nagvis/includes/classes/GlobalBackendInterface.php
index 72db6e6..4414f52 100644
--- a/share/nagvis/includes/classes/GlobalBackendInterface.php
+++ b/share/nagvis/includes/classes/GlobalBackendInterface.php
@@ -30,6 +30,7 @@ interface GlobalBackendInterface {
        public function __construct($CORE, $backendId);
        public static function getValidConfig();
        public function getObjects($type, $name1Pattern = '', $name2Pattern = 
'');
+       public function getObjectsEx($type);
        public function getHostState($hostName, $onlyHardstates);
        public function getServiceState($hostName, $serviceName, 
$onlyHardstates);
        public function getHostNamesWithNoParent();
diff --git a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php 
b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
index 6d3c142..ea31f29 100644
--- a/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
+++ b/share/nagvis/includes/classes/GlobalBackendmerlinmy.php
@@ -235,6 +235,22 @@ class GlobalBackendmerlinmy implements 
GlobalBackendInterface {
                
                return $ret;
        }
+
+       /**
+        * PUBLIC Method getObjectsEx
+        * 
+        * Return all objects configured at Nagios plus some additional 
information. 
+        * This is needed for gmap, e.g. to populate lists.
+        *
+        * @param       string $type
+        * @return      array $ret
+        * @author      Roman Kyrylych <[email protected]>
+        */
+       public function getObjectsEx($type) {
+               $ret = Array();
+               
+               return $ret;
+       }
        
        /**
         * PRIVATE Method getHostAckByHostname
diff --git a/share/nagvis/includes/classes/GlobalBackendndo2fs.php 
b/share/nagvis/includes/classes/GlobalBackendndo2fs.php
index a31d84d..33ae526 100644
--- a/share/nagvis/includes/classes/GlobalBackendndo2fs.php
+++ b/share/nagvis/includes/classes/GlobalBackendndo2fs.php
@@ -186,6 +186,22 @@ class GlobalBackendndo2fs implements 
GlobalBackendInterface {
        }
        
        /**
+        * PUBLIC Method getObjectsEx
+        * 
+        * Return all objects configured at Nagios plus some additional 
information. 
+        * This is needed for gmap, e.g. to populate lists.
+        *
+        * @param       string $type
+        * @return      array $ret
+        * @author      Roman Kyrylych <[email protected]>
+        */
+       public function getObjectsEx($type) {
+               $ret = Array();
+
+               return $ret;
+       }
+       
+       /**
         * PRIVATE Method getHostAckByHostname
         *
         * Returns if a host state has been acknowledged. The method doesn't 
check
diff --git a/share/nagvis/includes/classes/GlobalBackendndomy.php 
b/share/nagvis/includes/classes/GlobalBackendndomy.php
index 0bf2f92..ae95b86 100644
--- a/share/nagvis/includes/classes/GlobalBackendndomy.php
+++ b/share/nagvis/includes/classes/GlobalBackendndomy.php
@@ -359,6 +359,22 @@ class GlobalBackendndomy implements GlobalBackendInterface 
{
        }
        
        /**
+        * PUBLIC Method getObjectsEx
+        * 
+        * Return all objects configured at Nagios plus some additional 
information. 
+        * This is needed for gmap, e.g. to populate lists.
+        *
+        * @param       string $type
+        * @return      array $ret
+        * @author      Roman Kyrylych <[email protected]>
+        */
+       public function getObjectsEx($type) {
+               $ret = Array();
+
+               return $ret;
+       }
+
+       /**
         * PRIVATE Method checkForIsActiveObjects
         *
         * Checks if there are some object records with is_active=1


------------------------------------------------------------------------------
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