diff options
author | Maxim Chudinov <maxim.chudinov@zabbix.com> | 2021-12-18 17:36:41 +0300 |
---|---|---|
committer | Maxim Chudinov <maxim.chudinov@zabbix.com> | 2021-12-18 17:36:41 +0300 |
commit | 385ff06c9cc12861246e37cbce2b15572260586b (patch) | |
tree | ca83490b630045fc61bf050592691fc8a5384a20 /templates/net/qtech_snmp | |
parent | f513e08c08da0f062d3711de4359869758d67be8 (diff) |
.........T [DEV-1998] fixed typos and changed README files for Net templates
Diffstat (limited to 'templates/net/qtech_snmp')
-rw-r--r-- | templates/net/qtech_snmp/README.md | 90 | ||||
-rw-r--r-- | templates/net/qtech_snmp/template_net_qtech_snmp.yaml | 6 |
2 files changed, 48 insertions, 48 deletions
diff --git a/templates/net/qtech_snmp/README.md b/templates/net/qtech_snmp/README.md index a00f2ef227c..e81fc31cb37 100644 --- a/templates/net/qtech_snmp/README.md +++ b/templates/net/qtech_snmp/README.md @@ -3,7 +3,7 @@ ## Overview -For Zabbix version: 5.4 and higher +For Zabbix version: 6.0 and higher ## Setup @@ -15,62 +15,62 @@ No specific Zabbix configuration is required. ### Macros used -| Name | Description | Default | -|--------------------|-------------|---------| -| {$CPU.UTIL.CRIT} | <p>-</p> | `90` | -| {$FAN_CRIT_STATUS} | <p>-</p> | `1` | -| {$MEMORY.UTIL.MAX} | <p>-</p> | `90` | -| {$PSU_CRIT_STATUS} | <p>-</p> | `1` | -| {$TEMP_CRIT_LOW} | <p>-</p> | `5` | -| {$TEMP_CRIT} | <p>-</p> | `75` | -| {$TEMP_WARN} | <p>-</p> | `65` | +|Name|Description|Default| +|----|-----------|-------| +|{$CPU.UTIL.CRIT} |<p>-</p> |`90` | +|{$FAN_CRIT_STATUS} |<p>-</p> |`1` | +|{$MEMORY.UTIL.MAX} |<p>-</p> |`90` | +|{$PSU_CRIT_STATUS} |<p>-</p> |`1` | +|{$TEMP_CRIT_LOW} |<p>-</p> |`5` | +|{$TEMP_CRIT} |<p>-</p> |`75` | +|{$TEMP_WARN} |<p>-</p> |`65` | ## Template links -| Name | -|--------------------| -| EtherLike-MIB SNMP | -| Generic SNMP | -| Interfaces SNMP | +|Name| +|----| +|EtherLike-MIB SNMP | +|Generic SNMP | +|Interfaces SNMP | ## Discovery rules -| Name | Description | Type | Key and additional info | -|---------------|-------------|------|-------------------------| -| PSU Discovery | <p>-</p> | SNMP | psu.discovery | -| FAN Discovery | <p>-</p> | SNMP | fan.discovery | +|Name|Description|Type|Key and additional info| +|----|-----------|----|----| +|PSU Discovery |<p>-</p> |SNMP |psu.discovery | +|FAN Discovery |<p>-</p> |SNMP |fan.discovery | ## Items collected -| Group | Name | Description | Type | Key and additional info | -|--------------|-----------------------------------|-----------------------------------------------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------| -| CPU | CPU utilization | <p>MIB: QTECH-MIB</p><p>CPU utilization in %</p> | SNMP | system.cpu.util[switchCpuUsage.0] | -| Fans | {#SNMPINDEX}: Fan status | <p>MIB: QTECH-MIB</p> | SNMP | sensor.fan.status[sysFanStatus.{#SNMPINDEX}] | -| Inventory | Hardware model name | <p>MIB: ENTITY-MIB</p> | SNMP | system.hw.model<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -| Inventory | Hardware serial number | <p>MIB: ENTITY-MIB</p> | SNMP | system.hw.serialnumber<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -| Inventory | Firmware version | <p>MIB: ENTITY-MIB</p> | SNMP | system.hw.firmware<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -| Inventory | Hardware version(revision) | <p>MIB: ENTITY-MIB</p> | SNMP | system.hw.version<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -| Inventory | Operating system | <p>MIB: QTECH-MIB</p> | SNMP | system.sw.os[sysSoftwareVersion.0]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | -| Memory | Used memory | <p>MIB: QTECH-MIB</p><p>Used memory in Bytes</p> | SNMP | vm.memory.used[switchMemoryBusy.0] | -| Memory | Total memory | <p>MIB: QTECH-MIB</p><p>Total memory in Bytes</p> | SNMP | vm.memory.total[switchMemorySize.0] | -| Memory | Memory utilization | <p>Memory utilization in %</p> | CALCULATED | vm.memory.util[vm.memory.util.0]<p>**Expression**:</p>`last("vm.memory.used[switchMemoryBusy.0]")/last("vm.memory.total[switchMemorySize.0]")*100` | -| Power_supply | {#SNMPINDEX}: Power supply status | <p>MIB: QTECH-MIB</p> | SNMP | sensor.psu.status[sysPowerStatus.{#SNMPINDEX}] | -| Temperature | Temperature | <p>MIB: QTECH-MIB</p><p>Temperature readings of testpoint: __RESOURCE__</p> | SNMP | sensor.temp.value[switchTemperature.0] | +|Group|Name|Description|Type|Key and additional info| +|-----|----|-----------|----|---------------------| +|CPU |CPU utilization |<p>MIB: QTECH-MIB</p><p>CPU utilization in %</p> |SNMP |system.cpu.util[switchCpuUsage.0] | +|Fans |{#SNMPINDEX}: Fan status |<p>MIB: QTECH-MIB</p> |SNMP |sensor.fan.status[sysFanStatus.{#SNMPINDEX}] | +|Inventory |Hardware model name |<p>MIB: ENTITY-MIB</p> |SNMP |system.hw.model<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|Inventory |Hardware serial number |<p>MIB: ENTITY-MIB</p> |SNMP |system.hw.serialnumber<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|Inventory |Firmware version |<p>MIB: ENTITY-MIB</p> |SNMP |system.hw.firmware<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|Inventory |Hardware version(revision) |<p>MIB: ENTITY-MIB</p> |SNMP |system.hw.version<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|Inventory |Operating system |<p>MIB: QTECH-MIB</p> |SNMP |system.sw.os[sysSoftwareVersion.0]<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `1d`</p> | +|Memory |Used memory |<p>MIB: QTECH-MIB</p><p>Used memory in Bytes</p> |SNMP |vm.memory.used[switchMemoryBusy.0] | +|Memory |Total memory |<p>MIB: QTECH-MIB</p><p>Total memory in Bytes</p> |SNMP |vm.memory.total[switchMemorySize.0] | +|Memory |Memory utilization |<p>Memory utilization in %</p> |CALCULATED |vm.memory.util[vm.memory.util.0]<p>**Expression**:</p>`last(//vm.memory.used[switchMemoryBusy.0])/last(//vm.memory.total[switchMemorySize.0])*100` | +|Power_supply |{#SNMPINDEX}: Power supply status |<p>MIB: QTECH-MIB</p> |SNMP |sensor.psu.status[sysPowerStatus.{#SNMPINDEX}] | +|Temperature |Temperature |<p>MIB: QTECH-MIB</p><p>Temperature readings of testpoint: __RESOURCE__</p> |SNMP |sensor.temp.value[switchTemperature.0] | ## Triggers -| Name | Description | Expression | Severity | Dependencies and additional info | -|-----------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|------------------------------------------------------------------------------------------| -| High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m) | <p>CPU utilization is too high. The system might be slow to respond.</p> | `{TEMPLATE_NAME:system.cpu.util[switchCpuUsage.0].min(5m)}>{$CPU.UTIL.CRIT}` | WARNING | | -| {#SNMPINDEX}: Fan is in critical state | <p>Please check the fan unit</p> | `{TEMPLATE_NAME:sensor.fan.status[sysFanStatus.{#SNMPINDEX}].count(#1,{$FAN_CRIT_STATUS},eq)}=1` | AVERAGE | | -| Device has been replaced (new serial number received) | <p>Device serial number has changed. Ack to close</p> | `{TEMPLATE_NAME:system.hw.serialnumber.diff()}=1 and {TEMPLATE_NAME:system.hw.serialnumber.strlen()}>0` | INFO | <p>Manual close: YES</p> | -| Firmware has changed | <p>Firmware version has changed. Ack to close</p> | `{TEMPLATE_NAME:system.hw.firmware.diff()}=1 and {TEMPLATE_NAME:system.hw.firmware.strlen()}>0` | INFO | <p>Manual close: YES</p> | -| Operating system description has changed | <p>Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.</p> | `{TEMPLATE_NAME:system.sw.os[sysSoftwareVersion.0].diff()}=1 and {TEMPLATE_NAME:system.sw.os[sysSoftwareVersion.0].strlen()}>0` | INFO | <p>Manual close: YES</p> | -| High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m) | <p>The system is running out of free memory.</p> | `{TEMPLATE_NAME:vm.memory.util[vm.memory.util.0].min(5m)}>{$MEMORY.UTIL.MAX}` | AVERAGE | | -| {#SNMPINDEX}: Power supply is in critical state | <p>Please check the power supply unit for errors</p> | `{TEMPLATE_NAME:sensor.psu.status[sysPowerStatus.{#SNMPINDEX}].count(#1,{$PSU_CRIT_STATUS},eq)}=1` | AVERAGE | | -| Temperature is above warning threshold: >{$TEMP_WARN:""} | <p>This trigger uses temperature sensor values as well as temperature sensor status if available</p> | `{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].avg(5m)}>{$TEMP_WARN:""}`<p>Recovery expression:</p>`{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].max(5m)}<{$TEMP_WARN:""}-3` | WARNING | <p>**Depends on**:</p><p>- Temperature is above critical threshold: >{$TEMP_CRIT:""}</p> | -| Temperature is above critical threshold: >{$TEMP_CRIT:""} | <p>This trigger uses temperature sensor values as well as temperature sensor status if available</p> | `{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].avg(5m)}>{$TEMP_CRIT:""}`<p>Recovery expression:</p>`{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].max(5m)}<{$TEMP_CRIT:""}-3` | HIGH | | -| Temperature is too low: <{$TEMP_CRIT_LOW:""} | <p>-</p> | `{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].avg(5m)}<{$TEMP_CRIT_LOW:""}`<p>Recovery expression:</p>`{TEMPLATE_NAME:sensor.temp.value[switchTemperature.0].min(5m)}>{$TEMP_CRIT_LOW:""}+3` | AVERAGE | | +|Name|Description|Expression|Severity|Dependencies and additional info| +|----|-----------|----|----|----| +|High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m) |<p>CPU utilization is too high. The system might be slow to respond.</p> |`min(/QTech QSW SNMP/system.cpu.util[switchCpuUsage.0],5m)>{$CPU.UTIL.CRIT}` |WARNING | | +|{#SNMPINDEX}: Fan is in critical state |<p>Please check the fan unit</p> |`count(/QTech QSW SNMP/sensor.fan.status[sysFanStatus.{#SNMPINDEX}],#1,"eq","{$FAN_CRIT_STATUS}")=1` |AVERAGE | | +|Device has been replaced (new serial number received) |<p>Device serial number has changed. Ack to close</p> |`last(/QTech QSW SNMP/system.hw.serialnumber,#1)<>last(/QTech QSW SNMP/system.hw.serialnumber,#2) and length(last(/QTech QSW SNMP/system.hw.serialnumber))>0` |INFO |<p>Manual close: YES</p> | +|Firmware has changed |<p>Firmware version has changed. Ack to close</p> |`last(/QTech QSW SNMP/system.hw.firmware,#1)<>last(/QTech QSW SNMP/system.hw.firmware,#2) and length(last(/QTech QSW SNMP/system.hw.firmware))>0` |INFO |<p>Manual close: YES</p> | +|Operating system description has changed |<p>Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.</p> |`last(/QTech QSW SNMP/system.sw.os[sysSoftwareVersion.0],#1)<>last(/QTech QSW SNMP/system.sw.os[sysSoftwareVersion.0],#2) and length(last(/QTech QSW SNMP/system.sw.os[sysSoftwareVersion.0]))>0` |INFO |<p>Manual close: YES</p> | +|High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m) |<p>The system is running out of free memory.</p> |`min(/QTech QSW SNMP/vm.memory.util[vm.memory.util.0],5m)>{$MEMORY.UTIL.MAX}` |AVERAGE | | +|{#SNMPINDEX}: Power supply is in critical state |<p>Please check the power supply unit for errors</p> |`count(/QTech QSW SNMP/sensor.psu.status[sysPowerStatus.{#SNMPINDEX}],#1,"eq","{$PSU_CRIT_STATUS}")=1` |AVERAGE | | +|Temperature is above warning threshold: >{$TEMP_WARN:""} |<p>This trigger uses temperature sensor values as well as temperature sensor status if available</p> |`avg(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_WARN:""}`<p>Recovery expression:</p>`max(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_WARN:""}-3` |WARNING |<p>**Depends on**:</p><p>- Temperature is above critical threshold: >{$TEMP_CRIT:""}</p> | +|Temperature is above critical threshold: >{$TEMP_CRIT:""} |<p>This trigger uses temperature sensor values as well as temperature sensor status if available</p> |`avg(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_CRIT:""}`<p>Recovery expression:</p>`max(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_CRIT:""}-3` |HIGH | | +|Temperature is too low: <{$TEMP_CRIT_LOW:""} |<p>-</p> |`avg(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)<{$TEMP_CRIT_LOW:""}`<p>Recovery expression:</p>`min(/QTech QSW SNMP/sensor.temp.value[switchTemperature.0],5m)>{$TEMP_CRIT_LOW:""}+3` |AVERAGE | | ## Feedback diff --git a/templates/net/qtech_snmp/template_net_qtech_snmp.yaml b/templates/net/qtech_snmp/template_net_qtech_snmp.yaml index 59626600453..ef25c13599f 100644 --- a/templates/net/qtech_snmp/template_net_qtech_snmp.yaml +++ b/templates/net/qtech_snmp/template_net_qtech_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: - version: '5.4' - date: '2021-05-11T08:05:14Z' + version: '6.0' + date: '2021-12-17T06:33:29Z' groups: - uuid: 36bff6c29af64692839d077febfc7079 @@ -17,7 +17,7 @@ zabbix_export: QTECH-MIB ENTITY-MIB - Template tooling version used: 0.38 + Template tooling version used: 0.40 templates: - name: 'EtherLike-MIB SNMP' |