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:
@@ -11,8 +11,7 @@ zabbix_export:
|
||||
Yodmon: monitors a Yodeck digital signage player via SNMP.
|
||||
|
||||
Required host macro: {$YODECK_ID} — set automatically by Yodmon.
|
||||
The SNMP interface must point to the Yodmon host on port 161 with
|
||||
the configured community string.
|
||||
The SNMP interface must point to the Yodmon host on port 161.
|
||||
|
||||
OID base: .1.3.6.1.4.1.99999.1.1.<column>.{$YODECK_ID}
|
||||
groups:
|
||||
@@ -29,6 +28,16 @@ zabbix_export:
|
||||
description: '1 = online, 0 = offline'
|
||||
tags:
|
||||
- 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
|
||||
name: Last Seen Timestamp
|
||||
@@ -41,6 +50,17 @@ zabbix_export:
|
||||
description: 'Unix timestamp of last contact with Yodeck cloud (used for age-based trigger)'
|
||||
tags:
|
||||
- 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
|
||||
name: Last Seen
|
||||
@@ -78,28 +98,6 @@ zabbix_export:
|
||||
tags:
|
||||
- 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:
|
||||
- macro: '{$YODECK_ID}'
|
||||
value: ''
|
||||
|
||||
Reference in New Issue
Block a user