# Netdata on FreeBSD does not send disk usage alert

**URL:** <https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844>\
**Category:** Help\
**Tags:** agent\
**Created:** [February 10, 2023, 10:11am UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844 "2023-02-10T10:11:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Wittebrood](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/lars_wittebrood/32/2611_2.png) [@Lars\_Wittebrood](https://community.netdata.cloud/u/Lars_Wittebrood)\
**Post date:** [February 10, 2023, 10:11am UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844/1 "2023-02-10T10:11:21Z")

</div>

Dear Forum,

I run Netdata on a couple of FreeBSD systems. FreeBSD version is 12.3. I am running Netdata version 1.37.  
Problem I have: Netdata does not send an alert when disk usage threshold is reached.

On one of the systems I have a /var mountpoint with the following disk usage:  
root@system:~ # df -m  
Filesystem 1M-blocks Used Avail Capacity Mounted on  
/dev/vtbd0p4 7916 5982 1300 82% /var

Netdata actually reports also 82.1% percentage of disk usage for this system on the /var mountpoint.

The health.d/disks.conf has:  
template: disk\_space\_usage  
on: disk.space  
class: Utilization  
type: System  
component: Disk  
os: freebsd  
hosts: \*  
families: !/dev !/dev/\* !/run !/run/\* \*  
calc: $used \* 100 / ($avail + $used)  
units: %  
every: 5m  
warn: $this \> (($status \>= $WARNING ) ? (75) : (90))  
crit: $this \> (($status == $CRITICAL) ? (90) : (98))  
delay: up 1m down 15m multiplier 1.5 max 1h  
info: disk $family space utilization  
to: sysadmin

And my health\_alarm\_notify config has:  
role\_recipients\_email[sysadmin]=“${DEFAULT\_RECIPIENT\_EMAIL}”

I do receieve alert notiications for other checks. As the usage is between 75 and 90% I should receieve an alert, but I do not.

How can I troubleshoot further? What commands can I run to solve this? Where can I see why Netdata does not send an alert, on what grounds?

Thank you in advance for any pointers!

With kind regards,  
Lars

---

<div class="post-metadata">

**Author:** ![Lars\_Wittebrood](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/lars_wittebrood/32/2611_2.png) [@Lars\_Wittebrood](https://community.netdata.cloud/u/Lars_Wittebrood)\
**Post date:** [February 10, 2023, 1:01pm UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844/2 "2023-02-10T13:01:32Z")

</div>

Hi,  
I am now using the standard disks.conf file for the health check on this system (from /usr/local/lib/netdata/conf.d/health.d). See also the Netdata blog post [How to monitor the disk usage on your infrastructure | Netdata Blog](https://blog.netdata.cloud/disk-usage/).  
I still do not get any alert although the disk usage of the /var mountpoint is still 82%.  
The health.log shows:  
2023-02-10 11:39:59: [FQDN]: Alert event for [disk\_space./var.disk\_space\_usage], value [82.2%], status [CLEAR].  
With kind regards,  
Lars

---

<div class="post-metadata">

**Author:** ![Lars\_Wittebrood](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/lars_wittebrood/32/2611_2.png) [@Lars\_Wittebrood](https://community.netdata.cloud/u/Lars_Wittebrood)\
**Post date:** [February 12, 2023, 7:00pm UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844/3 "2023-02-12T19:00:26Z")

</div>

For some reason does the standard health.d/disks.conf not work. Or I do not understand it. I expect an alarm when a mountpoint hits a uasga of \> 80%, but it does not do that.

When I configure:  
warn: $this \> 80  
crit: $this \> 90  
repeat: warning 240m critical 120m

I get the results I want and expect.

So this is SOLVED NOW!

---

<div class="post-metadata">

**Author:** ![andrewm4894](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/andrewm4894/32/125_2.png) [@andrewm4894](https://community.netdata.cloud/u/andrewm4894)\
**Post date:** [February 13, 2023, 4:30pm UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844/4 "2023-02-13T16:30:40Z")

</div>

welcome @Lars_Wittebrood !

great to hear is solved - i think maybe it could have been the delay? i know sometimes that can be a little confusing

> **[Health configuration reference | Learn Netdata](https://learn.netdata.cloud/docs/agent/health/reference#alarm-line-delay)**
>
> Welcome to the health configuration reference.

---

<div class="post-metadata">

**Author:** ![Manolis\_Vasilakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/manolis_vasilakis/32/820_2.png) [@Manolis\_Vasilakis](https://community.netdata.cloud/u/Manolis_Vasilakis)\
**Post date:** [February 14, 2023, 8:41am UTC](https://community.netdata.cloud/t/netdata-on-freebsd-does-not-send-disk-usage-alert/3844/5 "2023-02-14T08:41:33Z")

</div>

Hi @Lars_Wittebrood !

It is indeed not really clear what our stock alert is doing with the following:

warn: $this \> (($status \>= $WARNING ) ? (75) : (90))  
crit: $this \> (($status == $CRITICAL) ? (90) : (98))

But basically what it does is that it takes into account whether the alert is already in a WARNING or CRITICAL state, and if so, the values are different to trigger the event.

So WARNING will be raised on 2 occasions:

If it’s already WARNING or CRITICAL, it will do so if the value is over 75.  
If not, it will raise when the value is over 90.

In other words, if the alert is clear, you will get a warning when the value reaches 90 and it will stay in warning until it drops \<75.

But yes, you can customize the alert as it suits your needs!
