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

Author: Lars Michelsen <[email protected]>
Date:   Sat Oct 31 16:44:51 2009 +0100

Renamed new check_mk livestatus backend to mklivestatus

---

 ...ckendlive.php => GlobalBackendmklivestatus.php} |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/share/server/core/classes/GlobalBackendlive.php 
b/share/server/core/classes/GlobalBackendmklivestatus.php
similarity index 98%
rename from share/server/core/classes/GlobalBackendlive.php
rename to share/server/core/classes/GlobalBackendmklivestatus.php
index 63aba6f..41d435a 100644
--- a/share/server/core/classes/GlobalBackendlive.php
+++ b/share/server/core/classes/GlobalBackendmklivestatus.php
@@ -1,7 +1,7 @@
 <?php
 /*****************************************************************************
  *
- * GlobalBackendlive.php
+ * GlobalBackendmklivestatus.php
  *
  * Backend class for handling object and state information using the 
  * livestatus NEB module. For mor information about CheckMK's Livestatus 
@@ -34,7 +34,7 @@
  * For mor information about CheckMK's Livestatus Module
  * please visit: http://mathias-kettner.de/checkmk_livestatus.html
  */
-class GlobalBackendlive implements GlobalBackendInterface {
+class GlobalBackendmklivestatus implements GlobalBackendInterface {
        private $backendId = '';
        private $socketPath = '';
        
@@ -119,6 +119,11 @@ class GlobalBackendlive implements GlobalBackendInterface {
                        return Array();
                }
                
+               // 1, 2, 44
+               // Dataset:
+               // Field:
+               // List:
+               // Host/Service:
                socket_write($sock, $query . "Separators: 0 1 2 3\n");
                socket_shutdown($sock, 1);
                
@@ -131,13 +136,13 @@ class GlobalBackendlive implements GlobalBackendInterface 
{
                socket_close($sock);
                
                /* split into lines and fields */
-               $lines = explode("\001", $read);
+               $lines = explode("\000", $read);
                /* 'field' after trailing linefeed */
                @array_pop($lines);
                
                $result = Array();
                foreach($lines as $line) {
-                       $result[] = explode("\002", $line);
+                       $result[] = explode("\001", $line);
                }
                
                return $result;
@@ -629,4 +634,4 @@ class GlobalBackendlive implements GlobalBackendInterface {
                return Array('alias' => $l);
        }
 }
-?>
\ No newline at end of file
+?>


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to