Module: nagvis Branch: master Commit: b5155b2f3e91f5503f269db17c1ee77b28be266f URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=b5155b2f3e91f5503f269db17c1ee77b28be266f
Author: LaMi <[email protected]> Date: Tue Nov 17 21:33:20 2009 +0100 Fixed host/service ok/up downtime count --- .../core/classes/GlobalBackendmklivestatus.php | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 49306f0..710efb2 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -992,8 +992,10 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "StatsAnd: 4\n" . // Count OK (DOWNTIME) "Stats: ".$stateAttr." = 0\n" . + "Stats: has_been_checked != 0\n" . "Stats: scheduled_downtime_depth > 0\n" . "Stats: host_scheduled_downtime_depth > 0\n" . + "StatsOr: 2\n" . "StatsAnd: 3\n" . // Count WARNING "Stats: ".$stateAttr." = 1\n" . @@ -1106,8 +1108,10 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "StatsAnd: 4\n" . // Count OK (DOWNTIME) "Stats: ".$stateAttr." = 0\n" . + "Stats: has_been_checked != 0\n" . "Stats: scheduled_downtime_depth > 0\n" . "Stats: host_scheduled_downtime_depth > 0\n" . + "StatsOr: 2\n" . "StatsAnd: 3\n" . // Count WARNING "Stats: ".$stateAttr." = 1\n" . @@ -1225,8 +1229,9 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "StatsAnd: 3\n" . // Count UP (DOWNTIME) "Stats: ".$stateAttr." = 0\n" . + "Stats: has_been_checked != 0\n" . "Stats: scheduled_downtime_depth > 0\n" . - "StatsAnd: 2\n" . + "StatsAnd: 3\n" . // Count DOWN "Stats: ".$stateAttr." = 1\n" . "Stats: acknowledged = 0\n" . @@ -1398,8 +1403,10 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "StatsAnd: 4\n" . // Count OK (DOWNTIME) "Stats: ".$stateAttr." = 0\n" . + "Stats: has_been_checked != 0\n" . "Stats: scheduled_downtime_depth > 0\n" . "Stats: host_scheduled_downtime_depth > 0\n" . + "StatsOr: 2\n" . "StatsAnd: 3\n" . // Count WARNING "Stats: ".$stateAttr." = 1\n" . ------------------------------------------------------------------------------ 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
