diff options
author | Tikhon Uskov <tikhon.uskov@zabbix.com> | 2020-09-07 09:46:57 +0300 |
---|---|---|
committer | Tikhon Uskov <tikhon.uskov@zabbix.com> | 2020-09-07 09:46:57 +0300 |
commit | d846d0fb62fe9af942fee01d5910d9030ce8f5ab (patch) | |
tree | d063fc25b04d4a48961c794f034a8ece97af1dd7 /templates/net | |
parent | 2b5d3ff9f4debca8ec8759bf47743d69ec703e21 (diff) |
.........T [ZBX-13384] fixed minor template issues to follow guidelines
Diffstat (limited to 'templates/net')
7 files changed, 16 insertions, 16 deletions
diff --git a/templates/net/arista_snmp/template_net_arista_snmp.xml b/templates/net/arista_snmp/template_net_arista_snmp.xml index 05dffc03b5a..c22a0977fdf 100644 --- a/templates/net/arista_snmp/template_net_arista_snmp.xml +++ b/templates/net/arista_snmp/template_net_arista_snmp.xml @@ -325,7 +325,7 @@ entPhySensorScale, and entPhySensorPrecision objects must also be examined.</des <trigger_prototype> <expression>{Template Net Arista SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Arista SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Net Arista SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Arista SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> <name>{#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> diff --git a/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml b/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml index ef43e026b7c..5eb35e38558 100644 --- a/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml +++ b/templates/net/brocade_fc_sw_snmp/template_net_brocade_fc_sw_snmp.xml @@ -430,7 +430,7 @@ Temperature readings of testpoint: {#SENSOR_INFO}</description> <trigger_prototype> <expression>{Template Net Brocade FC SNMP:sensor.temp.value[swSensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Brocade FC SNMP:sensor.temp.status[swSensorStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Net Brocade FC SNMP:sensor.temp.status[swSensorStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Brocade FC SNMP:sensor.temp.value[swSensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> <name>{#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> diff --git a/templates/net/cisco_snmp/template_net_cisco_snmp.xml b/templates/net/cisco_snmp/template_net_cisco_snmp.xml index 5c1e37f9830..42a2a3dbbfa 100644 --- a/templates/net/cisco_snmp/template_net_cisco_snmp.xml +++ b/templates/net/cisco_snmp/template_net_cisco_snmp.xml @@ -196,9 +196,9 @@ The current measurement of the test point being instrumented.</description> <trigger_prototype> <expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS}</expression> +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"{#SNMPVALUE}"}-3</recovery_expression> <name>{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}</name> @@ -209,7 +209,7 @@ or <trigger_prototype> <expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:"{#SNMPVALUE}"}-3</recovery_expression> <name>{#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:"{#SNMPVALUE}"}</name> @@ -221,9 +221,9 @@ or <name>{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:"{#SNMPVALUE}"}</name> <expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:"{#SNMPVALUE}"} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS} +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS} or -{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last(0)}={$TEMP_DISASTER_STATUS}</expression> +{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.status[ciscoEnvMonTemperatureState.{#SNMPINDEX}].last()}={$TEMP_DISASTER_STATUS}</expression> <recovery_expression>{Template Module Cisco CISCO-ENVMON-MIB SNMP:sensor.temp.value[ciscoEnvMonTemperatureValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:"{#SNMPVALUE}"}-3</recovery_expression> </dependency> </dependencies> diff --git a/templates/net/extreme_snmp/template_net_extreme_snmp.xml b/templates/net/extreme_snmp/template_net_extreme_snmp.xml index 88d019fd4c9..57c15966675 100644 --- a/templates/net/extreme_snmp/template_net_extreme_snmp.xml +++ b/templates/net/extreme_snmp/template_net_extreme_snmp.xml @@ -105,7 +105,7 @@ Reference: https://gtacknowledge.extremenetworks.com/articles/Q_A/Does-EXOS-supp <name>Device: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> <expression>{Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_expression>{Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> </dependency> </dependencies> @@ -536,7 +536,7 @@ Status of the power supply {#SNMPVALUE}</description> <trigger> <expression>{Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Extreme EXOS SNMP:sensor.temp.status[extremeOverTemperatureAlarm.0].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Extreme EXOS SNMP:sensor.temp.value[extremeCurrentTemperature.0].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> <name>Device: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> diff --git a/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml b/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml index 345f876a496..cc8f9e7af34 100644 --- a/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml +++ b/templates/net/intel_qlogic_infiniband_snmp/template_net_intel_qlogic_infiniband_snmp.xml @@ -277,7 +277,7 @@ The current value read from the sensor.</description> <trigger_prototype> <expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> <name>{#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> @@ -288,7 +288,7 @@ or <trigger_prototype> <expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> <name>{#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> @@ -300,7 +300,7 @@ or <name>{#SENSOR_INFO}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> <expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.status[icsChassisSensorSlotOperStatus.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_expression>{Template Net Intel_Qlogic Infiniband SNMP:sensor.temp.value[icsChassisSensorSlotValue.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> </dependency> </dependencies> diff --git a/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml b/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml index 650f3024399..88287e28144 100644 --- a/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml +++ b/templates/net/mellanox_snmp/template_net_mellanox_snmp.xml @@ -322,7 +322,7 @@ entPhySensorScale, and entPhySensorPrecision objects must also be examined.</des <trigger_prototype> <expression>{Template Net Mellanox SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Mellanox SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Net Mellanox SNMP:sensor.temp.status[entPhySensorOperStatus.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Mellanox SNMP:sensor.temp.value[entPhySensorValue.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> <name>{#SENSOR_INFO}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> diff --git a/templates/net/netgear_snmp/template_net_netgear_snmp.xml b/templates/net/netgear_snmp/template_net_netgear_snmp.xml index c1f2875a232..5b7365cd682 100644 --- a/templates/net/netgear_snmp/template_net_netgear_snmp.xml +++ b/templates/net/netgear_snmp/template_net_netgear_snmp.xml @@ -363,7 +363,7 @@ The temperature value reported by sensor</description> <trigger_prototype> <expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> <name>#{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> @@ -374,7 +374,7 @@ or <trigger_prototype> <expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_WARN:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_WARN_STATUS}</expression> +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_WARN_STATUS}</expression> <recovery_mode>RECOVERY_EXPRESSION</recovery_mode> <recovery_expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_WARN:""}-3</recovery_expression> <name>#{#SNMPVALUE}: Temperature is above warning threshold: >{$TEMP_WARN:""}</name> @@ -386,7 +386,7 @@ or <name>#{#SNMPVALUE}: Temperature is above critical threshold: >{$TEMP_CRIT:""}</name> <expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].avg(5m)}>{$TEMP_CRIT:""} or -{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last(0)}={$TEMP_CRIT_STATUS}</expression> +{Template Net Netgear Fastpath SNMP:sensor.temp.status[boxServicesTempSensorState.{#SNMPINDEX}].last()}={$TEMP_CRIT_STATUS}</expression> <recovery_expression>{Template Net Netgear Fastpath SNMP:sensor.temp.value[boxServicesTempSensorTemperature.{#SNMPINDEX}].max(5m)}<{$TEMP_CRIT:""}-3</recovery_expression> </dependency> </dependencies> |