Created
July 7, 2024 21:07
-
-
Save wheel5up/de289059aa59027b5a835f4fa29c8060 to your computer and use it in GitHub Desktop.
Collecting pi-hole status with custom script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zabbix_export: | |
version: '6.4' | |
template_groups: | |
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 | |
name: Templates/Applications | |
templates: | |
- uuid: 11f833e81adb4040b367a55d5cef4019 | |
template: 'pi-hole stats' | |
name: 'pi-hole stats' | |
description: 'Gather pi-hole stats' | |
groups: | |
- name: Templates/Applications | |
items: | |
- uuid: 15af0062e62d4e20a61f8a0d750fd910 | |
name: 'Load data' | |
key: pihole.records | |
delay: 30s | |
trends: '0' | |
value_type: CHAR | |
tags: | |
- tag: app | |
value: pihole | |
- uuid: 9034cf76f02d44f2a03e50c92c2cf3ee | |
name: 'Pihole status load delta between last load and current' | |
type: DEPENDENT | |
key: pihole.stats.delta | |
delay: '0' | |
preprocessing: | |
- type: JSONPATH | |
parameters: | |
- $.delta | |
master_item: | |
key: pihole.records | |
tags: | |
- tag: app | |
value: pihole | |
- uuid: 9551e1c40c4f4b4cb78576a48a64cf64 | |
name: 'Number of records added to graylog' | |
type: DEPENDENT | |
key: pihole.stats.loaded | |
delay: '0' | |
preprocessing: | |
- type: JSONPATH | |
parameters: | |
- $.loaded | |
master_item: | |
key: pihole.records | |
tags: | |
- tag: app | |
value: pihole |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment