Module: nagvis Branch: master Commit: 86745c80fa68a4a05c11c831c1d8a78cdc810e46 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=86745c80fa68a4a05c11c831c1d8a78cdc810e46
Author: LaMi <[email protected]> Date: Thu Nov 12 09:15:11 2009 +0100 Some code formating --- .../core/classes/GlobalBackendmklivestatus.php | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 6066453..c0f6b7e 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -597,8 +597,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "current_attempt max_check_attempts last_state_change ". "last_hard_state_change statusmap_image perf_data ". "acknowledged scheduled_downtime_depth has_been_checked\n". - "Filter: name = ".$hostName."\n"); - + "Filter: name = ".$hostName."\n"); + if(count($e) == 0) { $arrReturn['state'] = 'ERROR'; $arrReturn['output'] = GlobalCore::getInstance()->getLang()->getText('hostNotFoundInDB', Array('BACKENDID' => $this->backendId, 'HOST' => $hostName)); @@ -1068,8 +1068,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "Stats: ".$stateAttr." = 2\n" . "Stats: host_name = ".$hostName."\n" . "Stats: acknowledged = 1\n" . - "Stats: host_acknowledged = 1\n" . - "StatsOr: 2\n" . + "Stats: host_acknowledged = 1\n" . + "StatsOr: 2\n" . "StatsAnd: 3\n" . // Count CRITICAL(DOWNTIME) "Stats: ".$stateAttr." = 2\n" . @@ -1090,8 +1090,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { "Stats: ".$stateAttr." = 3\n" . "Stats: host_name = ".$hostName."\n" . "Stats: acknowledged = 1\n" . - "Stats: host_acknowledged = 1\n" . - "StatsOr: 2\n" . + "Stats: host_acknowledged = 1\n" . + "StatsOr: 2\n" . "StatsAnd: 3\n" . // Count UNKNOWN(DOWNTIME) "Stats: ".$stateAttr." = 3\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
