aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/plugin/disk.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/disk.php')
-rw-r--r--plugin/disk.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/plugin/disk.php b/plugin/disk.php
deleted file mode 100644
index 28f5eac..0000000
--- a/plugin/disk.php
+++ /dev/null
@@ -1,49 +0,0 @@
1<?php
2
3# Collectd Disk plugin
4
5require_once 'conf/common.inc.php';
6require_once 'type/GenericIO.class.php';
7
8## LAYOUT
9# disk-XXXX/
10# disk-XXXX/disk_merged.rrd
11# disk-XXXX/disk_octets.rrd
12# disk-XXXX/disk_ops.rrd
13# disk-XXXX/disk_time.rrd
14
15$obj = new Type_GenericIO($CONFIG, $_GET);
16$obj->data_sources = array('read', 'write');
17$obj->legend = array(
18 'read' => 'Read',
19 'write' => 'Written',
20);
21$obj->colors = array(
22 'read' => '0000ff',
23 'write' => '00b000',
24);
25switch($obj->args['type']) {
26 case 'disk_merged':
27 $obj->rrd_title = sprintf('Disk Merged Operations (%s)', $obj->args['pinstance']);
28 $obj->rrd_vertical = 'Merged operations/s';
29 $obj->rrd_format = '%5.1lf%s';
30 break;
31 case 'disk_octets':
32 $obj->rrd_title = sprintf('Disk Traffic (%s)', $obj->args['pinstance']);
33 $obj->rrd_vertical = 'Bytes per second';
34 $obj->rrd_format = '%5.1lf%s';
35 break;
36 case 'disk_ops':
37 $obj->rrd_title = sprintf('Disk Operations (%s)', $obj->args['pinstance']);
38 $obj->rrd_vertical = 'Ops per second';
39 $obj->rrd_format = '%5.1lf%s';
40 break;
41 case 'disk_time':
42 $obj->rrd_title = sprintf('Disk time per operation (%s)', $obj->args['pinstance']);
43 $obj->rrd_vertical = 'Avg. Time/Op';
44 $obj->rrd_format = '%5.1lf%ss';
45 $obj->scale = '0.001';
46 break;
47}
48
49$obj->rrd_graph();