ZFS Notification Matcher (PVE 8.2.7)

mmclean

New Member
Aug 7, 2024
2
0
1
Hi all,

I'm wondering if it's possible to create a notification matcher in PVE 8.2.7 for ZFS related events without the explicit configuration of the ZED daemon in /etc/zfs/zed.d/zed.rc ?
For instance, if I wanted to configure a notification matcher for say backup related events I'd create the following match rules:

Node type: Match Field
Match Type: Exact
Field: type
Value: vzdump

Can the same result be achieved by specifying a zfs value of sorts in a match rule? The reason why I'm wanting to explore this is to keep all notification configurations within the same UI pane to improve visibility without having to check config files within the shell.

Any insights would be greatly appreciated.

Cheers
 
Can the same result be achieved by specifying a zfs value of sorts in a match rule? The reason why I'm wanting to explore this is to keep all notification configurations within the same UI pane to improve visibility without having to check config files within the shell.
Not yet; we'd probably have to patch zed to feed notifications into our notification stack. Definitely interesting for the future, but we did not really investigate yet how much effort that would be and hence cannot provide an ETA.

What you can do right now is instruct zed to send emails to the local root account (root , without any domain part). Using proxmox-mail-forwarder, any email sent to the local root account will be fed into the notification system and can be matched on as notification type system-mail.

Hope this helps!
 
  • Like
Reactions: mmclean
Thanks Lukas for the response!

Interesting approach, I'll be sure to give it a go and if no luck I'll stick to the tried and true method ;)

Cheers!