LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.SendExternEvent - Send an event message to a LoriotPro manager

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

result=lp.SendExternEvent(ipdest,port,eventnumber,level,ipref,ipmask,buffer);

Description

The lp.SendExternEvent LUA function sends an event message to a remote LoriotPro event manager. The event is displayed in the event window of the remote LoriotPro.

Parameterss

ipdest - The IP address of the remote LoriotPro

port - The Event manager server portof the remote LoriotPro. This port is defined in the loriotpro.ini file and the lalarm.ini file.

Eventnumber - The event number. The event number should be declared in the list of events if you want to use it and filter it. Events can be registered from the LoriotPro main menu option Configure -> register new event number.

Level - The level of the event, that can be used to define the severity.

Icons

Functions

Remark

Message of level 0

low severity

Message of level 1

 

Message of level 2

 

Message of level 3

 

Message of level 4

 

Message of level 5

 

Message of level 6

 

Message of level 7

 

Message of level 8

very high severity

ipref - The IP address source of the event or a wilcard (0.0.0.0)

ipmask - The IP mask of the IP address or of a network (example : 10.0.0.0 255.0.0.0)

buffer - The message text description of the event.

Return Values

result =1 If the event is sent or nil if error

Example


lp_value = 0;
lp_buffer ="error";
lp.SendExternEvent( "127.0.0.1",5001,7000,2,"127.0.0.1","255.255.255.255","test send event");



www.loriotpro.com