From 032c76b85e33289d2d7cd64f9419ca97cf80e55c Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 14 Dec 2014 16:56:53 +0100 Subject: inc/collectd: vmem/vmpage_io should be split to multiple graphs per type instance Closes #113 --- inc/collectd.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'inc/collectd.inc.php') 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) { foreach ($plugindata as $item) { # backwards compatibility if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) - if ( - $item['p'] != 'libvirt' && - ($item['p'] != 'snmp' && $item['t'] != 'if_octets') - ) + if (!( + $item['p'] == 'libvirt' + || ($item['p'] == 'snmp' && $item['t'] == 'if_octets') + || ($item['p'] == 'vmem' && $item['t'] == 'vmpage_io') + )) unset($item['ti']); $data[] = $item; } -- cgit v1.1