/*
 * Actions
 */
if (isset($_REQUEST['favobj'])) {
    $_REQUEST['pmasterid'] = get_request('pmasterid', 'mainpage');
    if ($_REQUEST['favobj'] == 'hat') {
        if ($_REQUEST['favaction'] == 'flop') {
            CProfile::update('web.dashboard.hats.' . $_REQUEST['favref'] . '.state', $_REQUEST['favstate'], PROFILE_TYPE_INT);
        } elseif ($_REQUEST['favaction'] == 'refresh') {
            switch ($_REQUEST['favref']) {
                case 'hat_syssum':
                    $syssum = make_system_status($dashconf);
                    $syssum->show();
                    break;
                case 'hat_hoststat':
                    $hoststat = make_hoststat_summary($dashconf);
                    $hoststat->show();
                    break;
                case 'hat_stszbx':
                    $stszbx = make_status_of_zbx();
                    $stszbx->show();
                    break;
                case 'hat_lastiss':
                    $lastiss = make_latest_issues($dashconf);
                    $lastiss->show();
                    break;
                case 'hat_webovr':
                    $webovr = make_webmon_overview($dashconf);
                    $webovr->show();
                    break;
                case 'hat_dscvry':
示例#2
0
    $dashboardConfig['severity'] = zbx_toHash($dashboardConfig['severity']);
    $config = select_config();
    $dashboardConfig['extAck'] = $config['event_ack_enable'] ? CProfile::get('web.dashconf.events.extAck', 0) : 0;
}
/*
 * Actions
 */
// get fresh widget data
if (hasRequest('widgetRefresh')) {
    switch (getRequest('widgetRefresh')) {
        case WIDGET_SYSTEM_STATUS:
            $widget = make_system_status($dashboardConfig);
            $widget->show();
            break;
        case WIDGET_HOST_STATUS:
            $widget = make_hoststat_summary($dashboardConfig);
            $widget->show();
            break;
        case WIDGET_ZABBIX_STATUS:
            $widget = make_status_of_zbx();
            $widget->show();
            break;
        case WIDGET_LAST_ISSUES:
            $widget = make_latest_issues($dashboardConfig);
            $widget->show();
            break;
        case WIDGET_WEB_OVERVIEW:
            $widget = make_webmon_overview($dashboardConfig);
            $widget->show();
            break;
        case WIDGET_DISCOVERY_STATUS: