zabbix_export: version: '5.4' date: '2021-11-25T12:37:37Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates - uuid: 66179f97725244658e1019573f0eb03e name: ZBX-DLINK-TEMPLATES templates: - uuid: 3dd8254275aa4a559a369fb1f8300664 template: 'SNMP D-link DGS-3120-xx' name: 'SNMP D-link DGS-3120-xx' description: | ## Description D-link do something realy wierd with swTemperatureTable. So it's values not discovered but set manualy as items ## Overview Based on MIB from vendor. Checked on local single and stacked DGS/DWS-3120-xx devices. Main system Items, Ttiggers and Graphs. LLD Network interfaces. LLD Memory, Temperature and Fan values (though D-link does something weird with fan and temperature OIDs, probably depends on firmware, so this prototypes was added semi-manualy). groups: - name: Templates - name: ZBX-DLINK-TEMPLATES items: - uuid: 833a2e70ca26464da0ba648847210b33 name: 'Device CPU utilization' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.171.12.1.1.6.3.0 key: agentCPUutilizationIn5min delay: '300' history: 30d trends: '0' units: '%' description: 'The time scale is set at 5 minute intervals. The value will be between 0% (idle) and 100% (very busy).' tags: - tag: Application value: General - uuid: dec36e4d28194d2fa79dee07d03cb283 name: 'Device serial number' type: SNMP_AGENT snmp_oid: .1.3.6.1.4.1.171.12.1.1.12.0 key: agentSerialNumber delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'A textual description of the entity. This value should include the full name and version identification of the system''s hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters.' inventory_link: SOFTWARE_APP_A tags: - tag: Application value: General - uuid: a5bc3f40f08246a888891306f0b41d50 name: 'Device contact details' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.4.0 key: sysContact delay: '3600' history: 1d trends: '0' value_type: CHAR inventory_link: CONTACT tags: - tag: Application value: General - uuid: 5582f3b0c44e4f29bc9f1b4242ac268f name: 'Device description' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.1.0 key: sysDescr delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'A textual description of the entity. This value should include the full name and version identification of the system''s hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters.' inventory_link: MODEL tags: - tag: Application value: General - uuid: 54920013fd1b4ec6a416ce02530fb693 name: 'Device firmware version' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.16.19.2.0 key: sysFirmwareVersion delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'Version number of the Firmware.' inventory_link: SOFTWARE tags: - tag: Application value: General - uuid: cc5d84c3f87e49308b27214aa4e90543 name: 'Device hardware version' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.16.19.3.0 key: sysHardwareVersion delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'Version number of the Hardware.' inventory_link: HARDWARE tags: - tag: Application value: General - uuid: d4c0f90cbb204639b2a799856726cf00 name: 'Device location' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.6.0 key: sysLocation delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'The physical location of this node (e.g., `telephone closet, 3rd floor''). If the location is unknown, the value is the zero-length string.' inventory_link: LOCATION tags: - tag: Application value: General - uuid: f6464ab153bc407ea6f1727aaa91e78b name: 'Device name' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.5.0 key: sysName delay: '3600' history: 1d trends: '0' value_type: CHAR description: 'An administratively-assigned name for this managed node. By convention, this is the node''s fully-qualified domain name. If the name is unknown, the value is the zero-length string.' inventory_link: ALIAS tags: - tag: Application value: General - uuid: 6be1edb03b904a479f4d7f3dadeccacd name: 'Device uptime' type: SNMP_AGENT snmp_oid: .1.3.6.1.2.1.1.3.0 key: sysUpTime delay: '300' history: 30d trends: '0' units: uptime description: 'The time since the network management portion of the system was last re-initialized.' preprocessing: - type: MULTIPLIER parameters: - '0.01' tags: - tag: Application value: General discovery_rules: - uuid: 84a08d29b2a54780a3eacbf592cd0ccc name: 'Environment management' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.4.1.171.12.1.1.9.1.1]' key: agentDRAMutilizationUnitID delay: '3600' lifetime: 1d item_prototypes: - uuid: 80f455f9b0d3416bbe8f143adcefe333 name: 'Device memory total, unit $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.1.1.9.1.2.{#SNMPINDEX}' key: 'agentDRAMutilizationTotalDRAM[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: B preprocessing: - type: MULTIPLIER parameters: - '1024' tags: - tag: Application value: Environment - uuid: 50d88269e994452da97b0055b487feae name: 'Device memory used, unit $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.1.1.9.1.3.{#SNMPINDEX}' key: 'agentDRAMutilizationUsedDRAM[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: B preprocessing: - type: MULTIPLIER parameters: - '1024' tags: - tag: Application value: Environment - uuid: 63e36b250679476798b35c5ba2b596bc name: 'Device memory utilization, unit $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.1.1.9.1.4.{#SNMPINDEX}' key: 'agentDRAMutilization[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: '%' tags: - tag: Application value: Environment - uuid: bca3c457768241b2ac01d34e3f44b640 name: 'Device fan $1-1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.11.1.7.1.6.{#SNMPINDEX}.7' key: 'swFanSpeed.1.[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: RPM tags: - tag: Application value: Environment trigger_prototypes: - uuid: 5c31f0ec93204c4b848b659d98127872 expression: 'max(/SNMP D-link DGS-3120-xx/swFanSpeed.1.[{#SNMPVALUE}],30m)=0' name: '{HOST.NAME} unit {#SNMPVALUE} - 1st fan failed' priority: HIGH - uuid: 58404ff33c094f87b07d2787bf9b46be name: 'Device fan $1-2' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.11.1.7.1.6.{#SNMPINDEX}.8' key: 'swFanSpeed.2.[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: RPM tags: - tag: Application value: Environment trigger_prototypes: - uuid: cee98b056e7d47a5bfdf29d471710dcd expression: 'max(/SNMP D-link DGS-3120-xx/swFanSpeed.2.[{#SNMPVALUE}],30m)=0' name: '{HOST.NAME} unit {#SNMPVALUE} - 2nd fan failed' priority: HIGH - uuid: befc57d42c394f2a8a77cd0c401a9a55 name: 'Device temperature, unit $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.4.1.171.12.11.1.8.1.2.{#SNMPINDEX}' key: 'swTemperatureCurrent[{#SNMPVALUE}]' delay: '300' history: 30d trends: '0' units: C tags: - tag: Application value: Environment trigger_prototypes: - uuid: 2b62ddf75fe14f938ab6759b9e7e62a2 expression: 'avg(/SNMP D-link DGS-3120-xx/swTemperatureCurrent[{#SNMPVALUE}],#3)=40' name: '{HOST.NAME} unit {#SNMPVALUE} - temperature high' priority: HIGH graph_prototypes: - uuid: feea7f9205b14003a3115321967f8082 name: 'Fan 1 Speed, unit{#SNMPVALUE}' graph_items: - color: 00C800 item: host: 'SNMP D-link DGS-3120-xx' key: 'swFanSpeed.1.[{#SNMPVALUE}]' - uuid: 24a9843147ac47a38959a2e21fe1a62c name: 'Fan 2 Speed, unit{#SNMPVALUE}' graph_items: - color: 00C800 item: host: 'SNMP D-link DGS-3120-xx' key: 'swFanSpeed.2.[{#SNMPVALUE}]' - uuid: f004e091b8fc4e0b86306051b7f6e429 name: 'Memory Usage, unit{#SNMPVALUE}' graph_items: - color: 00C800 item: host: 'SNMP D-link DGS-3120-xx' key: 'agentDRAMutilizationUsedDRAM[{#SNMPVALUE}]' - uuid: 48b674725aae465b989304aeee562ae7 name: 'Memory Utilization, unit{#SNMPVALUE}' graph_items: - color: 00C800 item: host: 'SNMP D-link DGS-3120-xx' key: 'agentDRAMutilization[{#SNMPVALUE}]' - uuid: 2ff0c3a77d62416c8c1e6591fddd45ff name: 'Network Interfaces' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.2.2.1.2]' key: ifIndex delay: '3600' lifetime: 1d item_prototypes: - uuid: 728d48669f504cc784f69002bd5f50b0 name: 'Alias of interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.31.1.1.1.18.{#SNMPINDEX}' key: 'ifAlias[{#SNMPVALUE}]' delay: '3600' history: 1d trends: '0' value_type: CHAR tags: - tag: Application value: Interface(s) - uuid: b3099c9d9dc34f40b4194fb6a451ef8b name: 'Inbound errors on interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}' key: 'ifInErrors[{#SNMPVALUE}]' delay: '3600' history: 7d trends: '0' description: 'The number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.' preprocessing: - type: SIMPLE_CHANGE parameters: - '' tags: - tag: Application value: Interface(s) - uuid: 99f56d61330d44d6b0679c314248ee1a name: 'Incoming traffic on interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.10.{#SNMPINDEX}' key: 'ifInOctets[{#SNMPVALUE}]' delay: '300' trends: 180d units: bps description: 'The total number of octets received on the interface, including framing characters.' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interface(s) - uuid: c684d68bd77d4d88abbd7617c016acb9 name: 'Operational status of interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}' key: 'ifOperStatus[{#SNMPVALUE}]' delay: '3600' history: 7d trends: '0' description: 'The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed.' valuemap: name: 'SNMP interface status (ifOperStatus)' tags: - tag: Application value: Interface(s) - uuid: 7ce8391b11264e59882818f021ef6678 name: 'Outgoing traffic on interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.16.{#SNMPINDEX}' key: 'ifOutOctets[{#SNMPVALUE}]' delay: '300' trends: 180d units: bps description: 'The total number of octets transmitted out of the interface, including framing characters.' preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' tags: - tag: Application value: Interface(s) - uuid: 77dabbde487c447c8c3cf8887d6a6e20 name: 'Speed of interface $1' type: SNMP_AGENT snmp_oid: '.1.3.6.1.2.1.2.2.1.5.{#SNMPINDEX}' key: 'ifSpeed[{#SNMPVALUE}]' delay: '3600' history: 1d trends: '0' units: bps description: 'An estimate of the interface''s current bandwidth in bits per second. For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth.' tags: - tag: Application value: Interface(s) graph_prototypes: - uuid: b2613552a45f4e338119d1415451d76d name: 'interface {{HOSTNAME}:ifAlias[{#SNMPVALUE}].last(0)}' graph_items: - color: 00C800 item: host: 'SNMP D-link DGS-3120-xx' key: 'ifInOctets[{#SNMPVALUE}]' - sortorder: '1' color: 3333FF item: host: 'SNMP D-link DGS-3120-xx' key: 'ifOutOctets[{#SNMPVALUE}]' valuemaps: - uuid: 27c23e7767d14689beda082fbca36c62 name: 'SNMP interface status (ifOperStatus)' mappings: - value: '1' newvalue: up - value: '2' newvalue: down - value: '3' newvalue: testing - value: '4' newvalue: unknown - value: '5' newvalue: dormant - value: '6' newvalue: notPresent - value: '7' newvalue: lowerLayerDown graphs: - uuid: 2f324453ab5d498b9fa11364f4080aa3 name: 'CPU Utilization' graph_items: - color: EACC00 item: host: 'SNMP D-link DGS-3120-xx' key: agentCPUutilizationIn5min