$dhcp_total, 'dhcp_active' => $dhcp_active, 'dhcp_expired' => $dhcp_expired, 'dhcp_released' => $dhcp_released, 'dhcp_abandoned' => $dhcp_abandoned, 'dhcp_reset' => $dhcp_reset, 'dhcp_bootp' => $dhcp_bootp, 'dhcp_backup' => $dhcp_backup, 'dhcp_free' => $dhcp_free, ); $tags = array('name' => $name, 'app_id' => $app_id, 'rrd_def' => $rrd_def, 'rrd_name' => $rrd_name); data_update($device, 'app', $tags, $fields);