diff --git a/automation_networks.php b/automation_networks.php index dfbc3bd2a3..3fa103a8ce 100644 --- a/automation_networks.php +++ b/automation_networks.php @@ -125,7 +125,9 @@ function api_networks_discover($network_id) { $fgc_contextoption = get_default_contextoption(); if($fgc_contextoption) { + $fgc_context = stream_context_create($fgc_contextoption); + $response = file_get_contents(get_url_type() .'://' . $hostname . $config['url_path'] . 'remote_agent.php?action=discover&network=' . $network_id, false, $fgc_context); } else { $response = file_get_contents(get_url_type() .'://' . $hostname . $config['url_path'] . 'remote_agent.php?action=discover&network=' . $network_id); @@ -911,6 +913,10 @@ function networks() { 'filter' => FILTER_VALIDATE_INT, 'default' => '1' ), + 'refresh' => array( + 'filter' => FILTER_VALIDATE_INT, + 'default' => '20' + ), 'filter' => array( 'filter' => FILTER_CALLBACK, 'pageset' => true, @@ -932,6 +938,12 @@ function networks() { validate_store_request_vars($filters, 'sess_networks'); /* ================= input validation ================= */ + $refresh['page'] = 'automation_networks.php?header=false'; + $refresh['seconds'] = get_request_var('refresh'); + $refresh['logout'] = 'false'; + + set_page_refresh($refresh); + if (get_request_var('rows') == -1) { $rows = read_config_option('num_rows_table'); } elseif (get_request_var('rows') == -2) { @@ -1088,6 +1100,28 @@ function networks_filter() { ?> + + + + + + ' value=''> @@ -1101,6 +1135,7 @@ function networks_filter() { function applyFilter() { strURL = '?rows=' + $('#rows').val(); strURL += '&filter=' + $('#filter').val(); + strURL += '&refresh=' + $('#refresh').val(); strURL += '&header=false'; loadPageNoHeader(strURL); diff --git a/docs/CHANGELOG b/docs/CHANGELOG index 97f1a57088..3e68513c8a 100644 --- a/docs/CHANGELOG +++ b/docs/CHANGELOG @@ -9,6 +9,7 @@ Cacti CHANGELOG -issue#1174: Disable drag and drop when tree is not in edit mode -issue: Move Graph removal function to Graph API -feature: Make tree editing responive +-feature: Add a page refresh dropdown to the Automation Networks page 1.1.31 -issue#1164: Additional issue with Cacti version compare function