aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.template
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-04-27 20:33:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-04-28 13:58:37 +0200
commit1ca3e8b59fbd4374ba9d94d83944411ef0d81ae2 (patch)
tree2a502689c197894c357d480f91b76794b1d34596 /collect-wireless-mac.template
parentd6edf6c2d38255b7618d15124e3da790a8f5f414 (diff)
collect-wireless-mac: use $SendNotification2
Diffstat (limited to 'collect-wireless-mac.template')
-rw-r--r--collect-wireless-mac.template8
1 files changed, 4 insertions, 4 deletions
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index b6c4efa..8e4ab5d 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -18,7 +18,7 @@
:global GetMacVendor;
:global LogPrintExit2;
:global ScriptLock;
-:global SendNotification;
+:global SendNotification2;
:global SymbolForNotification;
$ScriptLock $0;
@@ -58,8 +58,8 @@ $ScriptLock $0;
"first seen on " . $DateTime . " connected to SSID " . $Ssid . ", interface " . $Interface);
$LogPrintExit2 info $0 $Message false;
/ %PATH% access-list add place-before=$PlaceBefore comment=$Message mac-address=$Mac disabled=yes;
- $SendNotification ([ $SymbolForNotification "mobile-phone" ] . $Mac . " connected to " . $Ssid) \
- ("A device with unknown MAC address connected to " . $Ssid . " on " . $Identity . ".\n\n" . \
+ $SendNotification2 ({ subject=([ $SymbolForNotification "mobile-phone" ] . $Mac . " connected to " . $Ssid); \
+ message=("A device with unknown MAC address connected to " . $Ssid . " on " . $Identity . ".\n\n" . \
"Controller: " . $Identity . "\n" . \
"Interface: " . $Interface . "\n" . \
"SSID: " . $Ssid . "\n" . \
@@ -68,7 +68,7 @@ $ScriptLock $0;
"Hostname: " . $HostName . "\n" . \
"Address: " . $Address . "\n" . \
"DNS name: " . $DnsName . "\n" . \
- "Date: " . $DateTime);
+ "Date: " . $DateTime) });
} else={
$LogPrintExit2 debug $0 ("MAC address " . $Mac . " already known: " . \
[ / %PATH% access-list get $AccessList comment ]) false;