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
#1
Is it possible to export alerts, logs or object logs in syslog ?
Is there a way to monitor the logicmachine in SNMP (standard or private MIBs)?

Matthieu
Reply
#2
Do you mean to external syslog on the network? It has a fairly simple UDP-based protocol which can be implemented via a script.

For SNMP we can provide LuaSNMP library, but our clients have only used it to query other devices, not other way round.
http://luasnmp.luaforge.net/index.html
Reply
#3
(25.11.2015, 07:58)admin Wrote: Do you mean to external syslog on the network? It has a fairly simple UDP-based protocol which can be implemented via a script.

For SNMP we can provide LuaSNMP library, but our clients have only used it to query other devices, not other way round.
http://luasnmp.luaforge.net/index.html

My idea was just to monitor the system (cpu, memory, disk, ...) with a monitoring tool like a standard linux device.
Just the standard MIB2 would be enough.

For the syslog, is there a way to make a code executer on each call of alert() ?

Matt
Reply
#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


Forum Jump: