SNMP reporting

snmpAgent(enableTraps[, daemonSocket])

Enable SNMP support.

Parameters:
  • enableTraps (bool) – Indicates whether traps should be sent
  • daemonSocket (string) – A string specifying how to connect to the daemon agent. This is a file path to a unix socket, but e.g. tcp:localhost:705 can be used as well. By default, SNMP agent’s default socket is used.
sendCustomTrap(message)

Send a custom SNMP trap from Lua.

Parameters:message (string) – The message to include in the sent trap