Fix template: move triggers inside items (Zabbix 7.x format)

In Zabbix 7.x, triggers must be nested within their parent item
rather than defined at the template level.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-17 10:41:52 +02:00
parent e16b542d1b
commit 79b4266d2b

View File

@@ -11,8 +11,7 @@ zabbix_export:
Yodmon: monitors a Yodeck digital signage player via SNMP. Yodmon: monitors a Yodeck digital signage player via SNMP.
Required host macro: {$YODECK_ID} — set automatically by Yodmon. Required host macro: {$YODECK_ID} — set automatically by Yodmon.
The SNMP interface must point to the Yodmon host on port 161 with The SNMP interface must point to the Yodmon host on port 161.
the configured community string.
OID base: .1.3.6.1.4.1.99999.1.1.<column>.{$YODECK_ID} OID base: .1.3.6.1.4.1.99999.1.1.<column>.{$YODECK_ID}
groups: groups:
@@ -29,6 +28,16 @@ zabbix_export:
description: '1 = online, 0 = offline' description: '1 = online, 0 = offline'
tags: tags:
- tag: yodmon - tag: yodmon
triggers:
- uuid: 22222222333344445555666677778801
expression: 'max(/Yodmon Yodeck Player/yodeck.online,30m)<1'
name: '{HOST.NAME} is offline'
priority: WARNING
description: |
The player has reported offline status for 30 consecutive minutes.
Check the device, network, and Yodeck dashboard.
tags:
- tag: yodmon
- uuid: 11111111222233334444555566667702 - uuid: 11111111222233334444555566667702
name: Last Seen Timestamp name: Last Seen Timestamp
@@ -41,6 +50,17 @@ zabbix_export:
description: 'Unix timestamp of last contact with Yodeck cloud (used for age-based trigger)' description: 'Unix timestamp of last contact with Yodeck cloud (used for age-based trigger)'
tags: tags:
- tag: yodmon - tag: yodmon
triggers:
- uuid: 22222222333344445555666677778802
expression: 'now()-last(/Yodmon Yodeck Player/yodeck.last_seen_ts)>14400 and last(/Yodmon Yodeck Player/yodeck.last_seen_ts)>0'
name: '{HOST.NAME} not seen for 4+ hours'
priority: WARNING
description: |
The last contact timestamp from Yodeck is more than 4 hours old.
The player may be disconnected or the Yodeck cloud may not be
receiving heartbeats from the device.
tags:
- tag: yodmon
- uuid: 11111111222233334444555566667703 - uuid: 11111111222233334444555566667703
name: Last Seen name: Last Seen
@@ -78,28 +98,6 @@ zabbix_export:
tags: tags:
- tag: yodmon - tag: yodmon
triggers:
- uuid: 22222222333344445555666677778801
expression: 'max(/Yodmon Yodeck Player/yodeck.online,30m)<1'
name: '{HOST.NAME} is offline'
priority: WARNING
description: |
The player has reported offline status for 30 consecutive minutes.
Check the device, network, and Yodeck dashboard.
tags:
- tag: yodmon
- uuid: 22222222333344445555666677778802
expression: 'now()-last(/Yodmon Yodeck Player/yodeck.last_seen_ts)>14400 and last(/Yodmon Yodeck Player/yodeck.last_seen_ts)>0'
name: '{HOST.NAME} not seen for 4+ hours'
priority: WARNING
description: |
The last contact timestamp from Yodeck is more than 4 hours old.
The player may be disconnected or the Yodeck cloud may not be
receiving heartbeats from the device.
tags:
- tag: yodmon
macros: macros:
- macro: '{$YODECK_ID}' - macro: '{$YODECK_ID}'
value: '' value: ''