User Tools

Site Tools


uphp:functions:snmp_trap_send

snmp_trap_send

WMMEGA,MINI3 >= 2.1175 WM-M2 >= 3.1175

Send an SNMP Trap message

Description

int snmp_trap_send ( string $message )

Send a message via SNMP Trap to the configured trap server. This will be transmitted as an ASCII message.

Parameter

$message: A string

Return Values

int: 0 if it failed, or 1 if it succeeded

Example

<?
  $res = snmp_trap_send("Voltage exceeded threshold");
?>

See Also

uphp/functions/snmp_trap_send.txt · Last modified: 2021/09/13 05:57 (external edit)