This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

[?] random alert via mail
#4
(24.06.2019, 08:24)admin Wrote: The easiest way to send multiple group address values is to assign a tag.
This example will output one name = value pair per line for all objects with alert tag:
Code:
values = {}
objects = grp.tag('alert')
for _, obj in ipairs(objects) do
 value = string.format('%s = %s', tostring(obj.name), tostring(obj.value))
 values[ #values + 1 ] = value
end
result = table.concat(values, '\r\n')
log(result)
THX!
its close to my target. I didnt want need to tagging before, but its fine.
My aim was to filter groups in format 1.005 set to 'true' to create a alert mail including all alerts in case of alarts only.
Best
Reply


Messages In This Thread
RE: [?] random alert via mail - by Daniel - 24.06.2019, 07:38
RE: [?] random alert via mail - by admin - 24.06.2019, 08:24
RE: [?] random alert via mail - by Allesreinwasgeht - 24.06.2019, 11:13

Forum Jump: