aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/cpu.php2
-rw-r--r--plugin/df.php2
-rw-r--r--plugin/disk.php2
-rw-r--r--plugin/entropy.php2
-rw-r--r--plugin/interface.php2
-rw-r--r--plugin/irq.php2
-rw-r--r--plugin/load.php2
-rw-r--r--plugin/memory.php2
-rw-r--r--plugin/processes.php2
-rw-r--r--plugin/sensors.php2
-rw-r--r--plugin/swap.php4
-rw-r--r--plugin/users.php2
12 files changed, 13 insertions, 13 deletions
diff --git a/plugin/cpu.php b/plugin/cpu.php
index d4097b0..081427f 100644
--- a/plugin/cpu.php
+++ b/plugin/cpu.php
@@ -17,7 +17,7 @@ require_once 'inc/collectd.inc.php';
17# cpu-X/cpu-user.rrd 17# cpu-X/cpu-user.rrd
18# cpu-X/cpu-wait.rrd 18# cpu-X/cpu-wait.rrd
19 19
20$obj = new Type_GenericStacked($CONFIG['datadir']); 20$obj = new Type_GenericStacked($CONFIG);
21$obj->data_sources = array('value'); 21$obj->data_sources = array('value');
22$obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal'); 22$obj->order = array('idle', 'nice', 'user', 'wait', 'system', 'softirq', 'interrupt', 'steal');
23$obj->ds_names = array( 23$obj->ds_names = array(
diff --git a/plugin/df.php b/plugin/df.php
index 79c5cb5..b3bba84 100644
--- a/plugin/df.php
+++ b/plugin/df.php
@@ -11,7 +11,7 @@ require_once 'inc/collectd.inc.php';
11# df/ 11# df/
12# df/df-XXXX.rrd 12# df/df-XXXX.rrd
13 13
14$obj = new Type_GenericStacked($CONFIG['datadir']); 14$obj = new Type_GenericStacked($CONFIG);
15$obj->data_sources = array('free', 'used'); 15$obj->data_sources = array('free', 'used');
16$obj->ds_names = array( 16$obj->ds_names = array(
17 'free' => 'Free', 17 'free' => 'Free',
diff --git a/plugin/disk.php b/plugin/disk.php
index f1100d6..0f7a11a 100644
--- a/plugin/disk.php
+++ b/plugin/disk.php
@@ -13,7 +13,7 @@ require_once 'inc/collectd.inc.php';
13# disk-XXXX/disk_ops.rrd 13# disk-XXXX/disk_ops.rrd
14# disk-XXXX/disk_time.rrd 14# disk-XXXX/disk_time.rrd
15 15
16$obj = new Type_GenericIO($CONFIG['datadir']); 16$obj = new Type_GenericIO($CONFIG);
17$obj->data_sources = array('read', 'write'); 17$obj->data_sources = array('read', 'write');
18$obj->ds_names = array( 18$obj->ds_names = array(
19 'read' => 'Read ', 19 'read' => 'Read ',
diff --git a/plugin/entropy.php b/plugin/entropy.php
index 8705894..3583550 100644
--- a/plugin/entropy.php
+++ b/plugin/entropy.php
@@ -9,7 +9,7 @@ require_once 'inc/collectd.inc.php';
9## LAYOUT 9## LAYOUT
10# entropy/entropy.rrd 10# entropy/entropy.rrd
11 11
12$obj = new Type_Default($CONFIG['datadir']); 12$obj = new Type_Default($CONFIG);
13$obj->data_sources = array('entropy'); 13$obj->data_sources = array('entropy');
14$obj->ds_names = array( 14$obj->ds_names = array(
15 'entropy' => 'Entropy bits', 15 'entropy' => 'Entropy bits',
diff --git a/plugin/interface.php b/plugin/interface.php
index 89e4280..833de38 100644
--- a/plugin/interface.php
+++ b/plugin/interface.php
@@ -12,7 +12,7 @@ require_once 'inc/collectd.inc.php';
12# interface/if_octets-XXXX.rrd 12# interface/if_octets-XXXX.rrd
13# interface/if_packets-XXXX.rrd 13# interface/if_packets-XXXX.rrd
14 14
15$obj = new Type_GenericIO($CONFIG['datadir']); 15$obj = new Type_GenericIO($CONFIG);
16$obj->data_sources = array('rx', 'tx'); 16$obj->data_sources = array('rx', 'tx');
17$obj->ds_names = array( 17$obj->ds_names = array(
18 'rx' => 'Receive ', 18 'rx' => 'Receive ',
diff --git a/plugin/irq.php b/plugin/irq.php
index ba0e7cb..10c6393 100644
--- a/plugin/irq.php
+++ b/plugin/irq.php
@@ -10,7 +10,7 @@ require_once 'inc/collectd.inc.php';
10# irq/ 10# irq/
11# irq/irq-XX.rrd 11# irq/irq-XX.rrd
12 12
13$obj = new Type_GenericStacked($CONFIG['datadir']); 13$obj = new Type_GenericStacked($CONFIG);
14$obj->width = $width; 14$obj->width = $width;
15$obj->heigth = $heigth; 15$obj->heigth = $heigth;
16 16
diff --git a/plugin/load.php b/plugin/load.php
index 44baf45..b33739e 100644
--- a/plugin/load.php
+++ b/plugin/load.php
@@ -9,7 +9,7 @@ require_once 'inc/collectd.inc.php';
9## LAYOUT 9## LAYOUT
10# load/load.rrd 10# load/load.rrd
11 11
12$obj = new Type_Default($CONFIG['datadir']); 12$obj = new Type_Default($CONFIG);
13$obj->data_sources = array('shortterm', 'midterm', 'longterm'); 13$obj->data_sources = array('shortterm', 'midterm', 'longterm');
14$obj->ds_names = array( 14$obj->ds_names = array(
15 'shortterm' => ' 1 min', 15 'shortterm' => ' 1 min',
diff --git a/plugin/memory.php b/plugin/memory.php
index ade242c..48a3048 100644
--- a/plugin/memory.php
+++ b/plugin/memory.php
@@ -13,7 +13,7 @@ require_once 'inc/collectd.inc.php';
13# memory/memory-free.rrd 13# memory/memory-free.rrd
14# memory/memory-used.rrd 14# memory/memory-used.rrd
15 15
16$obj = new Type_GenericStacked($CONFIG['datadir']); 16$obj = new Type_GenericStacked($CONFIG);
17$obj->order = array('free', 'buffered', 'cached', 'used'); 17$obj->order = array('free', 'buffered', 'cached', 'used');
18$obj->ds_names = array( 18$obj->ds_names = array(
19 'free' => 'Free ', 19 'free' => 'Free ',
diff --git a/plugin/processes.php b/plugin/processes.php
index 1487568..a560b13 100644
--- a/plugin/processes.php
+++ b/plugin/processes.php
@@ -15,7 +15,7 @@ require_once 'inc/collectd.inc.php';
15# processes/ps_state-running.rrd 15# processes/ps_state-running.rrd
16# processes/ps_state-sleeping.rrd 16# processes/ps_state-sleeping.rrd
17 17
18$obj = new Type_GenericStacked($CONFIG['datadir']); 18$obj = new Type_GenericStacked($CONFIG);
19$obj->ds_names = array( 19$obj->ds_names = array(
20 'paging' => 'Paging ', 20 'paging' => 'Paging ',
21 'blocked' => 'Blocked ', 21 'blocked' => 'Blocked ',
diff --git a/plugin/sensors.php b/plugin/sensors.php
index fda5432..29110f1 100644
--- a/plugin/sensors.php
+++ b/plugin/sensors.php
@@ -12,7 +12,7 @@ require_once 'inc/collectd.inc.php';
12# disk-XXXX/temerature-XXXX.rrd 12# disk-XXXX/temerature-XXXX.rrd
13# disk-XXXX/voltage-XXXX.rrd 13# disk-XXXX/voltage-XXXX.rrd
14 14
15$obj = new Type_Default($CONFIG['datadir']); 15$obj = new Type_Default($CONFIG);
16$obj->ds_names = array( 16$obj->ds_names = array(
17 'value' => 'Value ', 17 'value' => 'Value ',
18); 18);
diff --git a/plugin/swap.php b/plugin/swap.php
index 27bf7f9..e1fa3f6 100644
--- a/plugin/swap.php
+++ b/plugin/swap.php
@@ -14,7 +14,7 @@ require_once 'inc/collectd.inc.php';
14switch($_GET['t']) { 14switch($_GET['t']) {
15 case 'swap': 15 case 'swap':
16 require_once 'type/GenericStacked.class.php'; 16 require_once 'type/GenericStacked.class.php';
17 $obj = new Type_GenericStacked($CONFIG['datadir']); 17 $obj = new Type_GenericStacked($CONFIG);
18 $obj->order = array('free', 'cached', 'used'); 18 $obj->order = array('free', 'cached', 'used');
19 $obj->ds_names = array( 19 $obj->ds_names = array(
20 'free' => 'Free ', 20 'free' => 'Free ',
@@ -31,7 +31,7 @@ switch($_GET['t']) {
31 break; 31 break;
32 case 'swap_io': 32 case 'swap_io':
33 require_once 'type/GenericIO.class.php'; 33 require_once 'type/GenericIO.class.php';
34 $obj = new Type_GenericIO($CONFIG['datadir']); 34 $obj = new Type_GenericIO($CONFIG);
35 $obj->order = array('out', 'in'); 35 $obj->order = array('out', 'in');
36 $obj->ds_names = array( 36 $obj->ds_names = array(
37 'out' => 'Out', 37 'out' => 'Out',
diff --git a/plugin/users.php b/plugin/users.php
index d94a8c1..5df16bc 100644
--- a/plugin/users.php
+++ b/plugin/users.php
@@ -9,7 +9,7 @@ require_once 'inc/collectd.inc.php';
9## LAYOUT 9## LAYOUT
10# users/users.rrd 10# users/users.rrd
11 11
12$obj = new Type_Default($CONFIG['datadir']); 12$obj = new Type_Default($CONFIG);
13$obj->data_sources = array('users'); 13$obj->data_sources = array('users');
14$obj->ds_names = array( 14$obj->ds_names = array(
15 'users' => 'Users', 15 'users' => 'Users',