NAME
netmgt_send_report - send a data or event report
SYNOPSIS
bool_t
netmgt_send_report(delta_time, status, flags) struct timeval delta_time;
INPUT ARGUMENTS
delta_time
relative timestamp of the report. A manager process can use the value of delta_time to check the continuity of the agent reports. For each report, if the value of this field is less than the value in the previous report, the manager will know something happened to reset the agent or the managed device. There is no hard and fast rule about what value should be here. One recommendation is that agents return the difference between the current time and some agent defined starting time. Some agents might return the amount of time since the managed system has been initialized. Whatever the agent returns should be documented, so that users can interpret the results correctly.
Don't put an absolute timestamp here, as it would not be useful.
status
status code NETMGT_SUCCESS or NETMGT_WARNING. Use NETMGT_WARNING when a non-fatal error occurred while collecting the statistics. If NETMGT_WARNING is specified, the caller must have previously sent an error report with netmgt_send_error(3n).
flags
report flag. Use NETMGT_LAST if no more reports will be sent to the rendezvous process from this agent; otherwise, send a NULL.
RETURN VALUE
TRUE if successful, otherwise FALSE.
DIAGNOSTICS
If FALSE is returned, global variable netmgt_error indicates the error. The caller can get the reason for the error with netmgt_fetch_error(3n).