diff options
Diffstat (limited to 'plugin/irq.php')
-rw-r--r-- | plugin/irq.php | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/plugin/irq.php b/plugin/irq.php index d6b1e72..ba0e7cb 100644 --- a/plugin/irq.php +++ b/plugin/irq.php | |||
@@ -4,38 +4,21 @@ | |||
4 | 4 | ||
5 | require_once 'conf/common.inc.php'; | 5 | require_once 'conf/common.inc.php'; |
6 | require_once 'type/GenericStacked.class.php'; | 6 | require_once 'type/GenericStacked.class.php'; |
7 | require_once 'inc/collectd.inc.php'; | ||
7 | 8 | ||
8 | ## LAYOUT | 9 | ## LAYOUT |
9 | # irq/ | 10 | # irq/ |
10 | # irq/irq-XX.rrd | 11 | # irq/irq-XX.rrd |
11 | 12 | ||
12 | # grouped | 13 | $obj = new Type_GenericStacked($CONFIG['datadir']); |
13 | require_once 'inc/collectd.inc.php'; | ||
14 | $tinstance = collectd_plugindetail($host, $plugin, 'ti'); | ||
15 | sort($tinstance); | ||
16 | |||
17 | $obj = new Type_GenericStacked; | ||
18 | $obj->datadir = $CONFIG['datadir']; | ||
19 | $obj->args = array( | ||
20 | 'host' => $host, | ||
21 | 'plugin' => $plugin, | ||
22 | 'pinstance' => $pinstance, | ||
23 | 'type' => $type, | ||
24 | 'tinstance' => $tinstance, | ||
25 | ); | ||
26 | $obj->data_sources = array('value'); | ||
27 | $obj->ds_names = NULL; | ||
28 | $obj->colors = NULL; | ||
29 | $obj->width = $width; | 14 | $obj->width = $width; |
30 | $obj->heigth = $heigth; | 15 | $obj->heigth = $heigth; |
31 | $obj->seconds = $seconds; | ||
32 | 16 | ||
33 | $obj->rrd_title = 'Interrupts'; | 17 | $obj->rrd_title = 'Interrupts'; |
34 | $obj->rrd_vertical = 'IRQs/s'; | 18 | $obj->rrd_vertical = 'IRQs/s'; |
35 | $obj->rrd_format = '%6.1lf'; | 19 | $obj->rrd_format = '%6.1lf'; |
36 | 20 | ||
37 | collectd_flush(ident_from_args($obj->args)); | 21 | collectd_flush($obj->identifiers); |
38 | |||
39 | $obj->rrd_graph(); | 22 | $obj->rrd_graph(); |
40 | 23 | ||
41 | ?> | 24 | ?> |