diff options
author | Pim van den Berg | 2009-11-04 21:05:37 +0100 |
---|---|---|
committer | Pim van den Berg | 2009-11-04 21:05:37 +0100 |
commit | aa454ff4b3d4d5be9d5cc9dff4b4246c6e655f3e (patch) | |
tree | 82b5e617ead0c3b50bbb0fb296f280be0b90a61e /plugin/memory.php | |
parent | make dynamic title more detailed (diff) | |
download | apt-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 '')
-rw-r--r-- | plugin/memory.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugin/memory.php b/plugin/memory.php index 29f93fe..6cef5a7 100644 --- a/plugin/memory.php +++ b/plugin/memory.php | |||
@@ -18,7 +18,6 @@ $tinstance = collectd_plugindetail($host, $plugin, 'ti'); | |||
18 | 18 | ||
19 | $obj = new Type_GenericStacked; | 19 | $obj = new Type_GenericStacked; |
20 | $obj->datadir = $CONFIG['datadir']; | 20 | $obj->datadir = $CONFIG['datadir']; |
21 | $obj->path_format = '{host}/{plugin}/{type}-{tinstance}.rrd'; | ||
22 | $obj->args = array( | 21 | $obj->args = array( |
23 | 'host' => $host, | 22 | 'host' => $host, |
24 | 'plugin' => $plugin, | 23 | 'plugin' => $plugin, |