array(T_ZBX_INT, O_MAND, null, DB_ID, null), "groupid"=> array(T_ZBX_INT, O_OPT, null, DB_ID, null), "hostid"=> array(T_ZBX_INT, O_OPT, null, DB_ID, null) ); check_fields($fields); $accessible_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_WRITE,null,null,$ZBX_CURNODEID); if(!($httptest_data = DBfetch(DBselect('select ht.httptestid from httptest ht, applications a '. ' where a.hostid in ('.$accessible_hosts.') and a.applicationid=ht.applicationid '. ' and ht.httptestid='.$_REQUEST['httptestid'])))) { access_deny(); } ?> SetHeader(array(S_STEP, 'Lastcheck', 'Speed', 'Time', 'Response code', 'Status')); $db_httpsteps = DBselect('select * from httpstep where httptestid='.$httptest_data['httptestid'].' order by no'); while($httpstep_data = DBfetch($db_httpsteps)) { $information = array( bold($httpstep_data['name']) ); $chart1 = $chart2 = $chart3 = '123.9 KBps'; $table->AddRow(array($information, '10/12/07 12:30', $chart1, $chart2, $chart3, new CSpan('Failed','disabled'))); } $table->AddRow(array(bold('CONCLUSION'), 'Unknown', $chart1, $chart2, $chart3, new CSpan('Faild on step X fom Z', 'enabled'))); $table->Show(); $chart1 = $chart2 = $chart3 = new CImg('chart3.php?period=3600&from=0&name=KEY_NAME&height=150'); echo BR; show_table_header('History'.' "'.bold($accessible_hosts['name']).'"'); $form = new CTableInfo(); $form->AddRow(array(bold('Speed per seconds') , new CCol($chart1, 'center'))); $form->AddRow(array(bold('Response time') , new CCol($chart1,'center'))); $form->Show(); navigation_bar("#",$to_save_request); ?>