zabbix_export: version: '6.0' date: '2021-11-21T21:46:12Z' groups: - uuid: b1a65eeba3cc4c9fb198e8f18f433839 name: 'Templates/Operating Systems' templates: - uuid: 46207700ef30416bafabf0157c305156 template: 'OS Windows Disk Space' name: 'OS Windows Disk Space' description: | ## Description includes used disk space Trigger goes below a certain level. the Default is 2GB but is configurable through macro. ## Overview **Features** ------------ a modified version of the disk space monitoring part of the official Operating System Windows template. instead of using a percentage based trigger for disk space monitoring this template use a configurable fixed disk space to trigger on. modify the macro in the template to change the default or modify the macro on a host to have it use different values. ## Author Stefan Sonneveld groups: - name: 'Templates/Operating Systems' discovery_rules: - uuid: 805c14e23639447e95779c969616deed name: 'Mounted filesystem discovery' key: vfs.fs.discovery delay: '3600' filter: conditions: - macro: '{#FSTYPE}' value: '@File systems for discovery' formulaid: A lifetime: 10d description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".' item_prototypes: - uuid: 9b70c14b56bc4bf494b3498c3c4c81ff name: 'Free disk space on {#FSNAME}' key: 'vfs.fs.size[{#FSNAME},free]' delay: '60' history: 7d units: B request_method: POST tags: - tag: Application value: Filesystems trigger_prototypes: - uuid: dea2174512ff49f2b53ed4a0b6db9f5f expression: 'last(/OS Windows Disk Space/vfs.fs.size[{#FSNAME},free])<{$DISK_UTIL_CRIT}' name: 'Free disk space on {HOST.NAME} is less than {$DISK_UTIL_CRIT} on volume {#FSNAME}' priority: AVERAGE - uuid: 93b8d98b5066466a806baec5053e4c23 expression: 'last(/OS Windows Disk Space/vfs.fs.size[{#FSNAME},free])<{$DISK_UTIL_WARN}' name: 'Free disk space on {HOST.NAME} is less than {$DISK_UTIL_WARN} on volume {#FSNAME}' priority: WARNING dependencies: - name: 'Free disk space on {HOST.NAME} is less than {$DISK_UTIL_CRIT} on volume {#FSNAME}' expression: 'last(/OS Windows Disk Space/vfs.fs.size[{#FSNAME},free])<{$DISK_UTIL_CRIT}' - uuid: 87cdb52875934dfdbe1274147f8ab27c name: 'Free disk space on {#FSNAME} (percentage)' key: 'vfs.fs.size[{#FSNAME},pfree]' delay: '60' history: 7d value_type: FLOAT units: '%' request_method: POST tags: - tag: Application value: Filesystems - uuid: a23bbc44dba74c11a3cd26a584806ee7 name: 'Total disk space on {#FSNAME}' key: 'vfs.fs.size[{#FSNAME},total]' delay: '3600' history: 7d units: B request_method: POST tags: - tag: Application value: Filesystems - uuid: b35f58159faf467b8ddd8cd8bdda9fe9 name: 'Used disk space on {#FSNAME}' key: 'vfs.fs.size[{#FSNAME},used]' delay: '60' history: 7d units: B request_method: POST tags: - tag: Application value: Filesystems graph_prototypes: - uuid: 7c605194ae9a43f9afbdb9d8301c0e86 name: 'Disk space usage {#FSNAME}' width: '600' height: '340' show_work_period: 'NO' show_triggers: 'NO' type: PIE show_3d: 'YES' graph_items: - color: C80000 type: GRAPH_SUM item: host: 'OS Windows Disk Space' key: 'vfs.fs.size[{#FSNAME},total]' - sortorder: '1' color: 00C800 item: host: 'OS Windows Disk Space' key: 'vfs.fs.size[{#FSNAME},free]' - uuid: 733179f159a74c738f574641e2b811d8 name: 'Free Disk space on {#FSNAME}' graph_items: - color: F63100 item: host: 'OS Windows Disk Space' key: 'vfs.fs.size[{#FSNAME},total]' - sortorder: '1' color: 199C0D item: host: 'OS Windows Disk Space' key: 'vfs.fs.size[{#FSNAME},free]' request_method: POST macros: - macro: '{$DISK_UTIL_CRIT}' value: 200M - macro: '{$DISK_UTIL_WARN}' value: 2G