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

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.GetADVGraphValues("Audit_UID","array");

Description

Retrieve in a LUA table the last 100 values returned by an Audit Plugin

Parameters

Audit_UID : The UID of a Directory audit plugin

array : The array name

Return Values

value : 1 if succeeded

array : The value retruned by the audit

Return nil if an error occurs

Example

lp.GetADVGraphValues("5947972463018115105","aa");
if val then
for key,value in ipairs(aa) do
lp.Print(key,'=',value,'\n')
end
end

 

Example of return:

1=2.567
2=2.554
3=2.56
4=2.562
5=2.5640000000001
6=0
7=0
8=0
9=0
10=0
11=0
12=0

..


www.loriotpro.com