mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Some more updates for rrdtool tune
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
# RRDTune?
|
||||
|
||||
When we create rrd files for ports, we currently do so with a max value of 12500000000 (100G). Because of this if a device sends us bad data back then it can appear as though
|
||||
a 100M port is doing 40G+ which is impossible. To counter this you can enable the rrdtool tune option which will fix the max value to the interfaces physical speed (minimum of 10M).
|
||||
|
||||
To enable this you can do so in three ways!
|
||||
|
||||
- Globally under Global Settings -> External Settings -> RRDTool Setup
|
||||
- For the actual device, Edit Device -> Misc
|
||||
- For each port, Edit Device -> Port Settings
|
||||
|
||||
Now when a port interface speed changes (this can happen because of a physical change or just because the device has mis-reported) the max value is set. If you don't want to wait until
|
||||
a port speed changes then you can run the included script:
|
||||
|
||||
script/tune_port.php -h <hostname> -p <ifName>
|
||||
|
||||
Wildcards are supported using *, i.e:
|
||||
|
||||
script/tune_port.php -h local* -p eth*
|
||||
|
||||
This script will then perform the rrdtool tune on each port found using the provided ifSpeed for that port.
|
||||
@@ -12,6 +12,7 @@
|
||||
- [How do I debug the discovery process?](#faq11)
|
||||
- [How do I debug the poller process?](#faq12)
|
||||
- [Why do I get a lot apache or rrdtool zombies in my process list?](#faq14)
|
||||
- [Why do I see traffic spikes in my graphs?](#faq15)
|
||||
|
||||
### Developing
|
||||
- [How do I add support for a new OS?](#faq8)
|
||||
@@ -94,6 +95,13 @@ Please see the [Poller Support](http://docs.librenms.org/Support/Poller Support)
|
||||
If this is related to your web service for LibreNMS then this has been tracked down to an issue within php which the developers aren't fixing. We have implemented a work around which means you
|
||||
shouldn't be seeing this. If you are, please report this in [issue 443](https://github.com/librenms/librenms/issues/443).
|
||||
|
||||
#### <a name="faq15"> Why do I see traffic spikes in my graphs?</a>
|
||||
|
||||
This occurs either when a counter resets or the device sends back bogus data making it look like a counter reset. We have enabled support for setting a maximum value for rrd files for ports.
|
||||
Before this all rrd files were set to 100G max values, now you can enable support to limit this to the actual port speed.
|
||||
|
||||
rrdtool tune will change the max value when the interface speed is detected as being changed (min value will be set for anything 10M or over) or when you run the included script (scripts/tune_port.php).
|
||||
|
||||
#### <a name="faq8"> How do I add support for a new OS?</a>
|
||||
|
||||
The easiest way to show you how to do that is to link to an existing pull request that has been merged in on [GitHub](https://github.com/librenms/librenms/pull/352/files)
|
||||
|
||||
@@ -9,8 +9,8 @@ rrdtool_pipe_open($rrd_process, $rrd_pipes);
|
||||
|
||||
$options = getopt('h:p:');
|
||||
|
||||
$hosts = $options['h'];
|
||||
$ports = $options['p'];
|
||||
$hosts = str_replace('*', '%', mres($options['h']));
|
||||
$ports = str_replace('*', '%', mres($options['p']));
|
||||
|
||||
if (empty($hosts) && empty($ports)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user