Author:   Lars Michelsen <[email protected]>
Date:     Fri Oct 26 12:35:14 2012 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Fri Oct 26 12:35:14 2012 +0200

Livestatus-Backend: Using Columns header instead of the deprecated
StatsGroupBy header (maybe you need to update livestatus)

---

 ChangeLog                                          |    2 ++
 .../core/classes/GlobalBackendmklivestatus.php     |    8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index add206a..9d48924 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 Core:
   * Bugfix: Fixed problem in geomap exception handling
   * Bugfix: Fixed invalid json output on uncached geomap rendering
+  * Livestatus-Backend: Using Columns header instead of the deprecated
+    StatsGroupBy header (maybe you need to update livestatus)
 
 Frontend:
   * Hiding rotations table on overview page when no rotations configured
diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php 
b/share/server/core/classes/GlobalBackendmklivestatus.php
index 6de4c94..d8097c4 100644
--- a/share/server/core/classes/GlobalBackendmklivestatus.php
+++ b/share/server/core/classes/GlobalBackendmklivestatus.php
@@ -899,7 +899,7 @@ class GlobalBackendmklivestatus implements 
GlobalBackendInterface {
             "Stats: host_scheduled_downtime_depth > 0\n" .
             "StatsOr: 2\n" .
             "StatsAnd: 2\n" .
-            "StatsGroupBy: host_name host_alias\n");
+            "Columns: host_name host_alias\n");
 
         $arrReturn = Array();
         if(is_array($l) && count($l) > 0) {
@@ -1005,7 +1005,7 @@ class GlobalBackendmklivestatus implements 
GlobalBackendInterface {
             "Stats: ".$stateAttr." = 2\n" .
             "Stats: scheduled_downtime_depth > 0\n" .
             "StatsAnd: 2\n".
-            "StatsGroupBy: hostgroup_name hostgroup_alias\n");
+            "Columns: hostgroup_name hostgroup_alias\n");
 
         // If the method should fetch several objects and did not find
         // any object, don't return anything => The message
@@ -1130,7 +1130,7 @@ class GlobalBackendmklivestatus implements 
GlobalBackendInterface {
             "Stats: host_scheduled_downtime_depth > 0\n" .
             "StatsOr: 2\n" .
             "StatsAnd: 2\n".
-            "StatsGroupBy: hostgroup_name\n");
+            "Columns: hostgroup_name\n");
 
         if(is_array($l) && count($l) > 0) {
             foreach($l as $e) {
@@ -1247,7 +1247,7 @@ class GlobalBackendmklivestatus implements 
GlobalBackendInterface {
             "Stats: host_scheduled_downtime_depth > 0\n" .
             "StatsOr: 2\n" .
             "StatsAnd: 2\n".
-            "StatsGroupBy: servicegroup_name servicegroup_alias\n");
+            "Columns: servicegroup_name servicegroup_alias\n");
 
         // If the method should fetch several objects and did not find
         // any object, don't return anything => The message


------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to