Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Jun 16, 2019 12:42 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 4:42 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 323
I try to change some value on this screen, but beside that the save button go from green, to white then green, it's look like it dosen't save any value
So after that if I try to change to another tab it told me nothing are save, and that's true
And no error what so ever in my log.

Saving a value in any other tab in settings works fine

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 5:51 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
Do you have any errors in your browser developer console? What version of Cacti are you running?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 6:47 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 323
No error
cacti 1.2.1
Firefox 65.0.1 and try to clear the cache and restart the browser

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 7:27 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
If you can, use the developer tools and check the network tab to see what requests are being sent and what response is received.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 7:31 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 323
that is receive when I clik on the tab poller
<div>
<div class='tabs' style='float:left;'><nav><ul role='tablist'>
<li class='subTab'><a class='' href='settings.php?tab=general'>General</a></li>
<li class='subTab'><a class='' href='settings.php?tab=path'>Paths</a></li>
<li class='subTab'><a class='' href='settings.php?tab=snmp'>Device Defaults</a></li>
<li class='subTab'><a class='selected' href='settings.php?tab=poller'>Poller</a></li>
<li class='subTab'><a class='' href='settings.php?tab=data'>Data</a></li>
<li class='subTab'><a class='' href='settings.php?tab=visual'>Visual</a></li>
<li class='subTab'><a class='' href='settings.php?tab=authentication'>Authentication</a></li>
<li class='subTab'><a class='' href='settings.php?tab=boost'>Performance</a></li>
<li class='subTab'><a class='' href='settings.php?tab=spikes'>Spikes</a></li>
<li class='subTab'><a class='' href='settings.php?tab=mail'>Mail/Reporting/DNS</a></li>
<li class='subTab pluginTab'><a class='' href='settings.php?tab=alerts'>Thresholds</a></li>
<li class='subTab pluginTab'><a class='' href='settings.php?tab=monitor'>Monitor</a></li>
<li class='subTab pluginTab'><a class='' href='settings.php?tab=LinkDiscovery'>LinkDiscovery</a></li>
<li class='subTab pluginTab'><a class='' href='settings.php?tab=misc'>Misc</a></li>
</ul></nav></div>
</div>
<form class='cactiFormStart' id='form_settings' name='form_settings' action='settings.php' autocomplete='off' method='post'>
<div id='settings_poller1' class='cactiTable' style='width:100%;text-align:center;'><div><div class='cactiTableTitle'><span>Cacti Settings (Poller)</span></div><div class='cactiTableButton'>
<span> </span></div></div><div id='settings_poller1_child' class='cactiTable'><div class='spacer formHeader collapsible' id='row_poller_header'><div class='formHeaderText'>General<div class='formHeaderAnchor'><i class='fa fa-angle-double-up'></i></div></div></div><div id='row_poller_enabled' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Data Collection Enabled<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">If you wish to stop the polling process completely, uncheck this box.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><span class='nowrap'><label class='checkboxSwitch' title='Data Collection Enabled'><input title='Data Collection Enabled' class='formCheckbox' type='checkbox' id='poller_enabled' name='poller_enabled' checked aria-checked='true'><span class='checkboxSlider checkboxRound'></span></label><label class='checkboxLabel' for='poller_enabled'>Data Collection Enabled</label></span></div></div></div><div id='row_enable_snmp_agent' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>SNMP Agent Support Enabled<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">If this option is checked, Cacti will populate SNMP Agent tables with Cacti device and system information. It does not enable the SNMP Agent itself.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><span class='nowrap'><label class='checkboxSwitch' title='SNMP Agent Support Enabled'><input title='SNMP Agent Support Enabled' class='formCheckbox' type='checkbox' id='enable_snmp_agent' name='enable_snmp_agent' checked aria-checked='true'><span class='checkboxSlider checkboxRound'></span></label><label class='checkboxLabel' for='enable_snmp_agent'>SNMP Agent Support Enabled</label></span></div></div></div><div id='row_poller_type' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Poller Type<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The poller type to use. This setting will take effect at next polling interval.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='poller_type' name='poller_type'><option value="1">cmd.php</option>
<option value="2" selected>spine</option>
</select>
</div></div></div><div id='row_poller_sync_interval' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Poller Sync Interval<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The default polling sync interval to use when creating a poller. This setting will effect how often remote pollers are checked and updated.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='poller_sync_interval' name='poller_sync_interval'><option value="0">Disabled/Manual</option>
<option value="1800">Every 30 Minutes</option>
<option value="3600">Every Hour</option>
<option value="7200" selected>Every 2 Hours</option>
<option value="14400">Every 4 Hours</option>
<option value="28800">Every 8 Hours</option>
<option value="57600">Every 16 Hours</option>
<option value="86400">Every day</option>
</select>
</div></div></div><div id='row_poller_interval' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Poller Interval<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The polling interval in use. This setting will effect how often RRDfiles are checked and updated. <strong><u>NOTE: If you change this value, you must re-populate the poller cache. Failure to do so, may result in lost data.</u></strong></span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='poller_interval' name='poller_interval'><option value="10">Every 10 Seconds</option>
<option value="15">Every 15 Seconds</option>
<option value="20">Every 20 Seconds</option>
<option value="30">Every 30 Seconds</option>
<option value="60">Every Minute</option>
<option value="300" selected>Every 5 Minutes</option>
</select>
</div></div></div><div id='row_cron_interval' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Cron Interval<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The cron interval in use. You need to set this setting to the interval that your cron or scheduled task is currently running.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='cron_interval' name='cron_interval'><option value="60">Every Minute</option>
<option value="300" selected>Every 5 Minutes</option>
</select>
</div></div></div><div id='row_concurrent_processes' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Default Data Collector Processes<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The default number of concurrent processes to execute per Data Collector. NOTE: Starting from Cacti 1.2, this setting is maintained in the Data Collector. Moving forward, this value is only a preset for the Data Collector. Using a higher number when using cmd.php will improve performance. Performance improvements in Spine are best resolved with the threads parameter. When using Spine, we recommend a lower number and leveraging threads instead. When using cmd.php, use no more than 2x the number of CPU cores.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><input type='text' id='concurrent_processes' autocomplete='off' name='concurrent_processes' size='5' maxlength='10' value='2'>
</div></div></div><div id='row_process_leveling' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Balance Process Load<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">If you choose this option, Cacti will attempt to balance the load of each poller process by equally distributing poller items per process.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><span class='nowrap'><label class='checkboxSwitch' title='Balance Process Load'><input title='Balance Process Load' class='formCheckbox' type='checkbox' id='process_leveling' name='process_leveling' checked aria-checked='true'><span class='checkboxSlider checkboxRound'></span></label><label class='checkboxLabel' for='process_leveling'>Balance Process Load</label></span></div></div></div><div id='row_poller_debug' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Debug Output Width<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">If you choose this option, Cacti will check for output that exceeds Cacti's ability to store it and issue a warning when it finds it.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><span class='nowrap'><label class='checkboxSwitch' title='Debug Output Width'><input title='Debug Output Width' class='formCheckbox' type='checkbox' id='poller_debug' name='poller_debug' aria-checked='false'><span class='checkboxSlider checkboxRound'></span></label><label class='checkboxLabel' for='poller_debug'>Debug Output Width</label></span></div></div></div><div id='row_oid_increasing_check_disable' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Disable increasing OID Check<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">Controls disabling check for increasing OID while walking OID tree.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><span class='nowrap'><label class='checkboxSwitch' title='Disable increasing OID Check'><input title='Disable increasing OID Check' class='formCheckbox' type='checkbox' id='oid_increasing_check_disable' name='oid_increasing_check_disable' aria-checked='false'><span class='checkboxSlider checkboxRound'></span></label><label class='checkboxLabel' for='oid_increasing_check_disable'>Disable increasing OID Check</label></span></div></div></div><div id='row_remote_agent_timeout' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Remote Agent Timeout<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The amount of time, in seconds, that the Central Cacti web server will wait for a response from the Remote Data Collector to obtain various Device information before abandoning the request. On Devices that are associated with Data Collectors other than the Central Cacti Data Collector, the Remote Agent must be used to gather Device information.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='remote_agent_timeout' name='remote_agent_timeout'><option value="5" selected>5 Seconds</option>
<option value="10">10 Seconds</option>
<option value="15">15 Seconds</option>
<option value="20">20 Seconds</option>
</select>
</div></div></div><div id='row_snmp_bulk_walk_size' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>SNMP Bulkwalk Fetch Size<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">How many OID's should be returned per snmpbulkwalk request? For Devices with large SNMP trees, increasing this size will increase re-index performance over a WAN.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='snmp_bulk_walk_size' name='snmp_bulk_walk_size'><option value="10" selected>10</option>
<option value="20">20</option>
<option value="30">30</option>
<option value="40">40</option>
<option value="50">50</option>
<option value="60">60</option>
<option value="70">70</option>
<option value="80">80</option>
<option value="90">90</option>
<option value="100">100</option>
<option value="150">150</option>
<option value="200">200</option>
</select>
</div></div></div><div class='spacer formHeader collapsible' id='row_spine_header'><div class='formHeaderText'>Spine Specific Execution Parameters<div class='formHeaderAnchor'><i class='fa fa-angle-double-up'></i></div></div></div><div id='row_spine_log_level' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Invalid Data Logging<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">How would you like Spine output errors logged? The options are: 'Detailed' which is similar to cmd.php logging; 'Summary' which provides the number of output errors per Device; and 'None', which does not provide error counts.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><select id='spine_log_level' name='spine_log_level'><option value="0" selected>None</option>
<option value="1">Summary</option>
<option value="2">Detailed</option>
</select>
</div></div></div><div id='row_max_threads' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Default Threads per Process<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The Default Threads allowed per process. NOTE: Starting in Cacti 1.2+, this setting is maintained in the Data Collector, and this is simply the Preset. Using a higher number when using Spine will improve performance. However, ensure that you have enough MySQL/MariaDB connections to support the following equation: connections = data collectors * processes * (threads + script servers). You must also ensure that you have enough spare connections for user login connections as well.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><input type='text' id='max_threads' autocomplete='off' name='max_threads' size='5' maxlength='10' value='10'>
</div></div></div><div id='row_php_servers' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>Number of PHP Script Servers<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The number of concurrent script server processes to run per Spine process. Settings between 1 and 10 are accepted. This parameter will help if you are running several threads and script server scripts.</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><input type='text' id='php_servers' autocomplete='off' name='php_servers' size='5' maxlength='10' value='1'>
</div></div></div><div id='row_script_timeout' class='formRow even'><div class='formColumnLeft'><div class='formFieldName'>Script and Script Server Timeout Value<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The maximum time that Cacti will wait on a script to complete. This timeout value is in seconds</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><input type='text' id='script_timeout' autocomplete='off' name='script_timeout' size='5' maxlength='10' value='25'>
</div></div></div><div id='row_max_get_size' class='formRow odd'><div class='formColumnLeft'><div class='formFieldName'>The Maximum SNMP OIDs Per SNMP Get Request<div class="formTooltip"><div class="cactiTooltipHint fa fa-question-circle"><span style="display:none;">The maximum number of SNMP get OIDs to issue per snmpbulkwalk request. Increasing this value speeds poller performance over slow links. The maximum value is 100 OIDs. Decreasing this value to 0 or 1 will disable snmpbulkwalk</span></div>
</div></div></div><div class="formColumnRight"><div class="formData"><input type='text' id='max_get_size' autocomplete='off' name='max_get_size' size='5' maxlength='10' value='10'>
</div></div></div></div></div>
<div class='break'></div><div style='display:none;'><input style='height:0px;' type='hidden' id='tab' name='tab' value='poller'></div> <table style='width:100%;text-align:center;'>
<tr>
<td class='saveRow'>
<input type='hidden' name='action' value='save'>
<input type='submit' class='save ui-button ui-corner-all ui-widget' id='submit' value='Save'>
</td>
</tr>
</table>
</form>
<script type='text/javascript'>
var formArray = [];
var changed = false;

function warningMessage(href, type, scroll_or_id) {
title='Warning Unsaved Form Data';
returnStr = '<div id="messageContainer" style="display:none">' +
'<h4>Unsaved Changes Detected</h4>' +
'<p style="display:table-cell;overflow:auto">You have unsaved changes on this form. If you press &#39;Continue&#39; these changes will be discarded. Press &#39;Cancel&#39; to continue editing the form.</p>' +
'</div>';

$('#messageContainer').remove();
$('body').append(returnStr);

var messageButtons = {
'Cancel': {
text: sessionMessageCancel,
id: 'messageCancel',
click: function() {
$(this).dialog('close');
$('#messageContainer').remove();
}
},
'Continue': {
text: sessionMessageContinue,
id: 'messageContinue',
click: function() {
$('#messageContainer').remove();

if (type == 'noheader') {
loadPageNoHeader(href, scroll_or_id, true);
} else if (type == 'toptab') {
loadTopTab(href, scroll_or_id, true);
} else {
loadPage(href, true);
}
}
}
};

messageWidth = $(window).width();
if (messageWidth > 600) {
messageWidth = 600;
} else {
messageWidth -= 50;
}

$('#messageContainer').dialog({
draggable: true,
resizable: false,
height: 'auto',
minWidth: messageWidth,
maxWidth: 800,
maxHeight: 600,
title: title,
buttons: messageButtons
});
}

$(function() {
formArray['form_settings'] = $('#form_settings').serializeForm();
changed = false;

$('#form_settings').submit(function(event) {
event.preventDefault();

strURL = 'settings.php';
strURL += (strURL.indexOf('?') >= 0 ? '&':'?') + 'header=false';

json = $(this).serializeObject();
$.post(strURL, json).done(function(data) {
checkForLogout(data);
var htmlObject = $(data);
var matches = data.match(/<title>(.*?)<\/title>/);

if (matches != null) {
var htmlTitle = matches[1];
var breadCrumbs = htmlObject.find('#breadcrumbs').html();
var data = htmlObject.find('#main').html();

$('#main').empty().hide();
$('title').text(htmlTitle);
$('#breadcrumbs').html(breadCrumbs);
$('div[class^="ui-"]').remove();
$('#main').html(data);
applySkin();
} else {
$('#main').empty().hide().html(data);
applySkin();
}

if (isMobile.any() != null) {
window.scrollTo(0,1);
} else {
window.scrollTo(0,0);
}
});
});
});
</script>
<script type='text/javascript'>

var themeChanged = false;
var currentTheme = '';
var rrdArchivePath = '';
var smtpPath = '';
var currentTab = 'poller';
var dataCollectors = '1';

$(function() {
$('.subTab').find('a').click(function(event) {
event.preventDefault();
strURL = $(this).attr('href');
strURL += (strURL.indexOf('?') > 0 ? '&':'?') + 'header=false';
loadPageNoHeader(strURL, true, false);
});

$('input[value="Save"]').click(function(event) {
event.preventDefault();

if (parseInt($('#cron_interval').val()) < parseInt($('#poller_interval').val())) {
$('#message_container').html('<div id="message" class="textError messageBox">Poller Interval must be less than Cron Interval</div>').show().delay(4000).slideUp('fast', function() {
$('#message_container').empty();
});
return false;
}

if (themeChanged != true) {
$.post('settings.php?tab='+$('#tab').val()+'&header=false', $('input, select, textarea').serialize()).done(function(data) {
$('#main').hide().html(data);
applySkin();
});
} else {
$.post('settings.php?tab='+$('#tab').val()+'&header=false', $('input, select, textarea').serialize()).done(function(data) {
document.location = 'settings.php?newtheme=1&tab='+$('#tab').val();
});
}
});

if (currentTab == 'general') {
$('#selective_plugin_debug').multiselect({
height: 300,
noneSelectedText: 'Select Plugin(s)',
selectedText: function(numChecked, numTotal, checkedItems) {
myReturn = numChecked + ' Plugins Selected';
return myReturn;
},
checkAllText: 'All',
uncheckAllText: 'None',
uncheckall: function() {
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).prop('checked', true);
});
}
}).multiselectfilter( {
label: 'Search',
placeholder: 'Enter keyword',
width: '150'
});

$('#selective_debug').multiselect({
noneSelectedText: 'Select File(s)',
selectedText: function(numChecked, numTotal, checkedItems) {
myReturn = numChecked + ' Files Selected';
return myReturn;
},
checkAllText: 'All',
uncheckAllText: 'None',
uncheckall: function() {
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).prop('checked', true);
});
}
}).multiselectfilter( {
label: 'Search',
placeholder: 'Enter keyword',
width: '150'
});
} else if (currentTab == 'spikes') {
$('#spikekill_templates').multiselect({
height: 300,
noneSelectedText: 'Select Template(s)',
selectedText: function(numChecked, numTotal, checkedItems) {
myReturn = numChecked + ' Templates Selected';
$.each(checkedItems, function(index, value) {
if (value.value == '0') {
myReturn='All Templates Selected';
return false;
}
});
return myReturn;
},
checkAllText: 'All',
uncheckAllText: 'None',
uncheckall: function() {
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).prop('checked', true);
});
},
click: function(event, ui) {
checked=$(this).multiselect('widget').find('input:checked').length;

if (ui.value == '0') {
if (ui.checked == true) {
$('#host').multiselect('uncheckAll');
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).prop('checked', true);
});
}
}else if (checked == 0) {
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).click();
});
}else if ($(this).multiselect('widget').find('input:checked:first').val() == '0') {
if (checked > 0) {
$(this).multiselect('widget').find(':checkbox:first').each(function() {
$(this).click();
$(this).prop('disable', true);
});
}
}
}
}).multiselectfilter( {
label: 'Search',
placeholder: 'Enter keyword',
width: '150'
});
} else if (currentTab == 'data') {
$('#storage_location').change(function() {
if ($(this).val() == '0') {
$('#row_rrdp_header').hide();
$('#row_rrdp_server').hide();
$('#row_rrdp_port').hide();
$('#row_rrdp_fingerprint').hide();
$('#row_rrdp_header2').hide();
$('#row_rrdp_load_balancing').hide();
$('#row_rrdp_server_backup').hide();
$('#row_rrdp_port_backup').hide();
$('#row_rrdp_fingerprint_backup').hide();
} else {
$('#row_rrdp_header').show();
$('#row_rrdp_server').show();
$('#row_rrdp_port').show();
$('#row_rrdp_fingerprint').show();
$('#row_rrdp_header2').show();
$('#row_rrdp_load_balancing').show();
$('#row_rrdp_server_backup').show();
$('#row_rrdp_port_backup').show();
$('#row_rrdp_fingerprint_backup').show();
}
}).trigger('change');
} else if (currentTab == 'mail') {
$('#row_settings_email_header div.formHeaderText').append('<div id="emailtest" class="emailtest">Send a Test Email</div>');

initMail();

$('#settings_how').change(function() {
initMail();
});

$('#emailtest').click(function() {
$.get('settings.php?action=send_test')
.done(function(data) {
$('body').append('<div id="testmail" title="Test Email Results"></div>');
$('#testmail').html(data);

$('#testmail').dialog({
autoOpen: false,
modal: true,
minHeight: 300,
maxHeight: 600,
height: 450,
width: 500,
autoOpen: true,
show: {
effect: 'appear',
duration: 100
},
hide: {
effect: 'appear',
duratin: 100
}
});
})
.fail(function(data) {
getPresentHTTPError(data);
});
});
} else if (currentTab == 'visual') {
currentTheme = $('#selected_theme').val();

initFonts();
initRealtime();

$('#font_method').change(function() {
initFonts();
});

$('#selected_theme').change(function() {
themeChanger();
});

$('#realtime_enabled').change(function() {
initRealtime();
});
} else if (currentTab == 'snmp') {
// Need to set this for global snmpv3 functions to remain sane between edits
snmp_security_initialized = false;

setSNMP();

$('#snmp_version, #snmp_auth_protocol, #snmp_priv_protocol, #snmp_security_level').change(function() {
setSNMP();
});

initAvail();
$('#availability_method').change(function() {
initAvail();
});
} else if (currentTab == 'authentication') {
initAuth();
initSearch();
initGroupMember();

$('#auth_method').change(function() {
initAuth();
});

$('#ldap_mode').change(function() {
initSearch();
});

$('#ldap_group_require').change(function() {
initGroupMember();
});
} else if (currentTab == 'path') {
initRRDClean();

$('#rrd_autoclean').change(function() {
initRRDClean();
});

if (cactiServerOS == 'win32') {
$('#row_path_stderrlog').hide();
}

$('#rrd_autoclean_method').change(function() {
initRRDClean();
});
} else if (currentTab == 'boost') {
if (dataCollectors > 1) {
$('#boost_rrd_update_enable').prop('checked', true);
$('#boost_rrd_update_enable').prop('disabled', true);
$('#boost_redirect').prop('checked', true);
$('#boost_redirect').prop('disabled', true);
}

initBoostOD();
initBoostCache();

$('#boost_rrd_update_enable').change(function() {
initBoostOD();
});

$('#boost_png_cache_enable').change(function() {
initBoostCache();
});
}

function initMail() {
/* clear passwords */
if ($('#settings_sendmail_path').val() != '') {
smtpPath = $('#settings_sendmail_path').val();
}

$('#settings_smtp_password').val('');
$('#settings_smtp_password_confirm').val('');

switch($('#settings_how').val()) {
case '0':
$('#settings_sendmail_path').val('');
$('#row_settings_sendmail_header').hide();
$('#row_settings_sendmail_path').hide();
$('#row_settings_smtp_header').hide();
$('#row_settings_smtp_host').hide();
$('#row_settings_smtp_port').hide();
$('#row_settings_smtp_username').hide();
$('#row_settings_smtp_password').hide();
$('#row_settings_smtp_secure').hide();
$('#row_settings_smtp_timeout').hide();
break;
case '1':
if (smtpPath != '') {
$('#settings_sendmail_path').val(smtpPath);
}

$('#row_settings_sendmail_header').show();
$('#row_settings_sendmail_path').show();
$('#row_settings_smtp_header').hide();
$('#row_settings_smtp_host').hide();
$('#row_settings_smtp_port').hide();
$('#row_settings_smtp_username').hide();
$('#row_settings_smtp_password').hide();
$('#row_settings_smtp_secure').hide();
$('#row_settings_smtp_timeout').hide();
break;
case '2':
$('#settings_sendmail_path').val('');
$('#row_settings_sendmail_header').hide();
$('#row_settings_sendmail_path').hide();
$('#row_settings_smtp_header').show();
$('#row_settings_smtp_host').show();
$('#row_settings_smtp_port').show();
$('#row_settings_smtp_username').show();
$('#row_settings_smtp_password').show();
$('#row_settings_smtp_secure').show();
$('#row_settings_smtp_timeout').show();
break;
}
}
});

function initBoostCache() {
if ($('#boost_png_cache_enable').is(':checked')){
$('#row_boost_png_cache_directory').show();
} else {
$('#row_boost_png_cache_directory').hide();
}
}

function initBoostOD() {
if ($('#boost_rrd_update_enable').is(':checked')){
$('#row_boost_rrd_update_interval').show();
$('#row_boost_parallel').show();
$('#row_path_boost_log').show();
$('#row_boost_rrd_update_max_records').show();
$('#row_boost_rrd_update_max_records_per_select').show();
$('#row_boost_rrd_update_string_length').show();
$('#row_boost_poller_mem_limit').show();
$('#row_boost_rrd_update_max_runtime').show();
$('#row_boost_redirect').show();
} else {
$('#row_boost_rrd_update_interval').hide();
$('#row_boost_parallel').hide();
$('#row_path_boost_log').hide();
$('#row_boost_rrd_update_max_records').hide();
$('#row_boost_rrd_update_max_records_per_select').hide();
$('#row_boost_rrd_update_string_length').hide();
$('#row_boost_poller_mem_limit').hide();
$('#row_boost_rrd_update_max_runtime').hide();
$('#row_boost_redirect').hide();
}
}

function themeChanger() {
if ($('#selected_theme').val() != currentTheme) {
themeChanged = true;
} else {
themeChanged = false;
}
}

function initFonts() {
if ($('#font_method').val() == 1) {
$('#row_path_rrdtool_default_font').hide();
$('#row_title_size').hide();
$('#row_title_font').hide();
$('#row_legend_size').hide();
$('#row_legend_font').hide();
$('#row_axis_size').hide();
$('#row_axis_font').hide();
$('#row_unit_size').hide();
$('#row_unit_font').hide();
} else {
$('#row_path_rrdtool_default_font').show();
$('#row_title_size').show();
$('#row_legend_size').show();
$('#row_axis_size').show();
$('#row_unit_size').show();
$('#row_title_font').show();
$('#row_legend_font').show();
$('#row_axis_font').show();
$('#row_unit_font').show();
}
}

function initRealtime() {
if ($('#realtime_enabled').is(':checked')) {
$('#row_realtime_gwindow').show();
$('#row_realtime_interval').show();
$('#row_realtime_cache_path').show();
} else {
$('#row_realtime_gwindow').hide();
$('#row_realtime_interval').hide();
$('#row_realtime_cache_path').hide();
}
}

function initRRDClean() {
if ($('#rrd_autoclean').is(':checked')) {
$('#row_rrd_autoclean_method').show();
if ($('#rrd_autoclean_method').val() == '3') {
if (rrdArchivePath != '') {
$('#rrd_archive').val(rrdArchivePath);
}
$('#row_rrd_archive').show();
} else {
if ($('#rrd_archive').val() != '') {
rrdArchivePath = $('#rrd_archive').val();
}
$('#row_rrd_archive').hide();
$('#rrd_archive').val('');
}
} else {
if ($('#rrd_archive').val() != '') {
rrdArchivePath = $('#rrd_archive').val();
}
$('#rrd_archive').val('');

$('#row_rrd_autoclean_method').hide();
$('#row_rrd_archive').hide();
}
}

function initSearch() {
if ($('#auth_method').val() == 3) {
switch($('#ldap_mode').val()) {
case "0":
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
break;
case "1":
$('#row_ldap_search_base_header').show();
$('#row_ldap_search_base').show();
$('#row_ldap_search_filter').show();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
break;
case "2":
$('#row_ldap_search_base_header').show();
$('#row_ldap_search_base').show();
$('#row_ldap_search_filter').show();
$('#row_ldap_specific_dn').show();
$('#row_ldap_specific_password').show();
break;
}
} else {
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
}
}

function initGroupMember() {
if ($('#auth_method').val() == 3) {
if ($('#ldap_group_require').is(':checked')) {
$('#row_ldap_group_header').show();
$('#row_ldap_group_dn').show();
$('#row_ldap_group_attrib').show();
$('#row_ldap_group_member_type').show();
} else {
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
}
} else {
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
}
}

function initAuth() {
switch($('#auth_method').val()) {
case "0": // None
$('#row_special_users_header').hide();
$('#row_auth_cache_enabled').hide();
$('#row_guest_user').hide();
$('#row_user_template').hide();
$('#row_ldap_general_header').hide();
$('#row_ldap_server').hide();
$('#row_ldap_port').hide();
$('#row_ldap_port_ssl').hide();
$('#row_ldap_version').hide();
$('#row_ldap_encryption').hide();
$('#row_ldap_referrals').hide();
$('#row_ldap_mode').hide();
$('#row_ldap_dn').hide();
$('#row_ldap_group_require').hide();
$('#row_ldap_attrib').hide();
$('#row_ldap_member_type').hide();
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
$('#row_cn_header').hide();
$('#row_cn_full_name').hide();
$('#row_cn_email').hide();
$('#row_secpass_header').hide();
$('#row_secpass_minlen').hide();
$('#row_secpass_reqmixcase').hide();
$('#row_secpass_reqnum').hide();
$('#row_secpass_reqspec').hide();
$('#row_secpass_forceold').hide();
$('#row_secpass_expireaccount').hide();
$('#row_secpass_expirepass').hide();
$('#row_secpass_history').hide();
$('#row_secpass_lock_header').hide();
$('#row_secpass_lockfailed').hide();
$('#row_secpass_unlocktime').hide();
break;
case "1": // Builtin
$('#row_special_users_header').show();
$('#row_auth_cache_enabled').show();
$('#row_guest_user').show();
$('#row_user_template').show();
$('#row_ldap_general_header').hide();
$('#row_ldap_server').hide();
$('#row_ldap_port').hide();
$('#row_ldap_port_ssl').hide();
$('#row_ldap_version').hide();
$('#row_ldap_encryption').hide();
$('#row_ldap_referrals').hide();
$('#row_ldap_mode').hide();
$('#row_ldap_dn').hide();
$('#row_ldap_group_require').hide();
$('#row_ldap_attrib').hide();
$('#row_ldap_member_type').hide();
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
$('#row_cn_header').hide();
$('#row_cn_full_name').hide();
$('#row_cn_email').hide();
$('#row_secpass_header').show();
$('#row_secpass_minlen').show();
$('#row_secpass_reqmixcase').show();
$('#row_secpass_reqnum').show();
$('#row_secpass_reqspec').show();
$('#row_secpass_forceold').show();
$('#row_secpass_expireaccount').show();
$('#row_secpass_expirepass').show();
$('#row_secpass_history').show();
$('#row_secpass_lock_header').show();
$('#row_secpass_lockfailed').show();
$('#row_secpass_unlocktime').show();
break;
case "2": // Web Basic
$('#row_special_users_header').show();
$('#row_auth_cache_enabled').hide();
$('#row_guest_user').show();
$('#row_user_template').show();
$('#row_ldap_general_header').hide();
$('#row_ldap_server').hide();
$('#row_ldap_port').hide();
$('#row_ldap_port_ssl').hide();
$('#row_ldap_version').hide();
$('#row_ldap_encryption').hide();
$('#row_ldap_referrals').hide();
$('#row_ldap_mode').hide();
$('#row_ldap_dn').hide();
$('#row_ldap_group_require').hide();
$('#row_ldap_attrib').hide();
$('#row_ldap_member_type').hide();
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
$('#row_cn_header').hide();
$('#row_cn_full_name').hide();
$('#row_cn_email').hide();
$('#row_secpass_header').hide();
$('#row_secpass_minlen').hide();
$('#row_secpass_reqmixcase').hide();
$('#row_secpass_reqnum').hide();
$('#row_secpass_reqspec').hide();
$('#row_secpass_forceold').hide();
$('#row_secpass_expireaccount').hide();
$('#row_secpass_expirepass').hide();
$('#row_secpass_history').hide();
$('#row_secpass_lock_header').hide();
$('#row_secpass_lockfailed').hide();
$('#row_secpass_unlocktime').hide();
break;
case "4": // Multiple Domains
$('#row_special_users_header').show();
$('#row_auth_cache_enabled').show();
$('#row_guest_user').show();
$('#row_user_template').hide();
$('#row_ldap_general_header').hide();
$('#row_ldap_server').hide();
$('#row_ldap_port').hide();
$('#row_ldap_port_ssl').hide();
$('#row_ldap_version').hide();
$('#row_ldap_encryption').hide();
$('#row_ldap_referrals').hide();
$('#row_ldap_mode').hide();
$('#row_ldap_dn').hide();
$('#row_ldap_group_require').hide();
$('#row_ldap_attrib').hide();
$('#row_ldap_member_type').hide();
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
$('#row_cn_header').hide();
$('#row_cn_full_name').hide();
$('#row_cn_email').hide();
$('#row_secpass_header').show();
$('#row_secpass_minlen').show();
$('#row_secpass_reqmixcase').show();
$('#row_secpass_reqnum').show();
$('#row_secpass_reqspec').show();
$('#row_secpass_forceold').show();
$('#row_secpass_expireaccount').show();
$('#row_secpass_expirepass').show();
$('#row_secpass_history').show();
$('#row_secpass_lock_header').show();
$('#row_secpass_lockfailed').show();
$('#row_secpass_unlocktime').show();
break;
case "3": // Single Domain
$('#row_special_users_header').show();
$('#row_auth_cache_enabled').show();
$('#row_guest_user').show();
$('#row_user_template').show();
$('#row_ldap_general_header').show();
$('#row_ldap_server').show();
$('#row_ldap_port').show();
$('#row_ldap_port_ssl').show();
$('#row_ldap_version').show();
$('#row_ldap_encryption').show();
$('#row_ldap_referrals').show();
$('#row_ldap_mode').show();
$('#row_ldap_dn').show();
$('#row_ldap_group_require').show();
$('#row_ldap_attrib').show();
$('#row_ldap_member_type').show();
$('#row_ldap_group_header').show();
$('#row_ldap_group_dn').show();
$('#row_ldap_group_attrib').show();
$('#row_ldap_group_member_type').show();
$('#row_ldap_search_base_header').show();
$('#row_ldap_search_base').show();
$('#row_ldap_search_filter').show();
$('#row_ldap_specific_dn').show();
$('#row_ldap_specific_password').show();
$('#row_cn_header').show();
$('#row_cn_full_name').show();
$('#row_cn_email').show();
$('#row_secpass_header').show();
$('#row_secpass_minlen').show();
$('#row_secpass_reqmixcase').show();
$('#row_secpass_reqnum').show();
$('#row_secpass_reqspec').show();
$('#row_secpass_forceold').show();
$('#row_secpass_expireaccount').show();
$('#row_secpass_expirepass').show();
$('#row_secpass_history').show();
$('#row_secpass_lock_header').show();
$('#row_secpass_lockfailed').show();
$('#row_secpass_unlocktime').show();
initSearch();
initGroupMember();
break;
default:
$('#row_special_users_header').show();
$('#row_auth_cache_enabled').show();
$('#row_guest_user').show();
$('#row_user_template').show();
$('#row_ldap_general_header').hide();
$('#row_ldap_server').hide();
$('#row_ldap_port').hide();
$('#row_ldap_port_ssl').hide();
$('#row_ldap_version').hide();
$('#row_ldap_encryption').hide();
$('#row_ldap_referrals').hide();
$('#row_ldap_mode').hide();
$('#row_ldap_dn').hide();
$('#row_ldap_group_require').hide();
$('#row_ldap_attrib').hide();
$('#row_ldap_member_type').hide();
$('#row_ldap_group_header').hide();
$('#row_ldap_group_dn').hide();
$('#row_ldap_group_attrib').hide();
$('#row_ldap_group_member_type').hide();
$('#row_ldap_search_base_header').hide();
$('#row_ldap_search_base').hide();
$('#row_ldap_search_filter').hide();
$('#row_ldap_specific_dn').hide();
$('#row_ldap_specific_password').hide();
$('#row_cn_header').hide();
$('#row_cn_full_name').hide();
$('#row_cn_email').hide();
$('#row_secpass_header').show();
$('#row_secpass_minlen').show();
$('#row_secpass_reqmixcase').show();
$('#row_secpass_reqnum').show();
$('#row_secpass_reqspec').show();
$('#row_secpass_forceold').show();
$('#row_secpass_expireaccount').show();
$('#row_secpass_expirepass').show();
$('#row_secpass_history').show();
$('#row_secpass_lock_header').show();
$('#row_secpass_lockfailed').show();
$('#row_secpass_unlocktime').show();
break;
}
}

function initAvail() {
switch($('#availability_method').val()) {
case "0":
$('#row_ping_method').hide();
$('#row_ping_port').hide();
$('#row_ping_timeout').hide();
$('#row_ping_retries').hide();
break;
case "1":
case "4":
$('#row_ping_method').show();
$('#row_ping_port').show();
$('#row_ping_timeout').show();
$('#row_ping_retries').show();
break;
case "3":
$('#row_ping_method').show();
$('#row_ping_port').show();
$('#row_ping_timeout').show();
$('#row_ping_retries').show();
break;
case "2":
case "5":
case "6":
$('#row_ping_method').hide();
$('#row_ping_port').hide();
$('#row_ping_timeout').show();
$('#row_ping_retries').show();
break;
}
}

</script>
<script type='text/javascript'>
var cactiVersion='1.2.1';
var cactiServerOS='unix';
var theme='modern';
var refreshIsLogout=false;
var refreshPage='index.php';
var refreshMSeconds=99999999000;
var urlPath='/cacti/';
var previousPage='';
var sessionMessage=[];
var csrfMagicToken='sid:bcdb8cdfa9e8a2fa1e94adde0e56d1c2c41b23fc,1550233778';
</script>

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 8:42 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2499
i'm more interested in what you get when you hit the save button.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't save change in console->settings->poller
PostPosted: Fri Feb 15, 2019 8:55 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 323
Nothing

And it happen only on this value (cron interval), I can change any other field and ti works, but cron interval not at all
But can't group 2 change, that include cron interval, it won't work.

For other field, I get a post, than a get with the screen telling me everything was saved correctly

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2.1
Spine 1.2.1
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group