mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-04 18:25:11 +02:00
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
This commit is contained in:
parent
c4f8c1ad52
commit
6e4d715937
9 changed files with 13 additions and 11 deletions
|
@ -42,7 +42,7 @@
|
|||
$datetime . " connected to SSID " . $ssid . ", interface " . $interface);
|
||||
/ log info $message;
|
||||
/ %PATH% 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" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue