From 705d110ca46c61c8577b39def0525ad5036225ed Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sun, 15 Nov 2009 11:38:27 +0100 Subject: temporary disable swap_io --- plugin/swap.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'; # swap/swap-free.rrd # swap/swap-used.rrd +if ($type == 'swap_io') { + die_img('Error: swap_io not supported yet'); + exit; +} + # grouped require_once 'inc/collectd.inc.php'; -$tinstance = collectd_plugindetail($host, $plugin, 'ti'); +$tinstance = collectd_plugindetail($host, $plugin, 'ti', array('t' => $type)); $obj = new Type_GenericStacked; $obj->datadir = $CONFIG['datadir']; -- cgit v1.1