zabbix_export: version: '6.4' template_groups: - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 name: Templates/Applications templates: - uuid: fd8c8d4372e942218a50add40c1e405f template: 'AdGuard Home Filters by HTTP' name: 'AdGuard Home Filters by HTTP' description: | AdGuard Home template for basic filter parameters. GitHub: https://github.com/AdguardTeam/AdGuardHome API documentation: https://github.com/AdguardTeam/AdGuardHome/tree/master/openapi Access the documentation with https://editor.swagger.io by importing the openapi.yaml file. groups: - name: Templates/Applications items: - uuid: d47808a351ea4981a6e6b0b6ba7e5362 name: 'AdGuard Home Filters' type: HTTP_AGENT key: adguard.filters delay: 1h history: '0' trends: '0' value_type: TEXT description: 'Raw filtering data' preprocessing: - type: JSONPATH parameters: - $.filters url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/filtering/status' headers: - name: Authorization value: 'Basic {$ADGUARD.AUTH}' tags: - tag: Adguard value: filter - uuid: d6ac78fa7d5b48a4bb927209e70d036b name: 'AdGuard Home Filter Rules Count Sum' type: CALCULATED key: adguard.filters.rules.sum delay: 1h history: 30d trends: '0' params: 'sum(last_foreach(//adguard.filter.rules[*]))' description: | Sum of all filter rules count This item depends on the discovered filter subscriptions tags: - tag: Adguard value: filter discovery_rules: - uuid: 47fd36f45e2d4acc9b82e7273cadc805 name: 'AdGuard Filters Discovery' type: DEPENDENT key: adguard.filters.discovery delay: '0' filter: conditions: - macro: '{#FILTER.ENABLED}' value: '{$ADGUARD.FILTER_ENABLED}' formulaid: A lifetime: 1d description: 'Filter parameters discovery for filter statistics' item_prototypes: - uuid: 118eb7373160489aaa2036aa095713d5 name: 'AdGuard Home Filter Last Update Time - {#FILTER.NAME}' type: SCRIPT key: 'adguard.filter.lastupdate[{#FILTER.ID}]' delay: 1h history: 30d trends: '0' units: uptime params: | // Get the current date and time and convert to seconds var currentDate = new Date(); var currentSeconds = Math.round(currentDate.getTime() / 1000); // Convert original date-time to seconds var filterDate = new Date("{#FILTER.LASTUPDATE}"); var targetSeconds = Math.round(filterDate.getTime() / 1000); // Calculate the time difference in seconds var secondsDiff = currentSeconds - targetSeconds; return secondsDiff; description: | Filter subscription time since last update. This item gets the current date and time, convert it to seconds, converts the original date-time to seconds, then calculates the time difference between them. tags: - tag: Filter value: last_update - uuid: d5714bc8467543af88fb467ec475ba3f name: 'AdGuard Home Filter Rules Count - {#FILTER.NAME}' type: CALCULATED key: 'adguard.filter.rules[{#FILTER.ID}]' delay: 1h history: 30d params: '{#FILTER.RULES}' description: 'Filter subscription rules count' tags: - tag: Filter value: rules - uuid: 7b18045cdba647799e7e5e5272d0a92e name: 'AdGuard Home Filter Status - {#FILTER.NAME}' type: CALCULATED key: 'adguard.filter.status[{#FILTER.ID}]' delay: 1h history: 30d params: '{#FILTER.ENABLED}' description: 'Filter subscription status. True of false' preprocessing: - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' tags: - tag: Filter value: status trigger_prototypes: - uuid: 5612cc67d4044ec587d60e56522b1944 expression: 'last(/AdGuard Home Filters by HTTP/adguard.filter.status[{#FILTER.ID}],#1)=0' name: 'AdGuard Home Filter is Disabled - {#FILTER.NAME}' opdata: 'Filter Status: {#FILTER.ENABLED}' url_name: 'AdGuard Home Web UI' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}' priority: INFO description: | Indicates this AdGuard Filter is disabled Check your filter configuration Filter URL - {#FILTER.URL} tags: - tag: Status value: disabled trigger_prototypes: - uuid: b4a381bcaf264258941498bf2e15d22d expression: | last(/AdGuard Home Filters by HTTP/adguard.filter.lastupdate[{#FILTER.ID}],#1)>604800 and last(/AdGuard Home Filters by HTTP/adguard.filter.status[{#FILTER.ID}],#1)=0 name: 'AdGuard Home Filter not Updated in more than 7 days - {#FILTER.NAME}' opdata: 'Filter Status: {#FILTER.ENABLED}' url_name: 'AdGuard Home Web UI' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}' priority: WARNING description: | Indicates that the AdGuard Filter is enabled but not updated for more than 7 days Check your filter configuration and the filters update interval Filter URL - {#FILTER.URL} tags: - tag: Last_update value: delayed master_item: key: adguard.filters lld_macro_paths: - lld_macro: '{#FILTER.ENABLED}' path: $.enabled - lld_macro: '{#FILTER.ID}' path: $.id - lld_macro: '{#FILTER.LASTUPDATE}' path: $.last_updated - lld_macro: '{#FILTER.NAME}' path: $.name - lld_macro: '{#FILTER.RULES}' path: $.rules_count - lld_macro: '{#FILTER.URL}' path: $.url macros: - macro: '{$ADGUARD.AUTH}' description: 'Basic access authentication is a Base64 encoded string of [USER:PASS]. Use "echo -n '':'' | base64" to retrieve the authorization string' - macro: '{$ADGUARD.FILTER_ENABLED}' value: 'true' description: 'True to discover only enabled filters, leave empty to discover all filters' - macro: '{$ADGUARD.PORT}' value: '3000' description: 'AdGuard Home port' - macro: '{$ADGUARD.WEB}' value: http description: 'Web protocol. Either "http" or "https"' - uuid: e6d12b9d8fd5460e9cd651d7103be49f template: 'AdGuard Home Filters by Zabbix Agent Active' name: 'AdGuard Home Filters by Zabbix Agent Active' description: | AdGuard Home template for basic filter parameters. Uses the Zabbix Agent in active mode to monitor AdGuard Home mainly for installations behind a blocking system. GitHub: https://github.com/AdguardTeam/AdGuardHome API documentation: https://github.com/AdguardTeam/AdGuardHome/tree/master/openapi Access the documentation with https://editor.swagger.io by importing the openapi.yaml file. groups: - name: Templates/Applications items: - uuid: d48f962a2e174046b9f6216548917455 name: 'AdGuard Home Filter Rules Count Sum' type: CALCULATED key: adguard.filters.rules.sum delay: 1h history: 30d trends: '0' params: 'sum(last_foreach(//adguard.filter.rules[*]))' description: | Sum of all filter rules count This item depends on the discovered filter subscriptions tags: - tag: Adguard value: filter - uuid: ec591d1f56fc41f78f1af57970f53c87 name: 'AdGuard Home Filters' type: ZABBIX_ACTIVE key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/filtering/status"]' delay: 1h history: '0' trends: '0' value_type: TEXT description: 'Raw filtering parameters' preprocessing: - type: JSONPATH parameters: - $.filters tags: - tag: Adguard value: filter discovery_rules: - uuid: ca1e935e2a7f40579b5ff434debc2c04 name: 'AdGuard Home Filters Discovery' type: DEPENDENT key: adguard.filters.discovery delay: '0' filter: conditions: - macro: '{#FILTER.ENABLED}' value: '{$ADGUARD.FILTER_ENABLED}' formulaid: A lifetime: 1d description: 'Filtering parameters discovery for filter statistics' item_prototypes: - uuid: 6307cc6d69134b60b7a73132aa186f33 name: 'AdGuard Home Filter Last Update Time - {#FILTER.NAME}' type: SCRIPT key: 'adguard.filter.lastupdate[{#FILTER.ID}]' delay: 1h history: 30d units: uptime params: | // Get the current date and time and convert to seconds var currentDate = new Date(); var currentSeconds = Math.round(currentDate.getTime() / 1000); // Convert original date-time to seconds var filterDate = new Date("{#FILTER.LASTUPDATE}"); var targetSeconds = Math.round(filterDate.getTime() / 1000); // Calculate the time difference in seconds var secondsDiff = currentSeconds - targetSeconds; return secondsDiff; description: | Filter subscription time since last update. This item gets the current date and time, convert it to seconds, converts the original date-time to seconds, then calculates the time difference between them. tags: - tag: Filter value: last_update - uuid: 7944bf9f87dd48d5a434bdd3d7bdbf7c name: 'AdGuard Home Filter Rules Count - {#FILTER.NAME}' type: CALCULATED key: 'adguard.filter.rules[{#FILTER.ID}]' delay: 1h history: 30d params: '{#FILTER.RULES}' description: 'Filter subscription rules count' tags: - tag: Filter value: rules - uuid: aab368de6d56436eb3a35dffc6ac951a name: 'AdGuard Home Filter Status - {#FILTER.NAME}' type: CALCULATED key: 'adguard.filter.status[{#FILTER.ID}]' delay: 1h history: 7d trends: '0' params: '{#FILTER.ENABLED}' description: 'Filter subscription status. True of false' valuemap: name: 'AdGuard Status Filter' preprocessing: - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' tags: - tag: Filter value: status trigger_prototypes: - uuid: d921af315f38428ca7792b72a77738ec expression: 'last(/AdGuard Home Filters by Zabbix Agent Active/adguard.filter.status[{#FILTER.ID}],#1)=0' name: 'AdGuard Home Filter is Disabled - {#FILTER.NAME}' opdata: 'Filter Status: {#FILTER.ENABLED}' url_name: 'AdGuard Home Web UI' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}' priority: INFO description: | Indicates that the AdGuard Filter is disabled Check your filter configuration Filter URL - {#FILTER.URL} tags: - tag: Status value: disabled trigger_prototypes: - uuid: 384f29dccc494697916f928cb5346879 expression: | last(/AdGuard Home Filters by Zabbix Agent Active/adguard.filter.lastupdate[{#FILTER.ID}],#1)>604800 and last(/AdGuard Home Filters by Zabbix Agent Active/adguard.filter.status[{#FILTER.ID}],#1)=0 name: 'AdGuard Home Filter not Updated in more than 7 days - {#FILTER.NAME}' opdata: 'Filter Status: {#FILTER.ENABLED}' url_name: 'AdGuard Home Web UI' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}' priority: WARNING description: | Indicates that the AdGuard Filter is enabled but not updated for more than 7 days Check your filter configuration and the filters update interval Filter URL - {#FILTER.URL} tags: - tag: Last_update value: delayed master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/filtering/status"]' lld_macro_paths: - lld_macro: '{#FILTER.ENABLED}' path: $.enabled - lld_macro: '{#FILTER.ID}' path: $.id - lld_macro: '{#FILTER.LASTUPDATE}' path: $.last_updated - lld_macro: '{#FILTER.NAME}' path: $.name - lld_macro: '{#FILTER.RULES}' path: $.rules_count - lld_macro: '{#FILTER.URL}' path: $.url macros: - macro: '{$ADGUARD.AUTH}' description: 'Basic access authentication is a Base64 encoded string of [USER:PASS]. Use "echo -n '':'' | base64" to retrieve the authorization string' - macro: '{$ADGUARD.FILTER_ENABLED}' value: 'true' description: 'True to discover only enabled filters, leave empty to discover all filters' - macro: '{$ADGUARD.PORT}' value: '3000' description: 'AdGuard Home port' - macro: '{$ADGUARD.WEB}' value: http description: 'Web protocol. Either "http" or "https"' valuemaps: - uuid: c0f9e152d7c64541a250ef9999d21798 name: 'AdGuard Status Filter' mappings: - value: '1' newvalue: Enabled - value: '0' newvalue: Disabled - uuid: 9c24037f526c4d0f9e1f5d74c9b21e7f template: 'AdGuard Home Stats by HTTP' name: 'AdGuard Home Stats by HTTP' description: | AdGuard Home template for general statistics. GitHub: https://github.com/AdguardTeam/AdGuardHome API documentation: https://github.com/AdguardTeam/AdGuardHome/tree/master/openapi Access the documentation with https://editor.swagger.io by importing the openapi.yaml file. groups: - name: Templates/Applications items: - uuid: f7b16a25866c480e8fa032fdc05e264a name: 'AdGuard Home Statistics' type: HTTP_AGENT key: adguard.stats delay: 5m history: '0' trends: '0' value_type: TEXT description: 'Raw DNS server statistics' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats' headers: - name: Authorization value: 'Basic {$ADGUARD.AUTH}' tags: - tag: Adguard value: stats - uuid: 02a799acca13471e96d47e8065332ca0 name: 'AdGuard Home Total DNS Blocks by Period' type: DEPENDENT key: adguard.stats.blocked.period delay: '0' history: 30d description: 'The number of DNS requests blocked by filtering rules for the configure period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - $.num_blocked_filtering master_item: key: adguard.stats tags: - tag: Adguard value: statistics - uuid: 17964c5c20c94d0084ce1f9a78419217 name: 'AdGuard Home Total DNS Blocks Today' type: DEPENDENT key: adguard.stats.blocked.today delay: '0' history: 30d description: 'The number of DNS requests blocked by filtering rules' preprocessing: - type: JSONPATH parameters: - '$.blocked_filtering[-1]' master_item: key: adguard.stats tags: - tag: Adguard value: statistics - uuid: 2201cc7d8bab42d498e254a1afec9568 name: 'AdGuard Home Average Processing Time' type: DEPENDENT key: adguard.stats.processing.time delay: '0' history: 30d value_type: FLOAT units: s description: 'Average time in seconds on processing a DNS request' preprocessing: - type: JSONPATH parameters: - $.avg_processing_time master_item: key: adguard.stats tags: - tag: Adguard value: statistics triggers: - uuid: ba6dbd7e6f7b4c08918fa0d45713b126 expression: | trendavg(/AdGuard Home Stats by HTTP/adguard.stats.processing.time,1h:now/h) > (baselinewma(/AdGuard Home Stats by HTTP/adguard.stats.processing.time,1h:now/h,"d",30) * 2) name: 'AdGuard Home Abnormally High Processing Time' opdata: 'Processing Time: {ITEM.LASTVALUE1}' priority: AVERAGE description: 'Indicates that the previous hour average processing time is more than double the last 30d baseline' tags: - tag: Processing value: high - uuid: 07442b2b884640b3820c3580f1de5f21 name: 'AdGuard Home Total DNS Queries by Period' type: DEPENDENT key: adguard.stats.queries.period delay: '0' history: 30d description: 'Total number of DNS queries for the configured period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - $.num_dns_queries master_item: key: adguard.stats tags: - tag: Adguard value: statistics - uuid: aa85a79069a144aa94211c32ac99e50c name: 'AdGuard Home DNS Queries per Second' type: DEPENDENT key: adguard.stats.queries.second delay: '0' history: 30d value_type: FLOAT units: Qps description: 'Number of DNS queries per second (Qps) for the update interval' preprocessing: - type: JSONPATH parameters: - '$.dns_queries[-1]' - type: CHANGE_PER_SECOND parameters: - '' master_item: key: adguard.stats tags: - tag: Adguard value: statistics triggers: - uuid: ad57492e69cf4fce8cddd3c61664b920 expression: 'avg(/AdGuard Home Stats by HTTP/adguard.stats.queries.second,#3)=0' name: 'AdGuard Home Has NO DNS Queries' opdata: 'Qps: {ITEM.LASTVALUE}' priority: AVERAGE description: | Indicates that there are no DNS queries in the last 3 checks Queries per second is 0 tags: - tag: Statistics value: unreceived - uuid: 3a64b0c688ef4192af12626a67ec5b33 name: 'AdGuard Home Total DNS Queries Today' type: DEPENDENT key: adguard.stats.queries.today delay: '0' history: 30d description: 'Total number of DNS queries for the configured period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - '$.dns_queries[-1]' master_item: key: adguard.stats tags: - tag: Adguard value: statistics - uuid: 876537ed50424d239c8b4e1e51c3235a name: 'AdGuard Home General Status' type: HTTP_AGENT key: adguard.status delay: 5m history: '0' trends: '0' value_type: TEXT description: 'AdGuard Home raw server current status and general settings' url: '{$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/status' headers: - name: Authorization value: 'Basic {$ADGUARD.AUTH}' tags: - tag: Adguard value: stats - uuid: ac953378c4b34db398c5ceb6b87cd58e name: 'AdGuard Home Status Protection' type: DEPENDENT key: adguard.status.protection delay: '0' history: 2w trends: '0' description: 'AdGuard Home server protection status. True of false.' valuemap: name: 'AdGuard Status Protection' preprocessing: - type: JSONPATH parameters: - $.protection_enabled - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' master_item: key: adguard.status tags: - tag: Adguard value: status triggers: - uuid: 146080d4e0f24c82a9d859e7131103eb expression: 'last(/AdGuard Home Stats by HTTP/adguard.status.protection,#1)=0' name: 'AdGuard Home Protection Stopped' opdata: 'Status: {ITEM.LASTVALUE}' priority: HIGH description: 'Indicates that AdGuard protection is false, it is unprotected' tags: - tag: Status value: unprotected - uuid: d79dee0a7e31406c9e1fe0694cd6f70a name: 'AdGuard Home Status Running' type: DEPENDENT key: adguard.status.run delay: '0' history: 2w trends: '0' description: 'AdGuard Home server running status. True of false.' valuemap: name: 'AdGuard Status Running' preprocessing: - type: JSONPATH parameters: - $.running - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' master_item: key: adguard.status tags: - tag: Adguard value: status triggers: - uuid: 01eb3072ca3c4f61a4c4398de3dc09f0 expression: 'avg(/AdGuard Home Stats by HTTP/adguard.status.run,#2)=0' name: 'AdGuard Home Stopped' opdata: 'Status: {ITEM.LASTVALUE}' priority: HIGH description: 'Indicates that AdGuard is not running.' tags: - tag: Status value: stopped - uuid: d38b2e3766074393ad38fb4ca851c6e9 name: 'AdGuard Home Version' type: DEPENDENT key: adguard.status.version delay: '0' history: 1w trends: '0' value_type: CHAR description: 'Information about the current version of AdGuard Home.' inventory_link: SOFTWARE_APP_B preprocessing: - type: JSONPATH parameters: - $.version - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: adguard.status tags: - tag: Adguard value: status triggers: - uuid: 77696661459d45859442ef65456567cb expression: 'change(/AdGuard Home Stats by HTTP/adguard.status.version)=1' name: 'AdGuard Home Version Changed' opdata: 'Version: {ITEM.VALUE}' priority: INFO description: 'Indicates that AdGuard version has changed' tags: - tag: Version value: changed macros: - macro: '{$ADGUARD.AUTH}' description: 'Basic access authentication is a Base64 encoded string of [USER:PASS]. Use "echo -n '':'' | base64" to retrieve the authorization string' - macro: '{$ADGUARD.PORT}' value: '3000' description: 'AdGuard Home port' - macro: '{$ADGUARD.STAT.DAYS}' value: '30' description: 'Set here your statistics time period in days' - macro: '{$ADGUARD.WEB}' value: http description: 'Web protocol. Either "http" or "https"' valuemaps: - uuid: 56fd68a1983948a2970bb39d884cc49b name: 'AdGuard Status Filter' mappings: - value: '1' newvalue: Enabled - value: '0' newvalue: Disabled - uuid: 51b0ddec95cc4180baebe38eecc7f606 name: 'AdGuard Status Protection' mappings: - value: '1' newvalue: Protected - value: '0' newvalue: Unprotected - uuid: d677d8e8d071461a8f477f8ba46aa9d5 name: 'AdGuard Status Running' mappings: - value: '1' newvalue: Running - value: '0' newvalue: Stopped - uuid: 6e3e12e268bb434d8d708434e0663da9 template: 'AdGuard Home Stats by Zabbix Agent Active' name: 'AdGuard Home Stats by Zabbix Agent Active' description: | AdGuard Home template for general statistics. Uses the Zabbix Agent in active mode to monitor AdGuard Home, mainly for installations behind a blocking system. GitHub: https://github.com/AdguardTeam/AdGuardHome API documentation: https://github.com/AdguardTeam/AdGuardHome/tree/master/openapi Access the documentation with https://editor.swagger.io by importing the openapi.yaml file. groups: - name: Templates/Applications items: - uuid: a3fba1ee5fd64740944b1d94dc4ad154 name: 'AdGuard Home Total DNS Blocks by Period' type: DEPENDENT key: adguard.stats.blocked.period delay: '0' history: 30d description: 'The number of DNS requests blocked by filtering rules for the configure period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - $.num_blocked_filtering master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics - uuid: 6d4423a953f646c28c8be0bd6c9388c1 name: 'AdGuard Home Total DNS Blocks Today' type: DEPENDENT key: adguard.stats.blocked.today delay: '0' history: 30d description: 'The number of DNS requests blocked by filtering rules' preprocessing: - type: JSONPATH parameters: - '$.blocked_filtering[-1]' master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics - uuid: 74a205ee6ac3425faa49172ef7c9c459 name: 'AdGuard Home Average Processing Time' type: DEPENDENT key: adguard.stats.processing.time delay: '0' history: 30d value_type: FLOAT units: s description: 'Average time in seconds on processing a DNS request' preprocessing: - type: JSONPATH parameters: - $.avg_processing_time master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics triggers: - uuid: 51d5bd84e5a24bb29c0c13fad3ae07dc expression: | trendavg(/AdGuard Home Stats by Zabbix Agent Active/adguard.stats.processing.time,1h:now/h) > (baselinewma(/AdGuard Home Stats by Zabbix Agent Active/adguard.stats.processing.time,1h:now/h,"d",30) * 2) name: 'AdGuard Home Abnormally High Processing Time' opdata: 'Processing Time: {ITEM.LASTVALUE1}' priority: AVERAGE description: 'Indicates that the previous hour average processing time is more than double the last 30d baseline' tags: - tag: Processing value: high - uuid: 6f462eb14eb4445c9b6b4126be693a38 name: 'AdGuard Home Total DNS Queries by Period' type: DEPENDENT key: adguard.stats.queries.period delay: '0' history: 30d description: 'Total number of DNS queries for the configured period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - $.num_dns_queries master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics - uuid: 1bd5e7c4508e4188baaa238364afc032 name: 'AdGuard Home DNS Queries per Second' type: DEPENDENT key: adguard.stats.queries.second delay: '0' history: 30d value_type: FLOAT units: Qps description: 'Number of DNS queries per second (Qps) for the update interval' preprocessing: - type: JSONPATH parameters: - '$.dns_queries[-1]' - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics triggers: - uuid: ca6ac4eaea534a8eac0041027c8dcca4 expression: 'avg(/AdGuard Home Stats by Zabbix Agent Active/adguard.stats.queries.second,#3)=0' name: 'AdGuard Home Has NO DNS Queries' opdata: 'Qps: {ITEM.LASTVALUE}' priority: AVERAGE description: | Indicates that there are no DNS queries in the last 3 checks Queries per second is 0 tags: - tag: Statistics value: unreceived - uuid: 37a7d37e80904d74bb6e8fc57195d8f1 name: 'AdGuard Home Total DNS Queries Today' type: DEPENDENT key: adguard.stats.queries.today delay: '0' history: 30d description: 'Total number of DNS queries for the configured period, {$ADGUARD.STAT.DAYS}' preprocessing: - type: JSONPATH parameters: - '$.dns_queries[-1]' master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' tags: - tag: Adguard value: statistics - uuid: 19253152efd545c0b268c6a94c1685b7 name: 'AdGuard Home Status Protection' type: DEPENDENT key: adguard.status.protection delay: '0' history: 2w trends: '0' description: 'AdGuard Home server protection status. True of false.' valuemap: name: 'AdGuard Status Protection' preprocessing: - type: JSONPATH parameters: - $.protection_enabled - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/status"]' tags: - tag: Adguard value: status triggers: - uuid: c35b4008311f40c09f07cbd16c90656c expression: 'last(/AdGuard Home Stats by Zabbix Agent Active/adguard.status.protection,#1)=0' name: 'AdGuard Home Protection Stopped' opdata: 'Status: {ITEM.LASTVALUE}' priority: HIGH description: 'Indicates that AdGuard protection is false, it is unprotected' tags: - tag: Status value: unprotected - uuid: 5bf45f970c484f63a194b56669177a56 name: 'AdGuard Home Status Running' type: DEPENDENT key: adguard.status.run delay: '0' history: 2w trends: '0' description: 'AdGuard Home server running status. True of false.' valuemap: name: 'AdGuard Status Running' preprocessing: - type: JSONPATH parameters: - $.running - type: STR_REPLACE parameters: - 'true' - '1' - type: STR_REPLACE parameters: - 'false' - '0' master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/status"]' tags: - tag: Adguard value: status triggers: - uuid: 430c76d8ffc24e07852ab717af0f8708 expression: 'avg(/AdGuard Home Stats by Zabbix Agent Active/adguard.status.run,#2)=0' name: 'AdGuard Home Stopped' opdata: 'Status: {ITEM.LASTVALUE}' priority: HIGH description: 'Indicates that AdGuard is not running.' tags: - tag: Status value: stopped - uuid: 8dd5a62bc4f54a53bd1310825481fd77 name: 'AdGuard Home Version' type: DEPENDENT key: adguard.status.version delay: '0' history: 1w trends: '0' value_type: CHAR description: 'Information about the current version of AdGuard Home.' inventory_link: SOFTWARE_APP_B preprocessing: - type: JSONPATH parameters: - $.version - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/status"]' tags: - tag: Adguard value: status triggers: - uuid: 5ff9b2c4e64543418753fefd090a825e expression: 'change(/AdGuard Home Stats by Zabbix Agent Active/adguard.status.version)=1' name: 'AdGuard Home Version Changed' opdata: 'Version: {ITEM.VALUE}' priority: INFO description: 'Indicates that AdGuard version has changed' tags: - tag: Version value: changed - uuid: e8d3ec549c51426e9df6ae7c70f189dd name: 'AdGuard Home Statistics' type: ZABBIX_ACTIVE key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/stats"]' delay: 5m history: '0' trends: '0' value_type: TEXT description: 'Raw DNS server statistics' tags: - tag: Adguard value: json - uuid: 492fa0bfcbdd4231af5b7853b79d6d3c name: 'AdGuard Home General Status' type: ZABBIX_ACTIVE key: 'system.run["curl -s -H ''Authorization:Basic {$ADGUARD.AUTH}'' {$ADGUARD.WEB}://{HOST.CONN}:{$ADGUARD.PORT}/control/status"]' delay: 5m history: '0' trends: '0' value_type: TEXT description: 'AdGuard Home raw server current status and general settings' tags: - tag: Adguard value: json macros: - macro: '{$ADGUARD.AUTH}' description: 'Basic access authentication is a Base64 encoded string of [USER:PASS]. Use "echo -n '':'' | base64" to retrieve the authorization string' - macro: '{$ADGUARD.PORT}' value: '3000' description: 'AdGuard Home port' - macro: '{$ADGUARD.STAT.DAYS}' value: '30' description: 'Set here your statistics time period in days' - macro: '{$ADGUARD.WEB}' value: http description: 'Web protocol. Either "http" or "https"' valuemaps: - uuid: ea4cc66e83a14ee78549852cdf03b0c5 name: 'AdGuard Status Filter' mappings: - value: '1' newvalue: Enabled - value: '0' newvalue: Disabled - uuid: 2fa6bad0b845408eb7e7a4e7a1008b97 name: 'AdGuard Status Protection' mappings: - value: '1' newvalue: Protected - value: '0' newvalue: Unprotected - uuid: 0c0aad3471784a5583c6936c66b2423c name: 'AdGuard Status Running' mappings: - value: '1' newvalue: Running - value: '0' newvalue: Stopped