How to adjust warning message about disk space usage

Started by persec-anon, June 15, 2025, 06:19:13 PM

Previous topic - Next topic
I have a relatively large amount of disk (120G). I use it to keep a large amount of cached data with Squid (apt repo updates) and logs.

ZenArmor keeps complaining when I hit 80%. Note that I still have 16G free and this is nowhere near problem.

I'd like to adjust the warning to be at 90% and shutdown at 95%. How can this be done? I don't see it in the GUI, but I imagine there is a CLI setting I can adjust?

Hi,

You can increase it by editing the following file

/usr/local/zenarmor/scripts/health/opnsense/18.1/check_health.sh

Change value 90 in 259. line

  if [ $DISK_USED_PERCENT -gt 90 ]; then