NAME
netmgt_set_threshold - set the event report threshold for an attribute
SYNOPSIS
bool_t
netmgt_set_threshold(thresh)
Netmgt_thresh *thresh;
DESCRIPTION
netmgt_set_threshold sets the threshold associated with an attribute value. thresh is a pointer to a structure containing threshold information.
INPUT ARGUMENTS
threshold
pointer to a structure with the following fields:
name attribute name.
type attribute (and threshold) type code, as defined in netmgt_arglist.h.
relop
relational operator to be used with the threshold to determine if an event has occurred. If the infix expression
thresh_len
threshold and attribute value length, in bytes. For strings use strlen(thresh_val).
thresh_val
pointer to the threshold value buffer. The value's internal representation is described by type.
prev_val
pointer to the previous attribute value buffer. This field is used only by the Agent Services library; you do not need to set it.
priority
priority level the agent should use when sending an event report. priority can be one of three
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).
FILES
netmgt_arglist.h
SEE ALSO
netmgt_fetch_error(3n)