mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Merge pull request #2458 from laf/rrdtune
Fix for crazy traffic values seen in graphs
This commit is contained in:
@@ -3,23 +3,29 @@
|
||||
echo '
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="icmp" class="col-sm-2 control-label">Disable ICMP Test?</label>
|
||||
<div class="col-sm-10">
|
||||
<label for="icmp" class="col-sm-4 control-label">Disable ICMP Test?</label>
|
||||
<div class="col-sm-8">
|
||||
'.dynamic_override_config('checkbox','override_icmp_disable', $device).'
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="oxidized" class="col-sm-2 control-label">Exclude from Oxidized?</label>
|
||||
<div class="col-sm-10">
|
||||
<label for="oxidized" class="col-sm-4 control-label">Exclude from Oxidized?</label>
|
||||
<div class="col-sm-8">
|
||||
'.dynamic_override_config('checkbox','override_Oxidized_disable', $device).'
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="unixagent" class="col-sm-2 control-label">Unix agent port</label>
|
||||
<div class="col-sm-10">
|
||||
<label for="unixagent" class="col-sm-4 control-label">Unix agent port</label>
|
||||
<div class="col-sm-8">
|
||||
'.dynamic_override_config('text','override_Unixagent_port', $device).'
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="unixagent" class="col-sm-4 control-label">Enable RRD Tune for all ports?</label>
|
||||
<div class="col-sm-8">
|
||||
'.dynamic_override_config('checkbox','override_rrdtool_tune', $device).'
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<input type='hidden' name='ignoreport' value='yes'>
|
||||
<input type='hidden' name='type' value='update-ports'>
|
||||
<input type='hidden' name='device' value='<?php echo $device['device_id'];?>'>
|
||||
<div class='table-responsibe'>
|
||||
<div class='table-responsive'>
|
||||
<table id='edit-ports' class='table table-striped'>
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -15,6 +15,7 @@
|
||||
<th data-column-id='ifOperStatus'>Oper</th>
|
||||
<th data-column-id='disabled' data-sortable='false'>Disable</th>
|
||||
<th data-column-id='ignore' data-sortable='false'>Ignore</th>
|
||||
<th data-column-id='port_tune' data-sortable='false' data-searchable='false'>RRD Tune</th>
|
||||
<th data-column-id='ifAlias'>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -23,6 +24,7 @@
|
||||
</form>
|
||||
<script>
|
||||
|
||||
//$("[name='override_config']").bootstrapSwitch('offColor','danger');
|
||||
$(document).on('blur', "[name='if-alias']", function (){
|
||||
var $this = $(this);
|
||||
var descr = $this.val();
|
||||
@@ -153,5 +155,10 @@
|
||||
};
|
||||
},
|
||||
url: "ajax_table.php"
|
||||
}).on("loaded.rs.jquery.bootgrid", function() {
|
||||
$("[name='override_config']").bootstrapSwitch('offColor','danger');
|
||||
$('input[name="override_config"]').on('switchChange.bootstrapSwitch', function(event, state) {
|
||||
override_config(event,state,$(this));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -34,6 +34,17 @@ $unixagent_conf = array(
|
||||
),
|
||||
);
|
||||
|
||||
$rrdtool_conf = array(
|
||||
array('name' => 'rrdtool',
|
||||
'descr' => 'Path to rrdtool binary',
|
||||
'type' => 'text',
|
||||
),
|
||||
array('name' => 'rrdtool_tune',
|
||||
'descr' => 'Tune all rrd port files to use max values',
|
||||
'type' => 'checkbox',
|
||||
),
|
||||
);
|
||||
|
||||
echo '
|
||||
<div class="panel-group" id="accordion">
|
||||
<form class="form-horizontal" role="form" action="" method="post">
|
||||
@@ -41,6 +52,7 @@ echo '
|
||||
|
||||
echo generate_dynamic_config_panel('Oxidized integration',true,$config_groups,$oxidized_conf);
|
||||
echo generate_dynamic_config_panel('Unix-agent integration',true,$config_groups,$unixagent_conf);
|
||||
echo generate_dynamic_config_panel('RRDTool Setup',true,$config_groups,$rrdtool_conf);
|
||||
|
||||
echo '
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user