Are WARNINGS, not criticals, included in the daily email to root?

Status
Not open for further replies.

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
Using 11.0-U2.

I am aware the system issues a warning for capacity going over 80%. I see that in the GUI as well as by running alertcli.py. My question is, do these get emailed to the root account (I have set up emails and they work correctly) soon after the warning is issue, in the daily report at 3AM, or do warnings not get sent at all over email?

Thank you.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
do these get emailed to the root account (I have set up emails and they work correctly) soon after the warning is issue
This.
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
Thank you...

I guess I will just keep a test pool at 85% and see if that WARNING gets included in the daily report. That is my true question. It does NOT get sent as a WARNING. The warning just sits in the GUI. If, however, the pool capacity goes => 90%, a CRITICAL status is generated and sent via email alert. I want to ensure that I can get notification from the FreeNAS through email BEFORE the capacity goes to 90% or above.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
It doesn't, you'll only get a notification at or above 90%.
I could have sworn I'd gotten email warnings at 80% before, but looks like either it's changed, or my memory's wrong. Sorry for the wrong information.
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
I would have thought so too... But I guess not. I thinks its odd that at or above 90%, the system goes into a degraded performance mode (or am I misremembering that as well?....) Perhaps that has changed. And that being the case, the 80% mark should be what gets emailed. The use case being that people set up email notifications so they dont have to manually check on the server. Thus, wouldnt it be more pertinent to throw an email BEFORE the critical state happens and performance drops. Would be better to be proactive on the maintenance in my humble opinion.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
There are a bunch of scripts available that will allow you to have the NAS email you daily reports, one of which can be the amount of space available / used on the pool. Have you seen the scripts?

@Spearfoot is one of the FreeNAS experts on the site here.
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
This is interesting and I have not seen it. Thank you for pointing it out. I would also think it would be possible to go into the system, pre or post build, and change the 80% capacity from WARNING to CRITICAL in order to have it generate an email.. Ill look around. But this gives me more than enough to go with.
 

dkusek

Explorer
Joined
Mar 16, 2016
Messages
78
Wanted to update anyone that felt the same way about the above... If you want to change this so that when the system reach 80%, all you have to do is change one line in /usr/local/www/freenasUI/system/alertmods/zpool_capacity.py

If you open that file in an editor, you can change the part referring to "elif cap >= 80: level =" from Alert.WARN to Alert.CRIT. This will generate an immediate email alert.
 
Status
Not open for further replies.
Top