addDataset('requests', 'GAUGE', 0); $fields = array( 'requests' => $requests, ); $tags = compact('rrd_def'); data_update($device, 'atswatts', $tags, $fields); $graphs['atswatts'] = true; }