From aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 4 Nov 2009 21:05:37 +0100 Subject: 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. --- plugin/cpu.php | 1 - 1 file changed, 1 deletion(-) (limited to 'plugin/cpu.php') 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'); $obj = new Type_GenericStacked; $obj->datadir = $CONFIG['datadir']; -$obj->path_format = '{host}/{plugin}-{pinstance}/{type}-{tinstance}.rrd'; $obj->args = array( 'host' => $host, 'plugin' => $plugin, -- cgit v1.1