# Morningstar SureSine SNMP ## Overview For Zabbix version: 6.0 and higher ## Setup > See [Zabbix template operation](https://www.zabbix.com/documentation/6.0/manual/config/templates_out_of_the_box/zabbix_agent) for basic instructions. Refer to the vendor documentation. ## Zabbix configuration No specific Zabbix configuration is required. ### Macros used |Name|Description|Default| |----|-----------|-------| |{$BATTERY.TEMP.MAX.CRIT} |

Battery high temperature critical value

|`60` | |{$BATTERY.TEMP.MAX.WARN} |

Battery high temperature warning value

|`45` | |{$BATTERY.TEMP.MIN.CRIT} |

Battery low temperature critical value

|`-20` | |{$BATTERY.TEMP.MIN.WARN} |

Battery low temperature warning value

|`0` | |{$CHARGE.STATE.CRIT} |

fault

|`4` | |{$CHARGE.STATE.WARN} |

disconnect

|`2` | |{$LOAD.STATE.CRIT:"fault"} |

fault

|`4` | |{$LOAD.STATE.CRIT:"lvd"} |

lvd

|`3` | |{$LOAD.STATE.WARN:"disconnect"} |

disconnect

|`5` | |{$LOAD.STATE.WARN:"lvdWarning"} |

lvdWarning

|`2` | |{$LOAD.STATE.WARN:"override"} |

override

|`7` | |{$VOLTAGE.MAX.CRIT} |

-

|`` | |{$VOLTAGE.MAX.WARN} |

-

|`` | |{$VOLTAGE.MIN.CRIT} |

-

|`` | |{$VOLTAGE.MIN.WARN} |

-

|`` | ## Template links There are no template links in this template. ## Discovery rules |Name|Description|Type|Key and additional info| |----|-----------|----|----| |Battery voltage discovery |

Discovery for battery voltage triggers

|DEPENDENT |battery.voltage.discovery

**Preprocessing**:

- JAVASCRIPT: `The text is too long. Please see the template.`

| ## Items collected |Group|Name|Description|Type|Key and additional info| |-----|----|-----------|----|---------------------| |Battery |Battery: Voltage{#SINGLETON} |

MIB: SURESINE

Description:Battery Voltage(slow)

Scaling Factor:0.0002581787109375

Units:V

Range:[0.0, 17.0]

Modbus address:0x0004

|SNMP |battery.voltage[batteryVoltageSlow.0{#SINGLETON}]

**Preprocessing**:

- MULTIPLIER: `2.581787109375E-4`

- REGEX: `^(\d+)(\.\d{1,2})? \1\2`

| |Load |Load: State |

MIB: SURESINE

Description:Load State

Modbus address:0x000B

0: Start

1: LoadOn

2: LvdWarning

3: LowVoltageDisconnect

4: Fault

5: Disconnect

6: NormalOff

7: UnknownState

8: Standby

|SNMP |load.state[loadState.0]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

| |Load |Load: A/C Current |

MIB: SURESINE

Description:AC Output Current

Scaling Factor:0.0001953125

Units:A

Range:[0.0, 17]

Modbus address:0x0005

|SNMP |load.ac_current[acCurrent.0]

**Preprocessing**:

- MULTIPLIER: `1.953125E-4`

- REGEX: `^(\d+)(\.\d{1,2})? \1\2`

| |Status |Status: Uptime |

Device uptime in seconds

|SNMP |status.uptime

**Preprocessing**:

- MULTIPLIER: `0.01`

| |Status |Status: Faults |

MIB: SURESINE

Description:Faults

Modbus address:0x0007

|SNMP |status.faults[faults.0]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

- JAVASCRIPT: `The text is too long. Please see the template.`

| |Status |Status: Alarms |

MIB: SURESINE

Description:Faults

Modbus address:0x0007

|SNMP |status.alarms[alarms.0]

**Preprocessing**:

- DISCARD_UNCHANGED_HEARTBEAT: `1h`

- JAVASCRIPT: `The text is too long. Please see the template.`

| |Temperature |Temperature: Heatsink |

MIB: SURESINE

Description:Heatsink Temperature

Scaling Factor:1

Units:C

Range:[-128, 127]

Modbus address:0x0006

|SNMP |temp.heatsink[heatsinkTemperature.0] | |Zabbix_raw_items |Battery: Battery Voltage discovery |

MIB: SURESINE

|SNMP |battery.voltage.discovery[batteryVoltageSlow.0]

**Preprocessing**:

- MULTIPLIER: `2.581787109375E-4`

- REGEX: `^(\d+)(\.\d{1,2})? \1\2`

| ## Triggers |Name|Description|Expression|Severity|Dependencies and additional info| |----|-----------|----|----|----| |Battery: Low battery voltage (below {#VOLTAGE.MIN.WARN}V for 5m) |

-

|`max(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.WARN}` |WARNING |

**Depends on**:

- Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m)

| |Battery: Critically low battery voltage (below {#VOLTAGE.MIN.CRIT}V for 5m) |

-

|`max(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)<{#VOLTAGE.MIN.CRIT}` |HIGH | | |Battery: High battery voltage (over {#VOLTAGE.MAX.WARN}V for 5m) |

-

|`min(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.WARN}` |WARNING |

**Depends on**:

- Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m)

| |Battery: Critically high battery voltage (over {#VOLTAGE.MAX.CRIT}V for 5m) |

-

|`min(/Morningstar SureSine SNMP/battery.voltage[batteryVoltageSlow.0{#SINGLETON}],5m)>{#VOLTAGE.MAX.CRIT}` |HIGH | | |Load: Device load in warning state |

-

|`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"}` |WARNING |

**Depends on**:

- Load: Device load in critical state

| |Load: Device load in critical state |

-

|`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"}` |HIGH | | |Status: Device has been restarted (uptime < 10m) |

Uptime is less than 10 minutes

|`last(/Morningstar SureSine SNMP/status.uptime)<10m` |INFO |

Manual close: YES

| |Status: Failed to fetch data (or no data for 5m) |

Zabbix has not received data for items for the last 5 minutes

|`nodata(/Morningstar SureSine SNMP/status.uptime,5m)=1` |WARNING |

Manual close: YES

| |Status: Device has "reset" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","reset")=2` |HIGH | | |Status: Device has "overcurrent" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","overcurrent")=2` |HIGH | | |Status: Device has "unknownFault" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","unknownFault")=2` |HIGH | | |Status: Device has "software" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","software")=2` |HIGH | | |Status: Device has "highVoltageDisconnect" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","highVoltageDisconnect")=2` |HIGH | | |Status: Device has "suresineHot" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","suresineHot")=2` |HIGH | | |Status: Device has "dipSwitchChanged" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","dipSwitchChanged")=2` |HIGH | | |Status: Device has "customSettingsEdit" faults flag |

-

|`count(/Morningstar SureSine SNMP/status.faults[faults.0],#3,"like","customSettingsEdit")=2` |HIGH | | |Status: Device has "heatsinkTempSensorOpen" alarm flag |

-

|`count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorOpen")=2` |WARNING | | |Status: Device has "heatsinkTempSensorShort" alarm flag |

-

|`count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","heatsinkTempSensorShort")=2` |WARNING | | |Status: Device has "unknownAlarm" alarm flag |

-

|`count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","unknownAlarm")=2` |WARNING | | |Status: Device has "suresineHot" alarm flag |

-

|`count(/Morningstar SureSine SNMP/status.alarms[alarms.0],#3,"like","suresineHot")=2` |WARNING | | ## Feedback Please report any issues with the template at https://support.zabbix.com