diff options
author | Pim van den Berg | 2011-07-04 21:07:22 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-07-04 21:12:48 +0200 |
commit | f0db176e8c1e90bcce8da408648917d3e8243386 (patch) | |
tree | 8febb0056edf4e4975e8c45e61d85d2150de21b9 /inc | |
parent | plugin: add libvirt plugin (diff) | |
download | apt-panopticon_cgp-f0db176e8c1e90bcce8da408648917d3e8243386.zip apt-panopticon_cgp-f0db176e8c1e90bcce8da408648917d3e8243386.tar.gz apt-panopticon_cgp-f0db176e8c1e90bcce8da408648917d3e8243386.tar.bz2 apt-panopticon_cgp-f0db176e8c1e90bcce8da408648917d3e8243386.tar.xz |
plugin/libvirt: collectd 5 compatibility
Diffstat (limited to '')
-rw-r--r-- | inc/collectd.inc.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/collectd.inc.php b/inc/collectd.inc.php index 51aedba..11dc91f 100644 --- a/inc/collectd.inc.php +++ b/inc/collectd.inc.php | |||
@@ -107,8 +107,9 @@ function group_plugindata($plugindata) { | |||
107 | # type instances should be grouped in 1 graph | 107 | # type instances should be grouped in 1 graph |
108 | foreach ($plugindata as $item) { | 108 | foreach ($plugindata as $item) { |
109 | # backwards compatibility | 109 | # backwards compatibility |
110 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface|libvirt)$/', $item['p'])) | 110 | if ($CONFIG['version'] >= 5 || !preg_match('/^(df|interface)$/', $item['p'])) |
111 | unset($item['ti']); | 111 | if($item['p'] != 'libvirt') |
112 | unset($item['ti']); | ||
112 | $data[] = $item; | 113 | $data[] = $item; |
113 | } | 114 | } |
114 | 115 | ||