Change alert threshold for quota space

Status
Not open for further replies.

steffi0202

Dabbler
Joined
Feb 1, 2018
Messages
11
Hi all,

i use FreeNAS-11.1-RELEASE and i wanna change the alert threshold for the quoata space. For example i get the following alert:


Code:
Refquota exceed on dataset d6/data/dk.
Used 80.07% (2.64 TB of 3.3 TB)


I wanna get an alarm at 85%. I didn't find anything in the GUI and i can't find the script for that task or i don't know which it is. Can you help me please?

Many thanks in advance for your help.

Steffi
 
D

dlavigne

Guest
This is a built-in alert (not configurable). If you want to ignore it you can unselect it in Alerts and instead create your own script to run as a Cron Jobs Task.
 

steffi0202

Dabbler
Joined
Feb 1, 2018
Messages
11
Thank's for your reply. Where do i unselect it? I do not find anything in the Gui (System -> Alert Service)
 

steffi0202

Dabbler
Joined
Feb 1, 2018
Messages
11
i can't find any alert or any alarm or something else in the Gui which is appropriate. Do you know where the FreeNAS script for that task is?
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
it's in the manual chapter 24
 

steffi0202

Dabbler
Joined
Feb 1, 2018
Messages
11
The manual only say, that there is an alert deamon. Can you tell me which one it is? I looked in /etc/rc.d/ but i didn't find an appropriate script.
 

steffi0202

Dabbler
Joined
Feb 1, 2018
Messages
11
The solution is to edit the python script
Code:
/usr/local/lib/python3.6/site-packages/middlewared/plugins/zfs.py
There is a method named
Code:
__get_quota_excess ()
. After a reboot the changes are still available, but i don't know if the changes are still there after an update.
 
Status
Not open for further replies.
Top