Clear alerts via the CLI?

totoro

Cadet
Joined
May 4, 2020
Messages
1
I just upgraded to FreeNAS-11.3-U2.1. Every time I do an upgrade I get an alert about new zfs features. These alerts trigger my Nagios monitoring system and create a lot of noise.

Is there a way for me to clear these alerts via the CLI? I have a fair bit of scripting to automate a lot of tasks and would really like to be able to clear alerts via CLI.

I found that I can list alerts with midclt call alert.list but I do not see documented how to clear alerts.

Can anyone help with this?

Thank you.
 

aervin

iXsystems
iXsystems
Joined
Jun 13, 2018
Messages
114
@totoro I believe dismissing alerts via the CLI looks something like this: midclt alert.dismiss <alert uuid>. I do not see a way to dismiss alerts in batches.

To silence the ZFS pool feature flag alerts via the GUI, you might change the "New Feature Flags Are Available for Pool" alert setting to "NEVER" in System -> Alert Settings.
 
Top