Hi,
I'm trying to use check_space.py to notify me when available space on my FreeNAS box drops below 25Gb.
I ran it once with the following options;
I do have less than 10% disk free, and I duly received an email confirming that, so I know the script & email work. But if have a 5Tb volume, that spends most of its time with less than 10% available. I want to be informed if it drops below 25Gb. So I ran the command as follows;
But this time I received no email. I can find no documentation on the script, and I don't know enough Python to figger it out myself.
Is there a time delay on the script, or am I using it wrong?
Endgame is to have it running from a timed job, as detailed in the following thread;
http://forums.freenas.org/index.php...e-space-dips-below-a-defined-threshold.15892/
I'm more familiar with Linux than BSD, and I'd normally run it from cron.daily - is there a similar mechanism on FreeNAS?
Thanks
I'm trying to use check_space.py to notify me when available space on my FreeNAS box drops below 25Gb.
I ran it once with the following options;
Code:
python /usr/local/www/freenasUI/tools/check_space.py -d [dataset] -t 10%
I do have less than 10% disk free, and I duly received an email confirming that, so I know the script & email work. But if have a 5Tb volume, that spends most of its time with less than 10% available. I want to be informed if it drops below 25Gb. So I ran the command as follows;
Code:
python /usr/local/www/freenasUI/tools/check_space.py -d [dataset] -t 25G
But this time I received no email. I can find no documentation on the script, and I don't know enough Python to figger it out myself.
Is there a time delay on the script, or am I using it wrong?
Endgame is to have it running from a timed job, as detailed in the following thread;
http://forums.freenas.org/index.php...e-space-dips-below-a-defined-threshold.15892/
I'm more familiar with Linux than BSD, and I'd normally run it from cron.daily - is there a similar mechanism on FreeNAS?
Thanks