diff options
Diffstat (limited to 'plugin/entropy.php')
-rw-r--r-- | plugin/entropy.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugin/entropy.php b/plugin/entropy.php index 6ee96aa..8705894 100644 --- a/plugin/entropy.php +++ b/plugin/entropy.php | |||
@@ -9,15 +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; | 12 | $obj = new Type_Default($CONFIG['datadir']); |
13 | $obj->datadir = $CONFIG['datadir']; | ||
14 | $obj->args = array( | ||
15 | 'host' => $host, | ||
16 | 'plugin' => $plugin, | ||
17 | 'pinstance' => $pinstance, | ||
18 | 'type' => $type, | ||
19 | 'tinstance' => $tinstance, | ||
20 | ); | ||
21 | $obj->data_sources = array('entropy'); | 13 | $obj->data_sources = array('entropy'); |
22 | $obj->ds_names = array( | 14 | $obj->ds_names = array( |
23 | 'entropy' => 'Entropy bits', | 15 | 'entropy' => 'Entropy bits', |
@@ -27,13 +19,11 @@ $obj->colors = array( | |||
27 | ); | 19 | ); |
28 | $obj->width = $width; | 20 | $obj->width = $width; |
29 | $obj->heigth = $heigth; | 21 | $obj->heigth = $heigth; |
30 | $obj->seconds = $seconds; | ||
31 | $obj->rrd_title = 'Available entropy'; | 22 | $obj->rrd_title = 'Available entropy'; |
32 | $obj->rrd_vertical = 'Bits'; | 23 | $obj->rrd_vertical = 'Bits'; |
33 | $obj->rrd_format = '%4.0lf'; | 24 | $obj->rrd_format = '%4.0lf'; |
34 | 25 | ||
35 | collectd_flush(ident_from_args($obj->args)); | 26 | collectd_flush($obj->identifiers); |
36 | |||
37 | $obj->rrd_graph(); | 27 | $obj->rrd_graph(); |
38 | 28 | ||
39 | ?> | 29 | ?> |