aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/cpu.php
diff options
context:
space:
mode:
authorPim van den Berg2009-11-04 21:05:37 +0100
committerPim van den Berg2009-11-04 21:05:37 +0100
commitaa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e (patch)
tree82b5e617ead0c3b50bbb0fb296f280be0b90a61e /plugin/cpu.php
parentmake dynamic title more detailed (diff)
downloadapt-panopticon_cgp-aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e.zip
apt-panopticon_cgp-aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e.tar.gz
apt-panopticon_cgp-aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e.tar.bz2
apt-panopticon_cgp-aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e.tar.xz
remove path_format from plugins
The relative path to an rrd file can be generated based on host, plugin, plugin instance, type and type instance. In this case path_format is not needed anymore. This commit includes code based on the collectd_identifier function from php-collection by Bruno Prémont.
Diffstat (limited to 'plugin/cpu.php')
-rw-r--r--plugin/cpu.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/plugin/cpu.php b/plugin/cpu.php
index 04ef3a4..d750a3a 100644
--- a/plugin/cpu.php
+++ b/plugin/cpu.php
@@ -22,7 +22,6 @@ $tinstance = collectd_plugindetail($host, $plugin, 'ti');
22 22
23$obj = new Type_GenericStacked; 23$obj = new Type_GenericStacked;
24$obj->datadir = $CONFIG['datadir']; 24$obj->datadir = $CONFIG['datadir'];
25$obj->path_format = '{host}/{plugin}-{pinstance}/{type}-{tinstance}.rrd';
26$obj->args = array( 25$obj->args = array(
27 'host' => $host, 26 'host' => $host,
28 'plugin' => $plugin, 27 'plugin' => $plugin,