HP Operations Manager for Windows

opcmsg()


   #include opcapi.h

   int opcmsg (
               const int      severity,      /* in */
               const char *   application,   /* in */
               const char *   object,        /* in */
               const char *   msg_text,      /* in */
               const char *   msg_group,     /* in */
               const char *   nodename,      /* in */
              );

Parameters

severity
Severity level of the new message.

The following severities are supported:
OPC_SEV_NORMAL
OPC_SEV_WARNING
OPC_SEV_MINOR
OPC_SEV_MAJOR
OPC_SEV_CRITICAL.

application
Application of the message source.

object
Object of the message source.

msg_text
Message text.

msg_group
Message group.

nodename
Name of the node originating the message.

Description

Use the function opcmsg() to send a message, created on the managed node, to the management server. This function does not return the message ID so that it is not possible to acknowledge the message later, on the managed node.

Return Values

OPC_ERR_OK:
OK

OPC_ERR_APPL_REQUIRED:
The application parameter is not set.

OPC_ERR_OBJ_REQUIRED:
The object parameter is not set.

OPC_ERR_TEXT_REQUIRED:
The msg_text parameter is not set.

OPC_ERR_INVAL_SEVERITY:
The severity parameter value is invalid

OPC_ERR_MISC_NOT_ALLOWED:
message group 'misc' is not allowed

OPC_ERR_NO_MEMORY:
out of memory

Versions

HPOM for Windows A.06.00 and later

See Also

opcagtmsg_ack()

opcagtmsg_send()