HP Operations Manager for Windows

opcagtmon_send()


   #include opcapi.h

   int opcagtmon_send (
                 opcdata     mon_msg     /* in */
                     );

Parameters

mon_msg
Monitor message/value of type: OPCDTYPE_MONITOR_MESSAGE.

Description

Use the function opcagtmon_send() to send a monitor value, created on the managed node, to the monitor agent. The mon_msg must be of type OPCDTYPE_MONITOR_MESSAGE.

Only the message attributes Monitor Name, Monitor Value, Object and Option String are used in opcagtmon_send().

Return Values

OPC_ERR_OK:
OK

OPC_ERR_INVALID_INPARAM:
mon_msg is NULL
mon_msg is not of type OPCDTYPE_MONITOR_MESSAGE

OPC_ERR_OBJNAME_REQUIRED:
attribute OPCDATA_MON_VAR not set

OPC_ERR_NO_AGENT:
agent is not running

OPC_ERR_NO_MEMORY:
out of memory

OPC_ERR_WRONG_OPTION_VARS:
attribute OPCDATA_OPTION_VAR not set correctly

Versions

HPOM for Windows A.06.00 and later

See Also

opcmon()

OPCDTYPE_MONITOR_MESSAGE