aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/swap.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/swap.php b/plugin/swap.php
index 18c6242..8173890 100644
--- a/plugin/swap.php
+++ b/plugin/swap.php
@@ -11,9 +11,14 @@ require_once 'type/GenericStacked.class.php';
11# swap/swap-free.rrd 11# swap/swap-free.rrd
12# swap/swap-used.rrd 12# swap/swap-used.rrd
13 13
14if ($type == 'swap_io') {
15 die_img('Error: swap_io not supported yet');
16 exit;
17}
18
14# grouped 19# grouped
15require_once 'inc/collectd.inc.php'; 20require_once 'inc/collectd.inc.php';
16$tinstance = collectd_plugindetail($host, $plugin, 'ti'); 21$tinstance = collectd_plugindetail($host, $plugin, 'ti', array('t' => $type));
17 22
18$obj = new Type_GenericStacked; 23$obj = new Type_GenericStacked;
19$obj->datadir = $CONFIG['datadir']; 24$obj->datadir = $CONFIG['datadir'];