Zabbix Template: Directus by HTTP
Monitoring of Directus.
This template is part of RaBe's Zabbix template and helpers collection.
Items
Item: Directus: Server Status
Server health.
Settings:
| Item Setting | Value |
|---|---|
| Type | DEPENDENT |
| History | 7d |
| Source item | directus._get.server.status |
Preprocessing steps:
| Type | Parameters |
|---|---|
| JSONPATH | ["$.status"] |
| JAVASCRIPT | ["if (value == \"warn\") {\n return 1;\n} else if (value == \"error\") {\n return 2;\n}\nreturn 0;\n"] |
| DISCARD_UNCHANGED_HEARTBEAT | ["5m"] |
Item: Directus: Get Status Page
Path to scrape from Directus, usually something like https://directus.example.org/server/health.
Settings:
| Item Setting | Value |
|---|---|
| Type | HTTP_AGENT |
| Value type | TEXT |
Triggers
Trigger: Directus: Error status
Directus is reporting an error status for the Directus server. Settings:
| Trigger Setting | Values |
|---|---|
| Priority | HIGH |
Trigger: Directus: Warning status
Directus is reporting a warning status for the Directus server. Settings:
| Trigger Setting | Values |
|---|---|
| Priority | WARNING |
last(/Directus by HTTP/directus.server.status,#1)=1 and last(/Directus by HTTP/directus.server.status,#2)=1
Macros
The following Zabbix macros are configured via this template.
Macro: {$DIRECTUS.SERVER.STATUS}
Default:
License
This template is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
Copyright
Copyright (c) 2017 - 2025 Radio Bern RaBe