SNMP reporting

New in version 1.2.0.

snmpAgent(enableTraps[, masterSocket])

Enable SNMP support.

Parameters:
  • enableTraps (bool) – Indicates whether traps should be sent
  • masterSocket (string) – A string specifying how to connect to the master 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