zabbix_export: version: '6.2' date: '2022-06-07T19:36:47Z' template_groups: - uuid: 57b7ae836ca64446ba2c296389c009b7 name: Templates/Modules templates: - uuid: b3dd7c4974f442d68c53a79056bc5388 template: 'HOST-RESOURCES-MIB CPU SNMP' name: 'HOST-RESOURCES-MIB CPU SNMP' description: | Requires Zabbix server 4.0.14, 4.2.8, 4.4.0 or newer (JSONPath function avg() used with types autoconversion). MIBs used: HOST-RESOURCES-MIB Template tooling version used: 0.41 groups: - name: Templates/Modules items: - uuid: 76b66d024509446ea4e7a48439f8d406 name: 'CPU utilization' type: SNMP_AGENT snmp_oid: 'discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]' key: system.cpu.util history: 7d value_type: FLOAT units: '%' description: | MIB: HOST-RESOURCES-MIB The average, over the last minute, of the percentage of time that processors was not idle. Implementations may approximate this one minute smoothing period if necessary. preprocessing: - type: JSONPATH parameters: - '$..[''{#CPU.UTIL}''].avg()' tags: - tag: component value: cpu triggers: - uuid: bb8b2193ed4c437284d569a38f500367 expression: 'min(/HOST-RESOURCES-MIB CPU SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' name: 'High CPU utilization' event_name: 'High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' opdata: 'Current utilization: {ITEM.LASTVALUE1}' priority: WARNING description: 'CPU utilization is too high. The system might be slow to respond.' tags: - tag: scope value: performance macros: - macro: '{$CPU.UTIL.CRIT}' value: '90' - uuid: a2718bb9168a451fae8fc97486176943 template: 'HOST-RESOURCES-MIB memory SNMP' name: 'HOST-RESOURCES-MIB memory SNMP' description: | MIBs used: HOST-RESOURCES-MIB Template tooling version used: 0.41 groups: - name: Templates/Modules discovery_rules: - uuid: 232e52a9b3df42f2b539c5924edc20c8 name: 'Memory discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#MEMNAME},1.3.6.1.2.1.25.2.3.1.3,{#MEMTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' key: vm.memory.discovery delay: 1h filter: evaltype: AND conditions: - macro: '{#MEMTYPE}' value: '{$MEMORY.TYPE.MATCHES}' formulaid: C - macro: '{#MEMTYPE}' value: '{$MEMORY.TYPE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: D - macro: '{#MEMNAME}' value: '{$MEMORY.NAME.MATCHES}' formulaid: A - macro: '{#MEMNAME}' value: '{$MEMORY.NAME.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: B description: 'HOST-RESOURCES-MIB::hrStorage discovery with memory filter' item_prototypes: - uuid: 03d6c47431e74cd8b1d9faf95e9bc756 name: '{#MEMNAME}: Total memory' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' key: 'vm.memory.total[hrStorageSize.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: memory - uuid: f5b701faf10d40d596d04e1d921861f9 name: '{#MEMNAME}: Used memory' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' key: 'vm.memory.used[hrStorageUsed.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: memory - uuid: 99961a81ae4a474ea157f108c8014c77 name: '{#MEMNAME}: Memory utilization' type: CALCULATED key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' history: 7d value_type: FLOAT units: '%' params: 'last(//vm.memory.used[hrStorageUsed.{#SNMPINDEX}])/last(//vm.memory.total[hrStorageSize.{#SNMPINDEX}])*100' description: 'Memory utilization in %.' tags: - tag: component value: memory trigger_prototypes: - uuid: fb87fa900e404e2ba53fa5769fecc511 expression: 'min(/HOST-RESOURCES-MIB memory SNMP/vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' name: '{#MEMNAME}: High memory utilization' event_name: '{#MEMNAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' priority: AVERAGE description: 'The system is running out of free memory.' tags: - tag: scope value: capacity - tag: scope value: performance graph_prototypes: - uuid: 47a47f92e42047fe937e01ad163ca665 name: '{#MEMNAME}: Memory utilization' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: 'HOST-RESOURCES-MIB memory SNMP' key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' macros: - macro: '{$MEMORY.NAME.MATCHES}' value: '.*' description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' - macro: '{$MEMORY.NAME.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' - macro: '{$MEMORY.TYPE.MATCHES}' value: '.*(\.2|hrStorageRam)$' description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' - macro: '{$MEMORY.TYPE.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' - macro: '{$MEMORY.UTIL.MAX}' value: '90' description: 'The warning threshold of the "Physical memory: Memory utilization" item.' - uuid: 5c70662d333246668444276cb011e646 template: 'HOST-RESOURCES-MIB SNMP' name: 'HOST-RESOURCES-MIB SNMP' description: | HOST-RESOURCES-MIB: CPU, memory and storage(vfs.fs.file) linked together. MIBs used: HOST-RESOURCES-MIB Template tooling version used: 0.41 groups: - name: Templates/Modules items: - uuid: a7e177fc60344bb59206102c14db6e65 name: 'CPU utilization' type: SNMP_AGENT snmp_oid: 'discovery[{#CPU.UTIL},1.3.6.1.2.1.25.3.3.1.2]' key: system.cpu.util history: 7d value_type: FLOAT units: '%' description: | MIB: HOST-RESOURCES-MIB The average, over the last minute, of the percentage of time that processors was not idle. Implementations may approximate this one minute smoothing period if necessary. preprocessing: - type: JSONPATH parameters: - '$..[''{#CPU.UTIL}''].avg()' tags: - tag: component value: cpu triggers: - uuid: d1b02854c6cd473090735eabfbd4d908 expression: 'min(/HOST-RESOURCES-MIB SNMP/system.cpu.util,5m)>{$CPU.UTIL.CRIT}' name: 'High CPU utilization' event_name: 'High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)' opdata: 'Current utilization: {ITEM.LASTVALUE1}' priority: WARNING description: 'CPU utilization is too high. The system might be slow to respond.' tags: - tag: scope value: performance discovery_rules: - uuid: 083012fc49c248cc8869484266c5bc35 name: 'Storage discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#FSNAME},1.3.6.1.2.1.25.2.3.1.3,{#FSTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' key: 'vfs.fs.discovery[snmp]' delay: 1h filter: evaltype: AND conditions: - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.MATCHES}' formulaid: C - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: D - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.MATCHES}' formulaid: A - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: B description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' item_prototypes: - uuid: a9b4d7a5ea274c17b75cbc18a42734f5 name: '{#FSNAME}: Space utilization' type: CALCULATED key: 'vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}]' history: 7d value_type: FLOAT units: '%' params: '(last(//vfs.fs.used[hrStorageUsed.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' description: 'Space utilization in % for {#FSNAME}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' - uuid: fe61fddd59e34574b4cde449a4a1bd0e name: '{#FSNAME}: Total space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' - uuid: 7e5e0fae3cd24a8fb0a526d726599915 name: '{#FSNAME}: Used space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' trigger_prototypes: - uuid: 8283f8b8663f444aad85633010615c15 expression: | last(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) name: '{#FSNAME}: Disk space is critically low' event_name: '{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)' opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' priority: AVERAGE description: | Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}. Second condition should be one of the following: - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"}. - The disk will be full in less than 24 hours. manual_close: 'YES' tags: - tag: scope value: availability - tag: scope value: capacity - uuid: 2d9c475d718b4c2ba14b129f66014f75 expression: | last(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) name: '{#FSNAME}: Disk space is low' event_name: '{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)' opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' priority: WARNING description: | Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}. Second condition should be one of the following: - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"}. - The disk will be full in less than 24 hours. manual_close: 'YES' dependencies: - name: '{#FSNAME}: Disk space is critically low' expression: | last(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) tags: - tag: scope value: availability - tag: scope value: capacity graph_prototypes: - uuid: 347d802fcd114cad882a2299eb2b02de name: '{#FSNAME}: Disk space usage' width: '600' height: '340' type: PIE show_3d: 'YES' graph_items: - color: '969696' calc_fnc: LAST type: GRAPH_SUM item: host: 'HOST-RESOURCES-MIB SNMP' key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' - sortorder: '1' color: C80000 calc_fnc: LAST item: host: 'HOST-RESOURCES-MIB SNMP' key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' - uuid: 16739aff044f4479a33e9157759e2980 name: 'Memory discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#MEMNAME},1.3.6.1.2.1.25.2.3.1.3,{#MEMTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' key: vm.memory.discovery delay: 1h filter: evaltype: AND conditions: - macro: '{#MEMTYPE}' value: '{$MEMORY.TYPE.MATCHES}' formulaid: C - macro: '{#MEMTYPE}' value: '{$MEMORY.TYPE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: D - macro: '{#MEMNAME}' value: '{$MEMORY.NAME.MATCHES}' formulaid: A - macro: '{#MEMNAME}' value: '{$MEMORY.NAME.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: B description: 'HOST-RESOURCES-MIB::hrStorage discovery with memory filter' item_prototypes: - uuid: 3eadb443e39d41ac9f332cc7dce986be name: '{#MEMNAME}: Total memory' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' key: 'vm.memory.total[hrStorageSize.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: memory - uuid: c555b61dfac744c3abb77d014efc8e0d name: '{#MEMNAME}: Used memory' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' key: 'vm.memory.used[hrStorageUsed.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: memory - uuid: 01e2f5515f2145a68d93a4637abfe4e9 name: '{#MEMNAME}: Memory utilization' type: CALCULATED key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' history: 7d value_type: FLOAT units: '%' params: 'last(//vm.memory.used[hrStorageUsed.{#SNMPINDEX}])/last(//vm.memory.total[hrStorageSize.{#SNMPINDEX}])*100' description: 'Memory utilization in %.' tags: - tag: component value: memory trigger_prototypes: - uuid: 730a76bd19a24a55be24f72175251046 expression: 'min(/HOST-RESOURCES-MIB SNMP/vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}],5m)>{$MEMORY.UTIL.MAX}' name: '{#MEMNAME}: High memory utilization' event_name: '{#MEMNAME}: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)' priority: AVERAGE description: 'The system is running out of free memory.' tags: - tag: scope value: capacity - tag: scope value: performance graph_prototypes: - uuid: ce1f2938b1da4b1c9d78b99e9e1e3435 name: '{#MEMNAME}: Memory utilization' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: 'HOST-RESOURCES-MIB SNMP' key: 'vm.memory.util[memoryUsedPercentage.{#SNMPINDEX}]' macros: - macro: '{$CPU.UTIL.CRIT}' value: '90' - macro: '{$MEMORY.NAME.MATCHES}' value: '.*' description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' - macro: '{$MEMORY.NAME.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' - macro: '{$MEMORY.TYPE.MATCHES}' value: '.*(\.2|hrStorageRam)$' description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level.' - macro: '{$MEMORY.TYPE.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in memory discovery. Can be overridden on the host or linked template level if you need to filter out results.' - macro: '{$MEMORY.UTIL.MAX}' value: '90' description: 'The warning threshold of the "Physical memory: Memory utilization" item.' - macro: '{$VFS.FS.FREE.MIN.CRIT}' value: 5G description: 'The critical threshold of the filesystem utilization.' - macro: '{$VFS.FS.FREE.MIN.WARN}' value: 10G description: 'The warning threshold of the filesystem utilization.' - macro: '{$VFS.FS.FSNAME.MATCHES}' value: .+ description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' value: ^(/dev|/sys|/run|/proc|.+/shm$) description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSTYPE.MATCHES}' value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$' description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.PUSED.MAX.CRIT}' value: '90' - macro: '{$VFS.FS.PUSED.MAX.WARN}' value: '80' dashboards: - uuid: 623ea1bf76fc4e509e2b33b0642fb208 name: 'System performance' pages: - widgets: - type: GRAPH_CLASSIC width: '12' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: host: 'HOST-RESOURCES-MIB SNMP' name: 'CPU utilization' - type: GRAPH_PROTOTYPE 'y': '5' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '2' - type: INTEGER name: columns value: '1' - type: INTEGER name: rows value: '1' - type: GRAPH_PROTOTYPE name: graphid value: host: 'HOST-RESOURCES-MIB SNMP' name: '{#MEMNAME}: Memory utilization' - type: GRAPH_PROTOTYPE 'y': '10' width: '12' height: '5' fields: - type: INTEGER name: source_type value: '2' - type: INTEGER name: columns value: '1' - type: INTEGER name: rows value: '1' - type: GRAPH_PROTOTYPE name: graphid value: host: 'HOST-RESOURCES-MIB SNMP' name: '{#FSNAME}: Disk space usage' - uuid: f6572ac29240452596e9f7b2a7ebb408 template: 'HOST-RESOURCES-MIB storage SNMP' name: 'HOST-RESOURCES-MIB storage SNMP' description: | MIBs used: HOST-RESOURCES-MIB Template tooling version used: 0.41 groups: - name: Templates/Modules discovery_rules: - uuid: 924e22f54534410fbc596042b8378a60 name: 'Storage discovery' type: SNMP_AGENT snmp_oid: 'discovery[{#FSNAME},1.3.6.1.2.1.25.2.3.1.3,{#FSTYPE},1.3.6.1.2.1.25.2.3.1.2,{#ALLOC_UNITS},1.3.6.1.2.1.25.2.3.1.4]' key: 'vfs.fs.discovery[snmp]' delay: 1h filter: evaltype: AND conditions: - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.MATCHES}' formulaid: C - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: D - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.MATCHES}' formulaid: A - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.NOT_MATCHES}' operator: NOT_MATCHES_REGEX formulaid: B description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.' item_prototypes: - uuid: 6d5512358f364ec1b8f0aed223d56d32 name: '{#FSNAME}: Space utilization' type: CALCULATED key: 'vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}]' history: 7d value_type: FLOAT units: '%' params: '(last(//vfs.fs.used[hrStorageUsed.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100' description: 'Space utilization in % for {#FSNAME}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' - uuid: de2da3226b2145f3943d18ce59f2d803 name: '{#FSNAME}: Total space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}' key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main storage allocated to a buffer pool might be modified or the amount of disk space allocated to virtual storage might be modified. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' - uuid: 719bf2d97348421cb02544efe5caf1bb name: '{#FSNAME}: Used space' type: SNMP_AGENT snmp_oid: '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}' key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' history: 7d units: B description: | MIB: HOST-RESOURCES-MIB The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits. preprocessing: - type: MULTIPLIER parameters: - '{#ALLOC_UNITS}' tags: - tag: component value: storage - tag: filesystem value: '{#FSNAME}' trigger_prototypes: - uuid: 9fbb4a0ceeba4c9e935f54610d5f1afb expression: | last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) name: '{#FSNAME}: Disk space is critically low' event_name: '{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)' opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' priority: AVERAGE description: | Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}. Second condition should be one of the following: - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"}. - The disk will be full in less than 24 hours. manual_close: 'YES' tags: - tag: scope value: availability - tag: scope value: capacity - uuid: 5db5f43d1c3b4b1f91bef16ec1090945 expression: | last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) name: '{#FSNAME}: Disk space is low' event_name: '{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%)' opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})' priority: WARNING description: | Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}. Second condition should be one of the following: - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"}. - The disk will be full in less than 24 hours. manual_close: 'YES' dependencies: - name: '{#FSNAME}: Disk space is critically low' expression: | last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and ((last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/HOST-RESOURCES-MIB storage SNMP/vfs.fs.pused[storageUsedPercentage.{#SNMPINDEX}],1h,100)<1d) tags: - tag: scope value: availability - tag: scope value: capacity graph_prototypes: - uuid: c5af27b4061c4e9795489f7bc25c42dd name: '{#FSNAME}: Disk space usage' width: '600' height: '340' type: PIE show_3d: 'YES' graph_items: - color: '969696' calc_fnc: LAST type: GRAPH_SUM item: host: 'HOST-RESOURCES-MIB storage SNMP' key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]' - sortorder: '1' color: C80000 calc_fnc: LAST item: host: 'HOST-RESOURCES-MIB storage SNMP' key: 'vfs.fs.used[hrStorageUsed.{#SNMPINDEX}]' macros: - macro: '{$VFS.FS.FREE.MIN.CRIT}' value: 5G description: 'The critical threshold of the filesystem utilization.' - macro: '{$VFS.FS.FREE.MIN.WARN}' value: 10G description: 'The warning threshold of the filesystem utilization.' - macro: '{$VFS.FS.FSNAME.MATCHES}' value: .+ description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}' value: ^(/dev|/sys|/run|/proc|.+/shm$) description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSTYPE.MATCHES}' value: '.*(\.4|\.9|hrStorageFixedDisk|hrStorageFlashMemory)$' description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}' value: CHANGE_IF_NEEDED description: 'This macro is used in filesystems discovery. Can be overridden on the host or linked template level.' - macro: '{$VFS.FS.PUSED.MAX.CRIT}' value: '90' - macro: '{$VFS.FS.PUSED.MAX.WARN}' value: '80' graphs: - uuid: fe501ac6688d4165a645ef804644cf93 name: 'CPU utilization' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: 'HOST-RESOURCES-MIB CPU SNMP' key: system.cpu.util - uuid: f55018667c2242c5a9bb969bbcaf4770 name: 'CPU utilization' ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 1A7C11 item: host: 'HOST-RESOURCES-MIB SNMP' key: system.cpu.util