Difference between revisions of "System variables updated"

From wiki.netio-products.com
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Script trigger System variables updated}} Triggered when system variables are updated (approximately every 10 seconds). Arguments are stored in table <code>even...")
 
(No difference)

Latest revision as of 17:25, 11 July 2019

Triggered when system variables are updated (approximately every 10 seconds). Arguments are stored in table event.args

Arguments

  • freeSpace
  • swapTotal
  • outgoingTraffic
  • cpuLoad
  • incomingTraffic
  • cpuIoWait
  • totalSpace
  • averageLoad
  • sessionCount

Print arguments

-- print all arguments
for i, v in pairs(event.args) do
  logf("%s: %s",tostring(i),tostring(v))
end