summaryrefslogtreecommitdiffstats
path: root/frontends/php/report1.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:28:41 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 15:28:41 +0000
commit9848b90bd9eddf0324ffdc0d8f089c6c24683fe8 (patch)
tree755bae71a9ecbc5d3f3c9085c0583a345c0c00d8 /frontends/php/report1.php
parent2a35ecbf642a185e3b53f66f783272e03fe99e93 (diff)
downloadzabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.tar.gz
zabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.tar.xz
zabbix-9848b90bd9eddf0324ffdc0d8f089c6c24683fe8.zip
- [DEV-118] added dashboard screen to monitoring (Artem)
- [ZBX-206] merged rev.5367:5370 of 1.4/ (Artem) [fixed case sensitive hosts sorting] - [DEV-119] changes how users online are counted (Artem) - implemented patch [added y axis calculation type: "Calculated [Min=0]"] (Artem) - changes in schema.sql (Artem) - fixed JS lib, url class (Artem) - some other small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5387 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/report1.php')
-rw-r--r--frontends/php/report1.php36
1 files changed, 6 insertions, 30 deletions
diff --git a/frontends/php/report1.php b/frontends/php/report1.php
index 92821249..58209e9b 100644
--- a/frontends/php/report1.php
+++ b/frontends/php/report1.php
@@ -1,7 +1,7 @@
<?php
/*
** ZABBIX
-** Copyright (C) 2000-2005 SIA Zabbix
+** Copyright (C) 2000-2008 SIA Zabbix
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
@@ -20,6 +20,8 @@
?>
<?php
require_once "include/config.inc.php";
+ require_once "include/blocks.inc.php";
+
$page["title"] = "S_STATUS_OF_ZABBIX";
$page["file"] = "report1.php";
$page['hist_arg'] = array();
@@ -35,35 +37,9 @@ include_once "include/page_header.php";
?>
<?php
show_table_header(S_STATUS_OF_ZABBIX_BIG);
-
- $table = new CTableInfo();
-
- $table->SetHeader(array(S_PARAMETER,S_VALUE));
-
- $status=get_status();
-
- $table->AddRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status["zabbix_server"], ($status["zabbix_server"] == S_YES ? "off" : "on"))));
-// $table->AddRow(array(S_VALUES_STORED,$status["history_count"]));
-// $table->AddRow(array(S_TRENDS_STORED,$status["trends_count"]));
- $table->AddRow(array(S_NUMBER_OF_HOSTS,array($status["hosts_count"]."(",
- new CSpan($status["hosts_count_monitored"],"off"),"/",
- new CSpan($status["hosts_count_not_monitored"],"on"),"/",
- new CSpan($status["hosts_count_template"],"unknown"),"/",
- $status["hosts_count_deleted"].")")));
- $table->AddRow(array(S_NUMBER_OF_ITEMS,array($status["items_count"]."(",
- new CSpan($status["items_count_monitored"],"off"),"/",
- new CSpan($status["items_count_disabled"],"on"),"/",
- new CSpan($status["items_count_not_supported"],"unknown"),
- ")[".$status["items_count_trapper"]."]")));
- $table->AddRow(array(S_NUMBER_OF_TRIGGERS,array($status["triggers_count"].
- "(".$status["triggers_count_enabled"]."/".$status["triggers_count_disabled"].")"."[",
- new CSpan($status["triggers_count_on"],"on"),"/",
- new CSpan($status["triggers_count_unknown"],"unknown"),"/",
- new CSpan($status["triggers_count_off"],"off"),"]"
- )));
- $table->AddRow(array(S_NUMBER_OF_EVENTS,$status["events_count"]));
- $table->AddRow(array(S_NUMBER_OF_ALERTS,$status["alerts_count"]));
- $table->Show();
+
+ $status = make_status_of_zbx();
+ $status->Show();
?>
<?php