Skip to content

Commit

Permalink
chore(Songticker): add current track (#114)
Browse files Browse the repository at this point in the history
This should help debug if PAD data goes missing somewhere because we can
have a nicer overview directly in Zabbix.
  • Loading branch information
hairmare authored May 20, 2024
1 parent 55824a3 commit 7eb8201
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Templates/Applications/Songticker/6.4/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 42 additions & 0 deletions Templates/Applications/Songticker/6.4/Songticker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,48 @@ zabbix_export:
tags:
- tag: component
value: songticker
- uuid: a503e836d6f6428d83d0a1cf35b98551
name: 'Songticker: Current Artist'
type: DEPENDENT
key: rabe.songticker.track_artist
delay: '0'
history: 7d
trends: '0'
value_type: TEXT
description: 'Currently running artist.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''track'']/*[name()=''artist'']/text()'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: 4b158ace141648a7a1d2b5308ab6f4ec
name: 'Songticker: Current Title'
type: DEPENDENT
key: rabe.songticker.track_title
delay: '0'
history: 7d
trends: '0'
value_type: TEXT
description: 'Currently running track.'
preprocessing:
- type: XMLPATH
parameters:
- '/*[name()=''ticker'']/*[name()=''track'']/*[name()=''title'']/text()'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 30m
master_item:
key: rabe.songticker.xml
tags:
- tag: component
value: songticker
- uuid: 17572c4eaaf64ccdae11785ada8f85b0
name: 'Songticker XML reponse'
type: HTTP_AGENT
Expand Down

0 comments on commit 7eb8201

Please sign in to comment.