zabbix_export: version: '6.0' date: '2021-11-21T21:34:35Z' groups: - uuid: b1a65eeba3cc4c9fb198e8f18f433839 name: 'Templates/Operating Systems' templates: - uuid: 33f96f010e144e11a3a2a98c48d2e789 template: 'OS Windows WMI' name: 'OS Windows WMI' description: | ## Overview Template for receiving stats with zbxwmi script. This method allows to retrieve stats remotely by WMI without installing agent to OS. You can get script from: - with tips and installation manual. Requires python 3 script (check link above). ## Author Vitaly Chekryzhev groups: - name: 'Templates/Operating Systems' items: - uuid: 296c6aaed6224d378150493177de1e5d name: 'CPU #1' type: DEPENDENT key: cpu1 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[0].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 4edece0126054b999d990ba634e478d4 name: 'CPU #2' type: DEPENDENT key: cpu2 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[1].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: dd0619da22304d75bd36116ec7cd32a6 name: 'CPU #3' type: DEPENDENT key: cpu3 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[2].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 35ff66a8bdd643bfacf2c44ac19e6102 name: 'CPU #4' type: DEPENDENT key: cpu4 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[3].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 1ffa5cc86cbb4d9ebdb71f0fa00fa6de name: 'CPU #5' type: DEPENDENT key: cpu5 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[4].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 84c10fc889c149a5b2ed3fe93736da87 name: 'CPU #6' type: DEPENDENT key: cpu6 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[5].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 2eb50b07f22f4cf697064f3abb32a502 name: 'CPU #7' type: DEPENDENT key: cpu7 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[6].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: ef472b4161a247e4aabcd639732c3273 name: 'CPU #8' type: DEPENDENT key: cpu8 delay: '0' value_type: FLOAT units: Percent preprocessing: - type: JSONPATH parameters: - '$[7].PercentProcessorTime' master_item: key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: WMI - uuid: 05ffa275f4e24464b9fe299faa1d855d name: 'Read / sec' type: DEPENDENT key: DiskReadsPersec delay: '0' preprocessing: - type: JSONPATH parameters: - '$[0].DiskReadsPersec' - type: SIMPLE_CHANGE parameters: - '' master_item: key: 'zbxwmi["-action","json","-fields","DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec","-filter","Name=''_Total''","Win32_PerfRawData_PerfDisk_LogicalDisk","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: Storage - uuid: 6731d19f8ca443d7bb44cc00a42b9ca9 name: 'Writes / sec' type: DEPENDENT key: DiskWritesPersec delay: '0' preprocessing: - type: JSONPATH parameters: - '$[0].DiskWritesPersec' - type: SIMPLE_CHANGE parameters: - '' master_item: key: 'zbxwmi["-action","json","-fields","DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec","-filter","Name=''_Total''","Win32_PerfRawData_PerfDisk_LogicalDisk","{$WMI_AUTHFILE}",{HOST.HOST}]' tags: - tag: Application value: Storage - uuid: c0e6b448742645beb9ea9d6f4f32980c name: 'Disk I/O' type: EXTERNAL key: 'zbxwmi["-action","json","-fields","DiskWritesPersec,DiskWriteBytesPersec,DiskReadsPersec,DiskReadBytesPersec","-filter","Name=''_Total''","Win32_PerfRawData_PerfDisk_LogicalDisk","{$WMI_AUTHFILE}",{HOST.HOST}]' delay: 5m history: '3600' trends: '0' value_type: TEXT tags: - tag: Application value: Storage - uuid: ecce4f96b5504126a3615e9200b912ce name: Processors type: EXTERNAL key: 'zbxwmi["-action","json","-fields","PercentProcessorTime","-filter","Name<>''_Total''","Win32_PerfFormattedData_PerfOS_Processor","{$WMI_AUTHFILE}",{HOST.HOST}]' delay: 5m history: '3600' trends: '0' value_type: TEXT tags: - tag: Application value: WMI discovery_rules: - uuid: 44eb351254794264a238211dc820c971 name: 'Find drive' type: EXTERNAL key: 'zbxwmi["-action","discover","-k","DeviceID","-fields","VolumeName","-filter","MediaType=12","Win32_LogicalDisk","{$WMI_AUTHFILE}",{HOST.HOST}]' delay: 1h lifetime: 7d description: 'Find local disk drive' item_prototypes: - uuid: 018c531a0fee448bbd86922d1c136ee7 name: 'Free Space {#WMI.DEVICEID}' type: DEPENDENT key: 'FreeSpace[{#WMI.DEVICEID}]' delay: '0' units: byte preprocessing: - type: JSONPATH parameters: - '$[0].FreeSpace' master_item: key: 'zbxwmi["-action","json","-k","DeviceID","-fields","FreeSpace,Size","-item","{#WMI.DEVICEID}","Win32_LogicalDisk","{$WMI_AUTHFILE}","{HOST.HOST}"]' tags: - tag: Application value: Disk - tag: Application value: WMI trigger_prototypes: - uuid: ea3f1420320a448f844ffc6b3394c71e expression: 'avg(/OS Windows WMI/FreeSpace[{#WMI.DEVICEID}],7200s)<2147483648' name: 'Low disk space' priority: WARNING - uuid: a7b84879a4c54f838aab0b7af827e2ec name: 'Size {#WMI.DEVICEID}' type: DEPENDENT key: 'Size[{#WMI.DEVICEID}]' delay: '0' units: byte preprocessing: - type: JSONPATH parameters: - '$[0].Size' master_item: key: 'zbxwmi["-action","json","-k","DeviceID","-fields","FreeSpace,Size","-item","{#WMI.DEVICEID}","Win32_LogicalDisk","{$WMI_AUTHFILE}","{HOST.HOST}"]' tags: - tag: Application value: Disk - tag: Application value: WMI - uuid: 004833ea76f2460193d9aa220e6b63c9 name: 'Used {#WMI.DEVICEID}' type: CALCULATED key: 'Used[{#WMI.DEVICEID}]' delay: 5m units: byte params: 'last(//Size[{#WMI.DEVICEID}])-last(//FreeSpace[{#WMI.DEVICEID}])' tags: - tag: Application value: Disk - tag: Application value: WMI - uuid: b03f72930e3e45cebbfa4b94262281d2 name: 'Disk info {#WMI.DEVICEID}' type: EXTERNAL key: 'zbxwmi["-action","json","-k","DeviceID","-fields","FreeSpace,Size","-item","{#WMI.DEVICEID}","Win32_LogicalDisk","{$WMI_AUTHFILE}","{HOST.HOST}"]' delay: 5m history: '3600' trends: '0' value_type: TEXT tags: - tag: Application value: Disk - tag: Application value: WMI graph_prototypes: - uuid: b3b1cf77135c42668ad44925e4c6c797 name: 'Disk space {#WMI.DEVICEID} ({#WMI.VOLUMENAME})' width: '500' height: '120' show_work_period: 'NO' show_triggers: 'NO' ymin_type_1: FIXED ymax_type_1: ITEM ymax_item_1: host: 'OS Windows WMI' key: 'Size[{#WMI.DEVICEID}]' graph_items: - color: FFFFFF item: host: 'OS Windows WMI' key: 'Size[{#WMI.DEVICEID}]' - sortorder: '1' drawtype: FILLED_REGION color: 3333FF item: host: 'OS Windows WMI' key: 'Used[{#WMI.DEVICEID}]' - sortorder: '2' color: DD0000 item: host: 'OS Windows WMI' key: 'FreeSpace[{#WMI.DEVICEID}]' macros: - macro: '{$WMI_AUTHFILE}' value: /etc/zabbix/wmi.pw graphs: - uuid: 72dba73a51904d1c99177989ea6dc35c name: 'Disk I/O' ymin_type_1: FIXED graph_items: - color: 1A7C11 item: host: 'OS Windows WMI' key: DiskReadsPersec - sortorder: '1' color: F63100 item: host: 'OS Windows WMI' key: DiskWritesPersec - uuid: 81a457776c414c4d8969e1eb5d78a929 name: Processors width: '500' show_work_period: 'NO' show_triggers: 'NO' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: FILLED_REGION color: 00CC00 item: host: 'OS Windows WMI' key: cpu1 - sortorder: '1' drawtype: FILLED_REGION color: '009900' item: host: 'OS Windows WMI' key: cpu2 - sortorder: '2' drawtype: FILLED_REGION color: '007700' item: host: 'OS Windows WMI' key: cpu3 - sortorder: '3' drawtype: FILLED_REGION color: '004400' item: host: 'OS Windows WMI' key: cpu4 - sortorder: '4' drawtype: FILLED_REGION color: 3333FF item: host: 'OS Windows WMI' key: cpu5 - sortorder: '5' drawtype: FILLED_REGION color: 0000DD item: host: 'OS Windows WMI' key: cpu6 - sortorder: '6' drawtype: FILLED_REGION color: 0000AA item: host: 'OS Windows WMI' key: cpu7 - sortorder: '7' drawtype: FILLED_REGION color: '000044' item: host: 'OS Windows WMI' key: cpu8