aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/collectd.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/collectd.inc.php')
-rw-r--r--inc/collectd.inc.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php
index 201d8ce..1efd682 100644
--- a/inc/collectd.inc.php
+++ b/inc/collectd.inc.php
@@ -142,10 +142,11 @@ function group_plugindata($plugindata) {
142 foreach ($plugindata as $item) { 142 foreach ($plugindata as $item) {
143 # backwards compatibility 143 # backwards compatibility
144 if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) 144 if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p']))
145 if ( 145 if (!(
146 $item['p'] != 'libvirt' && 146 $item['p'] == 'libvirt'
147 ($item['p'] != 'snmp' && $item['t'] != 'if_octets') 147 || ($item['p'] == 'snmp' && $item['t'] == 'if_octets')
148 ) 148 || ($item['p'] == 'vmem' && $item['t'] == 'vmpage_io')
149 ))
149 unset($item['ti']); 150 unset($item['ti']);
150 $data[] = $item; 151 $data[] = $item;
151 } 152 }