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.

Syslog and SNMP
#4
You can override alert function in user function library, then all scripts will use new function instead of old. You just have to implement syslogsend.

Code:
oldalert = alert

alert = function(text, ...)
 text = tostring(text) or ''
 text = string.format(text, ...)

 syslogsend(text)

 oldalert(text)
end
Reply


Messages In This Thread
Syslog and SNMP - by Matt - 24.11.2015, 18:45
RE: Syslog and SNMP - by admin - 25.11.2015, 07:58
RE: Syslog and SNMP - by Matt - 25.11.2015, 21:47
RE: Syslog and SNMP - by admin - 26.11.2015, 06:59

Forum Jump: