summaryrefslogtreecommitdiffstats
path: root/frontends/php/httpmon.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 11:54:29 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 11:54:29 +0000
commit939838fff9c58f1a80e18f09e0b5d2bf8bcc876e (patch)
tree34a4e06e46fa86b105e9a4bac2602a6a4359615b /frontends/php/httpmon.php
parent24372356bb3dbd748c65bdb829069a14af3ac022 (diff)
downloadzabbix-939838fff9c58f1a80e18f09e0b5d2bf8bcc876e.tar.gz
zabbix-939838fff9c58f1a80e18f09e0b5d2bf8bcc876e.tar.xz
zabbix-939838fff9c58f1a80e18f09e0b5d2bf8bcc876e.zip
finished interface for web monitoring
git-svn-id: svn://svn.zabbix.com/trunk@3782 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/httpmon.php')
-rw-r--r--frontends/php/httpmon.php32
1 files changed, 18 insertions, 14 deletions
diff --git a/frontends/php/httpmon.php b/frontends/php/httpmon.php
index 8819b47b..30f74c17 100644
--- a/frontends/php/httpmon.php
+++ b/frontends/php/httpmon.php
@@ -191,7 +191,6 @@ include_once "include/page_header.php";
array_push($name, new CLink($httptest_data["name"],"httpdetails.php?httptestid=".$httptest_data['httptestid'],'action'));
-
$step_cout = DBfetch(DBselect('select count(*) from httpstep where httptestid='.$httptest_data["httptestid"]));
$step_cout = $step_cout[0];
@@ -203,23 +202,28 @@ include_once "include/page_header.php";
if($httptest_data['curstate'] > 0)
{
$step_data = get_httpstep_by_no($httptest_data['httptestid'], $httptest_data['curstate'] - 1);
- $state = 'In check "'.$step_data['name'].'"';
- }
- else
- {
- $state = "Idle till ".date(S_DATE_FORMAT_YMDHMS,$httptest_data['nextcheck']);
- }
+ $state = S_IN_CHECK.' "'.$step_data['name'].'" ['.$httptest_data['curstate'].' '.S_OF_SMALL.' '.$step_cout.']';
- if($httptest_data['lastfailedstep'] > 0)
- {
- $step_data = get_httpstep_by_no($httptest_data['httptestid'], $httptest_data['lastfailedstep'] - 1);
- $status['msg'] = 'Failed on "'.$step_data['name'].'"';
- $status['style'] = 'disabled';
+ $status['msg'] = S_IN_PROGRESS;
+ $status['style'] = 'unknown';
}
else
{
- $status['msg'] = 'OK';
- $status['style'] = 'enabled';
+ $state = S_IDLE_TILL." ".date(S_DATE_FORMAT_YMDHMS,$httptest_data['nextcheck']);
+
+ if($httptest_data['lastfailedstep'] > 0)
+ {
+ $step_data = get_httpstep_by_no($httptest_data['httptestid'], $httptest_data['lastfailedstep'] - 1);
+ $status['msg'] = S_FAILED_ON.' "'.$step_data['name'].'" '.
+ '['.$httptest_data['lastfailedstep'].' '.S_OF_SMALL.' '.$step_cout.'] '.
+ ' '.S_ERROR.': '.$httptest_data['error'];
+ $status['style'] = 'disabled';
+ }
+ else
+ {
+ $status['msg'] = S_OK;
+ $status['style'] = 'enabled';
+ }
}
array_push($app_rows, new CRow(array(