Notifications...
-
There's a whole bunch of interesting configuration options for notifications.
Unfortunately, to me, they are mostly useless. Why?
Because the things that end up in notifications tend to be rather uninteresting.
What I e.g. would like to be notified:
-
each time the WAN interface's DHCP assigned IP address changes
-
each time a VPN link goes down
-
each time a DynDNS update fails
-
each time a package has an update/new version
-
each time a new package becomes available
These are the things I need to keep accessing the system respectively keep running up to date.
In case I'm missing something, I'd he happy to learn if there are ways to configure such notifications...
-
-
@rcfa Zabbix is most likely going to be covering many of these things.
-
@rcfa said in Notifications...:
each time the WAN interface's DHCP assigned IP address changes
I'm using a " Services > Dynamic DNS > RFC 2136 Clients" myself, and I receive a mail when it updates.
each time a DynDNS update fails
Fails ?
If it fails because WAN is down .... wonder how you want to receive the mail then.
Because the some other issue DynDNS server side ?
That needs some modifications here /etc/servcies.invc : function services_dnsupdate_process()
Add your own mail notification lines.each time a package has an update/new version
Have that :
mer. 24 mai 07:01 Notifications in this message: 1 ================================ 7:01:19 An update to pfSense version 23.05 is available The following updates are available and can be installed using System > Package Manager: acme: 0.7.3_1 ==> 0.7.3_2 Netgate_Firmware_Upgrade: 0.56 ==> 23.05.00 pfBlockerNG-devel: 3.2.0_4 ==> 3.2.0_5 Some packages are part of the base system and will not show up in Package Manager. If any such updates are listed below, run `pkg upgrade` from the shell to install them: 7-zip: 21.07_2 -> 22.01 [pfSense] bash: 5.2.2_1 -> 5.2.15 [pfSense] bind-tools: 9.18.8 -> 9.18.13 [pfSense] ca_root_nss: 3.83 -> 3.89 [pfSense] ccid: 1.5.0 -> 1.5.1 [pfSense] check_reload_status: 0.0.14 -> 0.0.15 [pfSense] .....
There is a script on the forum that does this.
each time a new package becomes available
You mean : when something gets added or changed here : System > Package Manager > Available Packages ?
AFAIK : that doesn't exist yet.
But is very possible to create.each time a VPN link goes down
Google : "notification when VPN goes down", I'm sure you'll find a script that can be adapted for your needs.
Btw, with VPN you mean the OpenVPN client I guess. Not the OpenVPN server.
Normally, when you really needs the OpenVPN client, you'll know that it is down, as all traffic is routed over that connection : when it breaks, your LAN has no Internet anymore. That doesn't goes unnoticed for very long time ;)