# Custom health check not loading

**URL:** https://community.netdata.cloud/t/custom-health-check-not-loading/2551
**Category:** Help
**Tags:** agent, agent-health
**Created:** [February 12, 2022, 7:40pm UTC](https://community.netdata.cloud/t/custom-health-check-not-loading/2551 "2022-02-12T19:40:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Xatom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/xatom/32/1535_2.png) [@Xatom](https://community.netdata.cloud/u/Xatom)
#### Post date: [February 12, 2022, 7:40pm UTC](https://community.netdata.cloud/t/custom-health-check-not-loading/2551/1 "2022-02-12T19:40:16Z")

</div>

## Environment

Docker

## Problem/Question

I’ve created a custom health check:

```auto
alarm: last_backup_success
   on: filecheck_last_backup_success.file_mtime_ago
 calc: $collected_total_raw
 warn: $this > 2300
 crit: $this > 2400

```

I can see the contents of the file within the Netdata docker, e.g.

```auto
docker compose exec netdata bash
cat /etc/netdata/health.d/cron_status.conf

```

But the alarm isn’t loading. Not after restarting the Docker, and also not when executing `netdatacli reload-health`. I’m also not seeing anything related to this file in the logs. I’ve tried:

```auto
docker compose logs netdata | grep health.d
docker compose logs netdata | grep cron_status

```

But it’s like the file doesn’t exist.

## What I expected to happen

The alarm to show up at least in `/api/v1/alarms?all` or the dashboard. Or an error in the logs.

Thanks!

---

<div class="post-metadata">

### Author: ![Xatom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/xatom/32/1535_2.png) [@Xatom](https://community.netdata.cloud/u/Xatom)
#### Post date: [February 12, 2022, 8:00pm UTC](https://community.netdata.cloud/t/custom-health-check-not-loading/2551/2 "2022-02-12T20:00:52Z")

</div>

Well, turns out I just wasn’t thinking straight! Should have filtered the logs on the alarm’s name, not the file name. This gave some more insights:

```auto
docker logs netdata | grep last_backup_success

```

My alarm needed an `every` key. 😄

---

<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, 2022, 8:00am UTC](https://community.netdata.cloud/t/custom-health-check-not-loading/2551/3 "2022-02-14T08:00:14Z")

</div>

Glad you figured it out @Xatom, thanks!
