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.GetEventInformation

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

 value = lp.GetEventInformation(event_number,’Array’);

Description

The lp.GetEventInformation LUA function retrieves in a table the statistics information of the an event and its filter

Parameters

event_number               The Event number

 ‘Array’                           A table with all the statistics information of the an event and its filter.

Return Values

value : 1 is the command is successfull

'array' the array with indexed parameters 

Return nil if an error occurs

Array index

Description

Array.description

The event description

Array.last 

The timestamp of the last event received

Array.first 

The timestamp of the first event received

Array.first_since 

The timestamp of the first event received since the last global acknowledgment.

Array.number_total 

The total number of events received

Array.number_ack 

The number of evens acknowledged

Array.number_delete 

The number of events cleared

Array.number_auto_delete 

The number of events that was automatically cleared when the listbox is full

Array.number_since_clear 

The number of events received since a global acknowledgment.

Array.number_not_displayed

The number of event not display in the workspace event viewer.

Array.number_displayed 

The total number of events displayed in the workspace event viewer.

Array.max_display

 

The maximum number of event to displkay in the event viwer listbox (-1 equal no limit)

Array.number_between_action

 

Reserved

Array.disable

 

State of the filter 

1 - The filter is enable (actions also)

0 – The filter is disable

 

Example

The file bin/config/events.txt provide a list of all the event registered, you can create your own event from the main menu and option Register New Event Number.

get event information with lua

get event information with lua

 

 


www.loriotpro.com