Skip to content

Zabbix Template: Directus by HTTP

target: directus vendor: RaBe version: 7.0

Monitoring of Directus.

This template is part of RaBe's Zabbix template and helpers collection.

Items

Item: Directus: Server Status

component: server

Server health.

directus.server.status

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

component: raw

Path to scrape from Directus, usually something like https://directus.example.org/server/health.

directus._get.server.status

Settings:

Item Setting Value
Type HTTP_AGENT
Value type TEXT

Triggers

Trigger: Directus: Error status

scope: availability

Directus is reporting an error status for the Directus server. Settings:

Trigger Setting Values
Priority HIGH
last(/Directus by HTTP/directus.server.status)=2

Trigger: Directus: Warning status

scope: availability

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 (c) 2017 - 2025 Radio Bern RaBe