zabbix_export:
  version: '6.0'
  date: '2021-11-25T12:43:03Z'
  groups:
    -
      uuid: 7df96b18c230490a9a0a9e2307226338
      name: Templates
  templates:
    -
      uuid: c29fcffb48674a6f82d4c849d548d8c3
      template: 'SNMP QNAP NAS'
      name: 'SNMP QNAP NAS'
      groups:
        -
          name: Templates
      items:
        -
          uuid: ec8401aed4964410af5f56e003d4b1e0
          name: 'CPU temperature'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.5.0
          key: CPU-TemperatureEX
          delay: '60'
          units: C
          description: 'CPU temperature in centigrade'
          tags:
            -
              tag: Application
              value: System
        -
          uuid: e3455fe7c89344a7859806ac657f9d0a
          name: 'Device system name'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.13.0
          key: HostNameEX
          delay: '3600'
          history: 7d
          trends: '0'
          value_type: TEXT
          description: 'Host name'
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 2f86e3b08bc1487893127ea13d670986
          name: 'Device model name'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.12.0
          key: ModelNameEX
          delay: '10800'
          history: 1d
          trends: '0'
          value_type: TEXT
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 809cb2f89c574fc3b7d4a590ae3f9519
          name: 'Device firmware revision'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.47.1.1.1.1.9.1
          key: PhysicalFirmwareRev
          delay: '3600'
          trends: '0'
          value_type: TEXT
          inventory_link: SOFTWARE
          tags:
            -
              tag: Application
              value: System
          triggers:
            -
              uuid: 23e67488bf6849978d2e8f1d78529cfd
              expression: '(last(/SNMP QNAP NAS/PhysicalFirmwareRev,#1)<>last(/SNMP QNAP NAS/PhysicalFirmwareRev,#2))>0'
              name: 'Firmware on {HOST.NAME} is changed'
              priority: INFO
        -
          uuid: 7436f1696dcf4e2f80671482f4faf537
          name: 'Device hardware revision'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.47.1.1.1.1.8.1
          key: PhysicalHardwareRev
          delay: '10800'
          history: 1d
          trends: '0'
          value_type: TEXT
          inventory_link: HARDWARE
          tags:
            -
              tag: Application
              value: System
        -
          uuid: ee6cf0f7fe8743bfb20f31bbef433c4a
          name: 'Device software revision'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.47.1.1.1.1.10.1
          key: PhysicalSoftwareRev
          delay: '3600'
          trends: '0'
          value_type: TEXT
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 13ce51e5af9842d5b23e39e15124d315
          name: 'Device vendor name'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.47.1.1.1.1.12.1
          key: sysPhysicalMfgName
          delay: '3600'
          history: 1d
          trends: '0'
          value_type: TEXT
          inventory_link: VENDOR
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 514a5df13c19434e98b9ca7cf54b0dd8
          name: 'CPU usage'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.1.0
          key: SystemCPU-UsageEX
          delay: '60'
          units: '%'
          description: 'System CPU usage'
          tags:
            -
              tag: Application
              value: System
          triggers:
            -
              uuid: d2dd917475c742ebbcb9b435f740ba43
              expression: 'min(/SNMP QNAP NAS/SystemCPU-UsageEX,15m)>80'
              name: 'CPU utilization on {HOST.NAME} is over 80% for 15 min'
              priority: WARNING
            -
              uuid: ed8d014cd8ce40d4acc937a2e55fdf20
              expression: 'min(/SNMP QNAP NAS/SystemCPU-UsageEX,15m)>95'
              name: 'CPU utilization on {HOST.NAME} is over 95% for 15 min'
              priority: AVERAGE
        -
          uuid: 9954e103631b418b9bb560ec185b7a14
          name: 'System free memory'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.3.0
          key: SystemFreeMemEX
          delay: '60'
          units: b
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '1000'
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 142a17ef4bac4c0886d07d132f8034e2
          name: 'System free memory (%)'
          type: CALCULATED
          key: SystemPFreeMemEX
          delay: '60'
          value_type: FLOAT
          units: '%'
          params: last(//SystemFreeMemEX)/(last(//SystemTotalMemEX)/100)
          tags:
            -
              tag: Application
              value: System
        -
          uuid: b03ea7b4b6794c1f820c3b2c783b5d09
          name: 'System temperature'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.6.0
          key: SystemTemperatureEX
          delay: '60'
          units: C
          description: 'System temperature in centigrade'
          tags:
            -
              tag: Application
              value: System
        -
          uuid: 04cad37de53449ab8af27136d409b979
          name: 'System total memory'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.4.1.24681.1.3.2.0
          key: SystemTotalMemEX
          delay: '10800'
          history: 1d
          units: b
          tags:
            -
              tag: Application
              value: System
        -
          uuid: a3a42e689c47493f94d76a8d862e9bca
          name: 'System uptime'
          type: SNMP_AGENT
          snmp_oid: .1.3.6.1.2.1.25.1.1.0
          key: sysUptime
          delay: 60s
          history: 1d
          units: uptime
          preprocessing:
            -
              type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            -
              tag: Application
              value: System
          triggers:
            -
              uuid: f2122bbbffd440bdabe93e7d997ec87f
              expression: 'change(/SNMP QNAP NAS/sysUptime)<0'
              name: '{HOST.NAME} has just been restarted'
              priority: HIGH
      discovery_rules:
        -
          uuid: 9d993eb5e0a4465f8e177c18aede6c81
          name: 'Network interfaces discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.24681.1.2.9.1.2]'
          key: netIfs.discovery
          delay: '3600'
          item_prototypes:
            -
              uuid: 8508aaec1f324604a30ef5d83727e0a6
              name: 'Error $2 on $1'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.2.9.1.5.{#SNMPINDEX}'
              key: 'net.if.err[{#SNMPVALUE},bps]'
              delay: '60'
              units: bps
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: 'Network interfaces'
            -
              uuid: 08ddd79e6fca488587ef01f964e000a3
              name: 'Received $2 on $1'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.2.9.1.3.{#SNMPINDEX}'
              key: 'net.if.in[{#SNMPVALUE}, bps]'
              delay: '60'
              units: bps
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: 'Network interfaces'
            -
              uuid: fa69a0fa6fd64188a01f274be27784b2
              name: 'Sent $2 on $1'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.2.9.1.4.{#SNMPINDEX}'
              key: 'net.if.out[{#SNMPVALUE}, bps]'
              delay: '60'
              units: bps
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: 'Network interfaces'
          graph_prototypes:
            -
              uuid: d3465a68f66940eb948c7a9b992c5995
              name: 'Traffic on {#SNMPVALUE} (PPS)'
              ymin_type_1: FIXED
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 00BB00
                  calc_fnc: MAX
                  item:
                    host: 'SNMP QNAP NAS'
                    key: 'net.if.in[{#SNMPVALUE}, bps]'
                -
                  sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: 0000BB
                  calc_fnc: MAX
                  item:
                    host: 'SNMP QNAP NAS'
                    key: 'net.if.out[{#SNMPVALUE}, bps]'
                -
                  sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: BB0000
                  calc_fnc: MAX
                  item:
                    host: 'SNMP QNAP NAS'
                    key: 'net.if.err[{#SNMPVALUE},bps]'
        -
          uuid: 84efb3f5dc394807b7b729f8a26c1d7d
          name: 'System fans discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.24681.1.3.15.1.2]'
          key: sysFans.discovery
          delay: '3600'
          item_prototypes:
            -
              uuid: e1e6bb39d1a04a7f877998718b64c4e7
              name: 'Speed of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.15.1.3.{#SNMPINDEX}'
              key: 'SysFanSpeedEX[{#SNMPINDEX}]'
              delay: '60'
              history: 1d
              units: RPM
              tags:
                -
                  tag: Application
                  value: 'Sytem fans'
              trigger_prototypes:
                -
                  uuid: 6cec9f44e40a4eb58b06248d72344cd1
                  expression: 'max(/SNMP QNAP NAS/SysFanSpeedEX[{#SNMPINDEX}],60s)=0'
                  name: '{#SNMPVALUE} fan on {HOST.NAME} possibly is stopped'
                  priority: WARNING
        -
          uuid: 8b5f80717f314d01a94a8ff3b0f14855
          name: 'Hard disks discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.24681.1.3.11.1.2]'
          key: sysHDs.discovery
          delay: '3600'
          item_prototypes:
            -
              uuid: 185ed0694f174085b29cbce8552175d3
              name: 'Capacity of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.11.1.6.{#SNMPINDEX}'
              key: 'HdCapacityEX[{#SNMPINDEX}]'
              delay: '3600'
              units: B
              tags:
                -
                  tag: Application
                  value: 'Hard disks'
            -
              uuid: 0e8c0147dfc94d068c2c6acf1cdf131b
              name: 'Model of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.11.1.5.{#SNMPINDEX}'
              key: 'HdModelEX[{#SNMPINDEX}]'
              delay: '3600'
              trends: '0'
              value_type: TEXT
              tags:
                -
                  tag: Application
                  value: 'Hard disks'
            -
              uuid: 1067f2d5b9ce472398683b085b0d92b7
              name: 'S.M.A.R.T. info of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.11.1.7.{#SNMPINDEX}'
              key: 'HdSmartInfoEX[{#SNMPINDEX}]'
              delay: '60'
              trends: '0'
              value_type: TEXT
              tags:
                -
                  tag: Application
                  value: 'Hard disks'
              trigger_prototypes:
                -
                  uuid: 9f9d57a59041498bbbf24d2b3e965815
                  expression: 'find(/SNMP QNAP NAS/HdSmartInfoEX[{#SNMPINDEX}],,"iregexp","abnormal")=1'
                  name: 'SMART state of {#SNMPVALUE} on {HOST.NAME} is ABNORMAL'
                  priority: AVERAGE
                  description: |
                    Abnormal
                    1. Any SMART value is equal or less than trhreshold.
                    2. Hard Disk temperature is higher than 65 degree C.
                    --------
                    QNAP Knowledgebase
                -
                  uuid: f65a4966fd8f43c78ce8ab709783b0df
                  expression: 'find(/SNMP QNAP NAS/HdSmartInfoEX[{#SNMPINDEX}],,"iregexp","normal")=1'
                  name: 'SMART state of {#SNMPVALUE} on {HOST.NAME} is not GOOD ({ITEM.VALUE1})'
                  priority: WARNING
                  description: |
                    Normal
                    1. Any Smart value is equal or less than threhold + (initial_SMART_value - threhold)/2.  For example, if the initial SMART value is 100, the current value is 50, the threshold is 20, then the Smart value, 50, is less than 20+(100-20)/2.  Thus, the health level would be Normal.
                    2. Any SMART test(Rapid or Complete) result of last 20 times is abnormal.
                    3. Hard Disk temperature is between 55 to 65 degree C.
                    --------
                    QNAP Knowledgebase
            -
              uuid: 0affb7eef1674dc4b114503810e106b3
              name: 'Status of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.11.1.4.{#SNMPINDEX}'
              key: 'HdStatusEX[{#SNMPINDEX}]'
              delay: '60'
              value_type: FLOAT
              tags:
                -
                  tag: Application
                  value: 'Hard disks'
              trigger_prototypes:
                -
                  uuid: 73d9e1170c5841d3af7928d3009f9eba
                  expression: 'last(/SNMP QNAP NAS/HdStatusEX[{#SNMPINDEX}])=-6'
                  name: 'State of {#SNMPVALUE} on {HOST.NAME} is "Invalid"'
                  priority: WARNING
                  description: 'State "Invalid"'
                -
                  uuid: 64697a5f9661471387126f08cbb16ce1
                  expression: 'last(/SNMP QNAP NAS/HdStatusEX[{#SNMPINDEX}])=-5'
                  name: 'State of {#SNMPVALUE} on {HOST.NAME} is "noDisk"'
                  status: DISABLED
                  priority: INFO
                  description: 'State "noDisk"'
                -
                  uuid: 960c6f152b72484786e0e298faa46633
                  expression: 'last(/SNMP QNAP NAS/HdStatusEX[{#SNMPINDEX}])=-9'
                  name: 'State of {#SNMPVALUE} on {HOST.NAME} is "rwError"'
                  priority: WARNING
                  description: 'State "rwError"'
                -
                  uuid: 70430d879314425f9bffe24f94789a18
                  expression: 'last(/SNMP QNAP NAS/HdStatusEX[{#SNMPINDEX}])<>0'
                  name: 'State of {#SNMPVALUE} on {HOST.NAME} is not "Ready" ({ITEM.VALUE1})'
                  priority: INFO
            -
              uuid: ce6668603a044aca85b56c40ffe05690
              name: 'Temperature of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.11.1.3.{#SNMPINDEX}'
              key: 'HdTemperatureEX[{#SNMPINDEX}]'
              delay: '60'
              value_type: FLOAT
              units: C
              tags:
                -
                  tag: Application
                  value: 'Hard disks'
              trigger_prototypes:
                -
                  uuid: 218975ff34fd4a86a5ee99210ec27210
                  expression: 'min(/SNMP QNAP NAS/HdTemperatureEX[{#SNMPINDEX}],2m)>{$HD_TEMPERATURE_ALARM}'
                  name: 'Temperature of {#SNMPVALUE} on {HOST.NAME} is over {$HD_TEMPERATURE_ALARM} for 2 min'
                  priority: HIGH
                -
                  uuid: 89fe1f062db746dd9bef34feacbc5628
                  expression: 'min(/SNMP QNAP NAS/HdTemperatureEX[{#SNMPINDEX}],2m)>{$HD_TEMPERATURE_WARNING}'
                  name: 'Temperature of {#SNMPVALUE} on {HOST.NAME} is over {$HD_TEMPERATURE_WARNING} for 2min'
                  priority: INFO
        -
          uuid: c7e211e9c2454f878a183d1531eca18f
          name: 'Volumes discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.24681.1.3.17.1.2]'
          key: sysVolumes.discovery
          delay: '3600'
          item_prototypes:
            -
              uuid: 321052cad3b94ff1a86087a36923f491
              name: 'Free size of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.17.1.5.{#SNMPINDEX}'
              key: 'SysVolumeFreeSizeEX[{#SNMPINDEX}]'
              delay: '60'
              units: B
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '1024'
              tags:
                -
                  tag: Application
                  value: Volumes
            -
              uuid: 3ce760bdc13b48d0ad9cd9e92f9c111e
              name: 'Free size of {#SNMPVALUE} (%)'
              type: CALCULATED
              key: 'SysVolumePFreeSizeEX[{#SNMPINDEX}]'
              delay: '60'
              value_type: FLOAT
              units: '%'
              params: 'last(//SysVolumeFreeSizeEX[{#SNMPINDEX}])/(last(//SysVolumeTotalSizeEX[{#SNMPINDEX}])/100)'
              tags:
                -
                  tag: Application
                  value: Volumes
              trigger_prototypes:
                -
                  uuid: 272fa1b0f3a94092b28fc8753f7a7700
                  expression: 'last(/SNMP QNAP NAS/SysVolumePFreeSizeEX[{#SNMPINDEX}])<20'
                  name: 'Free space is less than 20% on volume {#SNMPVALUE}'
                  priority: WARNING
            -
              uuid: 992451f35d6d41a6bec9ad4e9dc91aaf
              name: 'Status of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.17.1.6.{#SNMPINDEX}'
              key: 'SysVolumeStatusEX[{#SNMPINDEX}]'
              delay: '60'
              trends: '0'
              value_type: TEXT
              tags:
                -
                  tag: Application
                  value: Volumes
            -
              uuid: 1a68d230997b401a80f3e9d8a4e44755
              name: 'Total size of {#SNMPVALUE}'
              type: SNMP_AGENT
              snmp_oid: '.1.3.6.1.4.1.24681.1.3.17.1.4.{#SNMPINDEX}'
              key: 'SysVolumeTotalSizeEX[{#SNMPINDEX}]'
              delay: '3600'
              units: B
              preprocessing:
                -
                  type: MULTIPLIER
                  parameters:
                    - '1024'
              tags:
                -
                  tag: Application
                  value: Volumes
          graph_prototypes:
            -
              uuid: 716d16d5ac98491fb9e535ac970ff0a8
              name: 'Volume {#SNMPVALUE} usage'
              ymin_type_1: FIXED
              graph_items:
                -
                  drawtype: GRADIENT_LINE
                  color: 8888FF
                  calc_fnc: MAX
                  item:
                    host: 'SNMP QNAP NAS'
                    key: 'SysVolumeTotalSizeEX[{#SNMPINDEX}]'
                -
                  sortorder: '1'
                  drawtype: FILLED_REGION
                  color: '008800'
                  calc_fnc: MAX
                  item:
                    host: 'SNMP QNAP NAS'
                    key: 'SysVolumeFreeSizeEX[{#SNMPINDEX}]'
      macros:
        -
          macro: '{$HD_TEMPERATURE_ALARM}'
          value: '51'
        -
          macro: '{$HD_TEMPERATURE_WARNING}'
          value: '40'
  graphs:
    -
      uuid: 10a26f9613ce44349842f7614dc7b41d
      name: 'CPU utilization'
      ymin_type_1: FIXED
      graph_items:
        -
          color: 00BB00
          item:
            host: 'SNMP QNAP NAS'
            key: SystemCPU-UsageEX
    -
      uuid: 421c492a4b55418cae4f24ab5b414f3f
      name: 'Device temperature'
      ymin_type_1: FIXED
      graph_items:
        -
          color: BB0000
          item:
            host: 'SNMP QNAP NAS'
            key: CPU-TemperatureEX
        -
          sortorder: '1'
          color: 0000BB
          item:
            host: 'SNMP QNAP NAS'
            key: SystemTemperatureEX
    -
      uuid: e92cc0b0c9f24ddaa18f35118bba3816
      name: 'Memory usage'
      ymin_type_1: FIXED
      graph_items:
        -
          drawtype: GRADIENT_LINE
          color: 00BBBB
          calc_fnc: MAX
          item:
            host: 'SNMP QNAP NAS'
            key: SystemTotalMemEX
        -
          sortorder: '1'
          drawtype: FILLED_REGION
          color: '008800'
          calc_fnc: MAX
          item:
            host: 'SNMP QNAP NAS'
            key: SystemFreeMemEX
