Module: nagvis Branch: master Commit: 552f69df1648ac409958ec3fae9db208cc4bdad2 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=552f69df1648ac409958ec3fae9db208cc4bdad2
Author: LaMi <[email protected]> Date: Sun Nov 15 12:47:05 2009 +0100 Changed hard state attribute to last_hard_state on service objects --- .../core/classes/GlobalBackendmklivestatus.php | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 9d2d6b4..6d4e28e 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -476,7 +476,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // When only hardstates were requested ask for the hardstate if($onlyHardstates) { - $stateAttr = 'hard_state'; + $stateAttr = 'last_hard_state'; } $l = $this->queryLivestatus("GET services\n" . @@ -691,7 +691,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // When only hardstates were requested ask for the hardstate if($onlyHardstates) { - $stateAttr = 'hard_state'; + $stateAttr = 'last_hard_state'; } $query = @@ -920,7 +920,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // When only hardstates were requested ask for the hardstate if($onlyHardstates) { - $stateAttr = 'hard_state'; + $stateAttr = 'last_hard_state'; } // Get service information @@ -1024,7 +1024,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // When only hardstates were requested ask for the hardstate if($onlyHardstates) { - $stateAttr = 'hard_state'; + $stateAttr = 'last_hard_state'; } // Get service information @@ -1181,6 +1181,11 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { $aReturn['UNREACHABLE']['ack'] = $hosts[6]; $aReturn['UNREACHABLE']['downtime'] = $hosts[7]; + // When only hardstates were requested ask for the hardstate + if($onlyHardstates) { + $stateAttr = 'last_hard_state'; + } + // Get service information $services = $this->queryLivestatusSingleRow("GET services\n" . "Filter: host_groups >= ".$hostgroupName."\n" . @@ -1282,7 +1287,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // When only hardstates were requested ask for the hardstate if($onlyHardstates) { - $stateAttr = 'hard_state'; + $stateAttr = 'last_hard_state'; } // Get service information ------------------------------------------------------------------------------ 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
