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

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

val=lp.SetGObjectInterval('GObjectName',interval)

Description

Set the time interval at which the Global Object LUA function must be executed. This is the minimum interval time, the real time is dependant from the availability of the audit process managing this group.

Parameters

GObjectName - the name of the Global Object

interval - time in seconds or in milliseconds depending of the time interval type set with lp.SetGObjectIntervalType

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

lp.SetGObjectIntervalType('SERVER_1',0)
val=lp.SetGObjectInterval('SERVER_1',10)
if val == 1 then
lp.Trace("Execution interval set successful\n")
else
lp.Trace("Execution interval set unsuccessful\n")
end

 


www.loriotpro.com