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

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.SetGObjectStatusRef('GObjectName','0/1/2/3/4/x')

Description

Set the ref value of a check. The Check Type can be based on the status of a directory object indentified by its IP address or its UID. The the Check is a test condition before processing the Global Object LUA function

Possible value are :

0 Not polled (purple in the directory)

1 Ping polling successful (Blue in the directory)

2 SNMP polling successful (Green in the directory)

3 Ping or SNMP polling temporary unsuccessful (Yellow in the directory)

4 Ping or SNMP polling successful (Red in the directory)

x Custom

Parameters

GObjectName - the name of the Global Object

0/1 - the Check reference

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

lp.SetGObjectStatusRef('SERVER_1',1)

 


www.loriotpro.com