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/sensors.php | 1 - 1 file changed, 1 deletion(-) (limited to 'plugin/sensors.php') diff --git a/plugin/sensors.php b/plugin/sensors.php index c7f038b..b1b15cf 100644 --- a/plugin/sensors.php +++ b/plugin/sensors.php @@ -17,7 +17,6 @@ $tinstance = collectd_plugindetail($host, $plugin, 'ti', array('t' => $type)); $obj = new Type_Default; $obj->datadir = $CONFIG['datadir']; -$obj->path_format = '{host}/{plugin}-{pinstance}/{type}-{tinstance}.rrd'; $obj->args = array( 'host' => $host, 'plugin' => $plugin, -- cgit v1.1