From a3ccee89c52e0e38ddd272983aa2247be4fcf4c1 Mon Sep 17 00:00:00 2001 From: "Michael E. Legatt, Ph.D" Date: Thu, 21 Dec 2023 14:56:29 -0600 Subject: [PATCH] Update arpwatch.inc Updated the arpwatch php for notification to include, if configured, Slack messags. --- net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc b/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc index 20180c05547d..f9295f57fb79 100644 --- a/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc +++ b/net-mgmt/pfSense-pkg-arpwatch/files/usr/local/pkg/arpwatch.inc @@ -252,6 +252,9 @@ if ((false !== $message) && ((false === strpos($message, ': Cron ')) || $send_subject = "{$config['system']['hostname']}.{$config['system']['domain']} - Arpwatch Notification : {$subject[1]}"; send_smtp_message($message, $send_subject); + if (function_exists('notify_via_slack')) { + notify_via_slack($send_subject . " - " . $message); + } if (function_exists('notify_via_telegram')) { notify_via_telegram($send_subject . " - " . $message); }