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.
value = lp.GraphADVPollingToJpeg('uid','filename.jpeg','title',height,width);
The lp.GraphPollingToJpeg LUA function create a jpeg image file of the graph of the polling response time attached to an audit process.
‘uid’ The UID of the audit process located in the directory
'filename.jpg' The path and name of the destination jpeg file.
Title The title of the graph
height The height of the generated image
width The width of the generated image
value : equal 1 if a file has been generated
Return nil if an error occurs
The image file generated
Use the editor wizard for selecting an UID
The code :
if (i) then lp.Print("File generated\n");
else lp.Print("File no generated\n");
View of the image generated