From 6e4d7159378259a521e467504509de871381d078 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 27 Nov 2018 14:08:14 +0100 Subject: global-functions: add identity tag in $SendNotification ... and send subject in telegram message. --- collect-wireless-mac.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collect-wireless-mac.local') diff --git a/collect-wireless-mac.local b/collect-wireless-mac.local index 9800fab..3416046 100644 --- a/collect-wireless-mac.local +++ b/collect-wireless-mac.local @@ -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" . \ -- cgit v1.2.3-54-g00ecf