diff options
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r-- | inc/collectd.inc.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 1df8bb0..c906aaf 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
@@ -119,7 +119,10 @@ function group_plugindata($plugindata) { | |||
119 | foreach ($plugindata as $item) { | 119 | foreach ($plugindata as $item) { |
120 | # backwards compatibility | 120 | # backwards compatibility |
121 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) | 121 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) |
122 | if($item['p'] != 'libvirt') | 122 | if ( |
123 | $item['p'] != 'libvirt' && | ||
124 | ($item['p'] != 'snmp' && $item['t'] == 'if_octets') | ||
125 | ) | ||
123 | unset($item['ti']); | 126 | unset($item['ti']); |
124 | $data[] = $item; | 127 | $data[] = $item; |
125 | } | 128 | } |