mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
$datetime . " connected to SSID " . $ssid . ", interface " . $interface);
|
||||
/ log info $message;
|
||||
/ interface wireless access-list add place-before=$"place-before" comment=$message mac-address=$mac disabled=yes;
|
||||
$SendNotification ("[" . $identity . "] " . $mac . " connected to " . $ssid) \
|
||||
$SendNotification ($mac . " connected to " . $ssid) \
|
||||
("A device with unknown MAC address connected to " . $ssid . " on " . $identity . ".\n\n" . \
|
||||
"Controller: " . $identity . "\n" . \
|
||||
"Interface: " . $interface . "\n" . \
|
||||
|
Reference in New Issue
Block a user