From 9be7e0f8632e5ce1baea14964233ce8cb880aa42 Mon Sep 17 00:00:00 2001 From: Vyacheslav Khaliev Date: Wed, 26 Jan 2022 18:11:28 +0500 Subject: .........T [ZBXNEXT-7414] added new tags to all templates --- .../template_net_morningstar_suresine_snmp.yaml | 129 ++++++++++++++++++--- 1 file changed, 111 insertions(+), 18 deletions(-) (limited to 'templates/net/morningstar/morningstar_suresine_snmp/template_net_morningstar_suresine_snmp.yaml') diff --git a/templates/net/morningstar/morningstar_suresine_snmp/template_net_morningstar_suresine_snmp.yaml b/templates/net/morningstar/morningstar_suresine_snmp/template_net_morningstar_suresine_snmp.yaml index 371e0035290..18f64357e62 100644 --- a/templates/net/morningstar/morningstar_suresine_snmp/template_net_morningstar_suresine_snmp.yaml +++ b/templates/net/morningstar/morningstar_suresine_snmp/template_net_morningstar_suresine_snmp.yaml @@ -1,6 +1,6 @@ zabbix_export: version: '6.0' - date: '2021-12-17T06:32:13Z' + date: '2022-01-26T10:44:52Z' groups: - uuid: 57b7ae836ca64446ba2c296389c009b7 @@ -14,7 +14,7 @@ zabbix_export: MIBs used: SURESINE - Template tooling version used: 0.40 + Template tooling version used: 0.41 groups: - name: Templates/Modules @@ -42,8 +42,14 @@ zabbix_export: - \1\2 tags: - - tag: Application - value: 'Zabbix raw items' + tag: component + value: battery + - + tag: component + value: discovery + - + tag: component + value: raw - uuid: 0cbf90bdfbc44bc9939167625c20aaed name: 'Load: A/C Current' @@ -71,8 +77,8 @@ zabbix_export: - \1\2 tags: - - tag: Application - value: Load + tag: component + value: load - uuid: 193eeecf87c24527b5ba4b0df2b66cfc name: 'Load: State' @@ -104,8 +110,8 @@ zabbix_export: - 1h tags: - - tag: Application - value: Load + tag: component + value: load triggers: - uuid: 83a1cad652b445a69541208f81b12c23 @@ -113,6 +119,10 @@ zabbix_export: name: 'Load: Device load in critical state' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: bed6bfb29f5d4a3e89b9028b45bfb8b8 expression: 'last(/Morningstar SureSine SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"lvdWarning"} or last(/Morningstar SureSine SNMP/load.state[loadState.0])={$LOAD.STATE.WARN:"override"}' @@ -123,6 +133,10 @@ zabbix_export: - name: 'Load: Device load in critical state' expression: 'last(/Morningstar SureSine SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"lvd"} or last(/Morningstar SureSine SNMP/load.state[loadState.0])={$LOAD.STATE.CRIT:"fault"}' + tags: + - + tag: scope + value: notice - uuid: d15815c3d6024a83ac03425e23d798cd name: 'Status: Alarms' @@ -164,8 +178,8 @@ zabbix_export: return result.length ? result.join('\n') : 'No alarms'; tags: - - tag: Application - value: Status + tag: component + value: status triggers: - uuid: 6181b0f6c4cf4febaa86039dae994f30 @@ -173,24 +187,40 @@ zabbix_export: name: 'Status: Device has "heatsinkTempSensorOpen" alarm flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: WARNING + tags: + - + tag: scope + value: notice - uuid: ebe250d8faf543429bd5732114f05fd4 expression: 'count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShort")=2' name: 'Status: Device has "heatsinkTempSensorShort" alarm flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: WARNING + tags: + - + tag: scope + value: notice - uuid: ff3ee8e7bd074037a99a56f02dfaff72 expression: 'count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","suresineHot")=2' name: 'Status: Device has "suresineHot" alarm flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: WARNING + tags: + - + tag: scope + value: notice - uuid: 64c7437f53f74578a85b358f73529322 expression: 'count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","unknownAlarm")=2' name: 'Status: Device has "unknownAlarm" alarm flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: WARNING + tags: + - + tag: scope + value: notice - uuid: d92ff915ccda482db946118238ea2ef3 name: 'Status: Faults' @@ -236,8 +266,8 @@ zabbix_export: return result.length ? result.join('\n') : 'No faults'; tags: - - tag: Application - value: Status + tag: component + value: status triggers: - uuid: 438d1fb319234de9aaa74fa565e6c661 @@ -245,48 +275,80 @@ zabbix_export: name: 'Status: Device has "customSettingsEdit" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: 174685e8f89f4e21b7275db6be7623b2 expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","dipSwitchChanged")=2' name: 'Status: Device has "dipSwitchChanged" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: 283d5eb818744b25b4275509b0492bfd expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","highVoltageDisconnect")=2' name: 'Status: Device has "highVoltageDisconnect" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: a271f6d0e1504e46966da689b91cf1f7 expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","overcurrent")=2' name: 'Status: Device has "overcurrent" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: 88df087dcb434c5d9980d249f077a661 expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","reset")=2' name: 'Status: Device has "reset" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: 9fa2ec74f9b34f0082d9173f57e1edf6 expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","software")=2' name: 'Status: Device has "software" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: 970e89c852c34a219ad0c1fce357e97a expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","suresineHot")=2' name: 'Status: Device has "suresineHot" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: fe023e11a544470cb09db1585d7f1e83 expression: 'count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","unknownFault")=2' name: 'Status: Device has "unknownFault" faults flag' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: notice - uuid: cb4a5c3033f84baa8260a8199265e5a9 name: 'Status: Uptime' @@ -303,8 +365,8 @@ zabbix_export: - '0.01' tags: - - tag: Application - value: Status + tag: component + value: status triggers: - uuid: f9404001de4c4c1d8438e0b560977398 @@ -313,6 +375,10 @@ zabbix_export: priority: INFO description: 'Uptime is less than 10 minutes' manual_close: 'YES' + tags: + - + tag: scope + value: notice - uuid: db5506294fd945659eae945014332a62 expression: 'nodata(/Morningstar SureSine SNMP/status.uptime,5m)=1' @@ -320,6 +386,10 @@ zabbix_export: priority: WARNING description: 'Zabbix has not received data for items for the last 5 minutes' manual_close: 'YES' + tags: + - + tag: scope + value: availability - uuid: c6119c74beeb4ab69854d52f2eaa969d name: 'Temperature: Heatsink' @@ -338,8 +408,8 @@ zabbix_export: Modbus address:0x0006 tags: - - tag: Application - value: Temperature + tag: component + value: temperature discovery_rules: - uuid: c43e02a5d94343e2b54cba50b3388826 @@ -377,8 +447,8 @@ zabbix_export: - \1\2 tags: - - tag: Application - value: Battery + tag: component + value: battery trigger_prototypes: - uuid: 4b27f6ecdc674803a883a8a60e3ddce2 @@ -386,12 +456,20 @@ zabbix_export: name: 'Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: capacity - uuid: dfbcd455a92d423fbb841f2d6b6293a8 expression: 'max(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' name: 'Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' opdata: 'Current value: {ITEM.LASTVALUE1}' priority: HIGH + tags: + - + tag: scope + value: capacity - uuid: e0173479978841ec8607430cf2fb356e expression: 'min(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}' @@ -402,6 +480,10 @@ zabbix_export: - name: 'Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)' expression: 'min(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}' + tags: + - + tag: scope + value: capacity - uuid: 75a433d7ec28440f947a4aaed3aed33d expression: 'max(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}' @@ -412,6 +494,10 @@ zabbix_export: - name: 'Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)' expression: 'max(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}' + tags: + - + tag: scope + value: capacity graph_prototypes: - uuid: 6cdc54f509c045b0880af6f7f901b6ab @@ -451,6 +537,13 @@ zabbix_export: } return JSON.stringify(result); + tags: + - + tag: class + value: power + - + tag: target + value: morningstar macros: - macro: '{$BATTERY.TEMP.MAX.CRIT}' -- cgit v1.2.3