remote_event_trigger()
Create an event instance for the PATROL Event Manager of a remote PATROL Agent.
Syntax
severity,[argument1,...argument20])
Parameter
Parameter | Definition |
---|---|
sessionID | identifier of the remote PATROL Agent session to which the remote event trigger is directed The sessionID is returned by the remote_open() function when you open a remote PATROL Agent session. |
origin | character string indicating the application instance or class that originated the event |
catalog | character string name of the PATROL catalog to which the event belongs |
class | character string name of the event in the class to which the event belongs |
type | event type as displayed in the PATROL Event Manager*Valid Values* |
severity | integer value indicating the severity of the event Valid Values |
argumentn | optional arguments passed to the PATROL Event Manager and displayed in the event detailed report |
Description
The remote_event_trigger() function creates an event instance that appears in the PATROL Event Manager of a remote PATROL Agent identified by sessionID. The origin of the event instance is origin. The remote_event_trigger() function assumes that the event catalog and class are already defined in the PATROL Event Manager for the remote PATROL Agent. The remote_event_trigger() function returns a 1 for successful execution and a 0 for failure.
The remote_event_trigger() function is different than the event_trigger() function because the remote_event_trigger() function will not print output to the PATROL console. Therefore, when you use the remote_event_trigger() function, it may appear that notification commands are not executing because they do not appear in the console window.
Example
The following is an example of the remote_event_trigger() function:
mysession, # session handle returned by remote_open()
"myorigin", # event origin: myorigin
"STD", # event catalog: STANDARD
"41", # event class: 41
"ALARM", # event type: ALARM
"5", # severity: 5 (most severe)
"myarg" # dynamic argument 1
);