datadir = $CONFIG['datadir']; $obj->args = array( 'host' => $host, 'plugin' => $plugin, 'pinstance' => $pinstance, 'type' => $type, 'tinstance' => $tinstance, ); $obj->data_sources = array('entropy'); $obj->ds_names = array( 'entropy' => 'Entropy bits', ); $obj->colors = array( 'entropy' => '0000f0', ); $obj->width = $width; $obj->heigth = $heigth; $obj->seconds = $seconds; $obj->rrd_title = "Available entropy on $host"; $obj->rrd_vertical = 'Bits'; $obj->rrd_format = '%4.0lf'; collectd_flush(ident_from_args($obj->args)); $obj->rrd_graph(); ?>