diff options
Diffstat (limited to '')
| -rw-r--r-- | plugin/load.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/plugin/load.php b/plugin/load.php index 523f14c..44baf45 100644 --- a/plugin/load.php +++ b/plugin/load.php | |||
| @@ -9,15 +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; | 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('shortterm', 'midterm', 'longterm'); | 13 | $obj->data_sources = array('shortterm', 'midterm', 'longterm'); |
| 22 | $obj->ds_names = array( | 14 | $obj->ds_names = array( |
| 23 | 'shortterm' => ' 1 min', | 15 | 'shortterm' => ' 1 min', |
| @@ -31,13 +23,11 @@ $obj->colors = array( | |||
| 31 | ); | 23 | ); |
| 32 | $obj->width = $width; | 24 | $obj->width = $width; |
| 33 | $obj->heigth = $heigth; | 25 | $obj->heigth = $heigth; |
| 34 | $obj->seconds = $seconds; | ||
| 35 | $obj->rrd_title = 'System load'; | 26 | $obj->rrd_title = 'System load'; |
| 36 | $obj->rrd_vertical = 'System load'; | 27 | $obj->rrd_vertical = 'System load'; |
| 37 | $obj->rrd_format = '%.2lf'; | 28 | $obj->rrd_format = '%.2lf'; |
| 38 | 29 | ||
| 39 | collectd_flush(ident_from_args($obj->args)); | 30 | collectd_flush($obj->identifiers); |
| 40 | |||
| 41 | $obj->rrd_graph(); | 31 | $obj->rrd_graph(); |
| 42 | 32 | ||
| 43 | ?> | 33 | ?> |
