Monitoring of auto-discovered IPMI drive slot sensors (sensor type code 0Dh
).
This template is part of RaBe's Zabbix template and helpers collection.
An external script is used for low-level discovery of the sensors (as Zabbix currently lacks LLD of IPMI sensors).
- Install the IPMI sensor discovery script.
- Import the
Template_IPMI_Drive_Slot_Sensors.xml
template into your Zabbix server (click on theRaw
button to download). - Add the template to your host (or stack template)
- Set the following user macros on your host or template (those are required
for the auto discovery to work)
{$HOST.IPMI.CONN}
IP address or domain name of your IPMI host{$HOST.IPMI.USER}
IPMI user{$HOST.IPMI.PASS}
IPMI password
- Add an IPMI interface to your host
- Configure the IPMI parameters of your host
- Check if new data arrives
IPMI template for drive slots sensors (sensor type code 0Dh) with sensor-specific discrete values (reading type 6Fh).
The {$HOST.IPMI.CONN}, {$HOST.IPMI.USER} and {$HOST.IPMI.PASS} macros have to be set according to your IPMI configuration.
{$HOST.IPMI.CONN}
(default: localhost){$HOST.IPMI.PASS}
(default: password){$HOST.IPMI.USER}
(default: admin){$IPMI_DRIVE_SLOT_SENSOR_TYPES}
(default: Drive_Slot)
Drive slot IPMI sensor discovery (ipmi-sensor-discovery.sh["{$HOST.IPMI.CONN}","{$HOST.IPMI.USER}","{$HOST.IPMI.PASS}", "{$IPMI_DRIVE_SLOT_SENSOR_TYPES}"]
)
Discovers drive slot IPMI sensors with the help of the external ipmi-sensor-discovery.sh script.
- Sensor $2 (
ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}]
)
IPMI discrete sensor prototype item for a drive slot (sensor type code 0Dh).
- Warning: Drive slote {#IPMI_SENSOR_NAME} predictive failure on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "Predictive Failure" (sensor specific offset 02h) state. The third least significant bit is 1 (VALUE & 100 = 100).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,4)}=4
- Information: Drive slot {#IPMI_SENSOR_NAME} consistency check in progress on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "Consistency Check / Parity Check in progress" (sensor specific offset 04h) state. The fifth least significant bit is 1 (VALUE & 10000 = 10000).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,16)}=16
- High: Drive slot {#IPMI_SENSOR_NAME} drive fault on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "Drive Fault" (sensor specific offset 01h) state. The second least significant bit = 1 (VALUE & 10 = 10).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,2)}=2
- Warning: Drive slot {#IPMI_SENSOR_NAME} in critical array on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "In Critical Array" (sensor specific offset 05h) state. The sixth least significant bit is 1 (VALUE & 100000 = 100000).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,32)}=32
- High: Drive slot {#IPMI_SENSOR_NAME} in failed array on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "In Failed Array" (sensor specific offset 06h) state. The seventh least significant bit is 1 (VALUE & 1000000 = 1000000).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,64)}=64
- Warning: Drive slot {#IPMI_SENSOR_NAME} rebuild aborted on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "Rebuild/Remap Aborted (was not completed normally)" (sensor specific offset 08h) state. The ninth least significant bit is 1 (VALUE & 100000000 = 100000000).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,256)}=256
- Information: Drive slot {#IPMI_SENSOR_NAME} rebuild in progress on {HOST.NAME}
The IPMI drive slot sensor (sensor type code 0Dh) is in "Rebuild/Remap in progress" (sensor specific offset 07h) state. The eighth least significant bit is 1 (VALUE & 10000000 = 10000000).
{Template IPMI Drive Slot Sensors:ipmi.discrete-sensor[drive-slot,{#IPMI_SENSOR_NAME}].band(#1,128)}=128
This template is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
Copyright (c) 2017 - 2019 Radio Bern RaBe