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

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.SetGObjectSchedule('GObjectName','0/1')

Description

Set the schedule status of a Global Object. A scheduled object has its LUA function executed at regular interval. The object must be in a Group and at least one Audit Process must take care of this group.

Parameters

GObjectName - the name of the Global Object

0/1 - 0 object is not scheduled (LUA function is not executed at regular interval), 1 the object is scheduled

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

lp.SetGObjectSchedule('SERVER_1',1)

 


www.loriotpro.com