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.SendEvent - Send an event message locally

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.


result = lp.SendEvent(eventnumber,level,ipref,ipmask,buffer);


The lp.SendEvent LUA function sends an event message to the local LoriotPro event manager. The event is displayed in the event window.

Refers to Loriotpro Administrator Handbook


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.




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 (

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

buffer - The message text description of the event.

Return Values

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


lp_value = 0;
lp_buffer ="error";
lp.SendEvent( 1000,5,"","","test send event");