
# HPE iLO by HTTP

## Overview

This template is designed for the effortless deployment of HPE iLO monitoring by Zabbix via iLO RESTful API and doesn't require any external scripts.

For more details about HPE Redfish services, refer to the [`official documentation`](https://servermanagementportal.ext.hpe.com/docs/redfishservices/).

## Requirements

Zabbix version: 7.0 and higher.

## Tested versions

This template has been tested on:
- iLO 5 version 2.95, HPE ProLiant DL160 Gen10

## Configuration

> Zabbix should be configured according to the instructions in the [Templates out of the box](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box) section.

## Setup

1. Create the iLO user for monitoring (for example, `zbx_monitor`). The user will only need to have the `Login` privilege, which can be assigned manually or by assigning the `ReadOnly` role to the user.
2. Set the iLO API endpoint URL in the `{$ILO.URL}` macro in the format `<scheme>://<host>[:port]/` (port is optional).
3. Set the name of the user that you created in step 1 in the `{$ILO.USER}` macro.
4. Set the password of the user that you created in step 1 in the `{$ILO.PASSWORD}` macro.

### Macros used

|Name|Description|Default|
|----|-----------|-------|
|{$ILO.URL}|
The iLO API endpoint in the format "<scheme>://<host>[:port]/" (port is optional).
||
|{$ILO.USER}|
The name of the user that is used for monitoring.
||
|{$ILO.PASSWORD}|
The password of the user that is used for monitoring.
||
|{$ILO.HTTP_PROXY}|
The HTTP proxy for script items (set if needed). If the macro is empty, then no proxy is used.
||
|{$ILO.INTERVAL}|
The update interval for the script item that retrieves data from API.
|`1m`|
|{$ILO.TIMEOUT}|
The timeout threshold for the script item that retrieves data from API.
|`15s`|
|{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.MATCHES}|
The computer system hostname regex filter to use in computer systems related metrics discovery for including. Can be used with the following context to include metrics of the particular entity: System, Storage, Controller, Drive, Volume.
|`.+`|
|{$ILO.COMPUTER_SYSTEM.DISCOVERY.HOSTNAME.NOT_MATCHES}|
The computer system hostname regex filter to use in computer systems related metrics discovery for excluding. Can be used with the following context to exclude metrics of the particular entity: System, Storage, Controller, Drive, Volume.
|`CHANGE_IF_NEEDED`|
|{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.MATCHES}|
The computer system type regex filter to use in computer systems related metrics discovery for including. Can be used with the following context to include metrics of the particular entity: System, Storage, Controller, Drive, Volume.
|`.+`|
|{$ILO.COMPUTER_SYSTEM.DISCOVERY.TYPE.NOT_MATCHES}|
The computer system type regex filter to use in computer systems related metrics discovery for excluding. Can be used with the following context to exclude metrics of the particular entity: System, Storage, Controller, Drive, Volume.
|`CHANGE_IF_NEEDED`|
|{$ILO.SENSOR.DISCOVERY.NAME.MATCHES}|
The sensor name regex filter to use in temperature sensors discovery for including.
|`.+`|
|{$ILO.SENSOR.DISCOVERY.NAME.NOT_MATCHES}|
The sensor name regex filter to use in temperature sensors discovery for excluding.
|`CHANGE_IF_NEEDED`|
|{$ILO.SENSOR.DISCOVERY.CONTEXT.MATCHES}|
The sensor physical context regex filter to use in temperature sensors discovery for including.
|`.+`|
|{$ILO.SENSOR.DISCOVERY.CONTEXT.NOT_MATCHES}|
The sensor physical context regex filter to use in temperature sensors discovery for excluding.
|`CHANGE_IF_NEEDED`|

### Items

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Get data|
The JSON with the result of API requests.
|Script|hpe.ilo.get_data|
|Get data check|
The data collection check.
|Dependent item|hpe.ilo.get_data.check
**Preprocessing**

- 
JSON Path: `$.error`

⛔️Custom on fail: Set value to: ``</p></li><li><p>Discard unchanged with heartbeat: `3h`

|

### Triggers

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Failed to get data from API|
Failed to get data from API. Check the debug log for more information.
|`length(last(/HPE iLO by HTTP/hpe.ilo.get_data.check))>0`|High||

### LLD rule HPE iLO: Computer systems discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Computer systems discovery|
Discovers computer systems.
|Dependent item|hpe.ilo.computer_systems.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Computer systems discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Computer system [{#SYSTEM_HOSTNAME}]: Get data|
Get data about the computer system.
|Dependent item|hpe.ilo.computer_system.get_data[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.systems[?(@.Id == '{#SYSTEM_ID}')].first()`

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: System type|
The type of the computer system. Possible values:

0 - "Physical", a computer system;

1 - "Virtual", a virtual machine instance running on this system;

2 - "OS", an operating system instance;

3 - "PhysicallyPartitioned", a hardware-based partition of a computer system;

4 - "VirtuallyPartitioned", a virtual or software-based partition of a computer system;

5 - "DPU", a virtual or software-based partition of a computer system;

10 - "Unknown", the computer system type is unknown.
|Dependent item|hpe.ilo.computer_system.type[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.SystemType`

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

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Model|
The model name of the computer system.
|Dependent item|hpe.ilo.computer_system.model[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Model`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Serial number|
The serial number of the computer system.
|Dependent item|hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.SerialNumber`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: BIOS current version|
The current BIOS version of the computer system.
|Dependent item|hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Oem.Hpe.Bios.Current.VersionString`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Status|
The overall health state from the view of this computer system. Possible values:

0 - "OK", the computer system is in normal condition;

1 - "Warning", the computer system is in condition that requires attention;

2 - "Critical", the computer system is in critical condition that requires immediate attention;

10 - "Unknown", the computer system is in unknown condition.
|Dependent item|hpe.ilo.computer_system.status[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.HealthRollup`

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

- 
Discard unchanged with heartbeat: `1h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: CPU utilization, in %|
Current CPU utilization of the computer system in percentage.
|Dependent item|hpe.ilo.computer_system.usage.cpu_util[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Oem.Hpe.SystemUsage.CPUUtil`

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: I/O bus utilization, in %|
Current I/O bus utilization of the computer system in percentage.
|Dependent item|hpe.ilo.computer_system.usage.io_bus_util[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Oem.Hpe.SystemUsage.IOBusUtil`

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: Memory bus utilization, in %|
Current memory bus utilization of the computer system in percentage.
|Dependent item|hpe.ilo.computer_system.usage.memory_bus_util[{#SYSTEM_ID}]
**Preprocessing**

- 
JSON Path: `$.Oem.Hpe.SystemUsage.MemoryBusUtil`

⛔️Custom on fail: Discard value

|

### Trigger prototypes for HPE iLO: Computer systems discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system has been replaced|
The computer system serial number has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.computer_system.serial_number[{#SYSTEM_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: BIOS version has changed|
The current version of BIOS has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.computer_system.bios.current_version[{#SYSTEM_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in warning state|
The computer system is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.computer_system.status[{#SYSTEM_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in critical state
|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Computer system is in critical state|
The computer system is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.computer_system.status[{#SYSTEM_ID}])=2`|High||

### LLD rule HPE iLO: Managers discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Managers discovery|
Discovers managers.
|Dependent item|hpe.ilo.managers.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Managers discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Manager [{#MANAGER_ID}]: Get data|
Get data about the manager.
|Dependent item|hpe.ilo.manager.get_data[{#MANAGER_ID}]
**Preprocessing**

- 
JSON Path: `$.managers[?(@.Id == '{#MANAGER_ID}')].first()`

⛔️Custom on fail: Discard value

|
|Manager [{#MANAGER_ID}]: Manager type|
The manager type. Possible values:

0 - "ManagementController", a controller used primarily to monitor or manage the operation of a device or system;

1 - "EnclosureManager", a controller which provides management functions for a chassis or group of devices or systems;

2 - "BMC", a controller which provides management functions for a single computer system;

10 - "Unknown", the manager type is unknown.
|Dependent item|hpe.ilo.manager.type[{#MANAGER_ID}]
**Preprocessing**

- 
JSON Path: `$.ManagerType`

⛔️Custom on fail: Discard value

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

- 
Discard unchanged with heartbeat: `6h`

|
|Manager [{#MANAGER_ID}]: Model|
The model name of the manager.
|Dependent item|hpe.ilo.manager.model[{#MANAGER_ID}]
**Preprocessing**

- 
JSON Path: `$.Model`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Manager [{#MANAGER_ID}]: Current firmware version|
The current firmware version of the manager.
|Dependent item|hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}]
**Preprocessing**

- 
JSON Path: `$.FirmwareVersion`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Manager [{#MANAGER_ID}]: Status|
The health state of the manager. Possible values:

0 - "OK", the manager is in normal condition;

1 - "Warning", the manager is in condition that requires attention;

2 - "Critical", the manager is in critical condition that requires immediate attention;

10 - "Unknown", the manager is in unknown condition.
|Dependent item|hpe.ilo.manager.status[{#MANAGER_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for HPE iLO: Managers discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Manager [{#MANAGER_ID}]: Firmware version has changed|
The current firmware version of the manager has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.manager.firmware.current_version[{#MANAGER_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Manager [{#MANAGER_ID}]: Manager is in warning state|
The manager is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.manager.status[{#MANAGER_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Manager [{#MANAGER_ID}]: Manager is in critical state
|
|HPE iLO: Manager [{#MANAGER_ID}]: Manager is in critical state|
The manager is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.manager.status[{#MANAGER_ID}])=2`|High||

### LLD rule HPE iLO: Storages discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Storages discovery|
Discovers computer system storages.
|Dependent item|hpe.ilo.storages.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Storages discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Get data|
Get data about the storage.
|Dependent item|hpe.ilo.storage.get_data[{#SYSTEM_ID}, {#STORAGE_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Status|
The overall health state from the view of this storage. Possible values:

0 - "OK", the storage is in normal condition;

1 - "Warning", the storage is in condition that requires attention;

2 - "Critical", the storage is in critical condition that requires immediate attention;

10 - "Unknown", the storage is in unknown condition.
|Dependent item|hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.HealthRollup`

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

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for HPE iLO: Storages discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in warning state|
The computer system is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in critical state
|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Storage is in critical state|
The computer system is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.storage.status[{#SYSTEM_ID}, {#STORAGE_ID}])=2`|High||

### LLD rule HPE iLO: Controllers discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Controllers discovery|
Discovers storage controllers.
|Dependent item|hpe.ilo.controllers.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Controllers discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Get data|
Get data about the controller.
|Dependent item|hpe.ilo.controller.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Model|
The model name of the controller.
|Dependent item|hpe.ilo.controller.model[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]
**Preprocessing**

- 
JSON Path: `$.Model`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Serial number|
The serial number of the controller.
|Dependent item|hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]
**Preprocessing**

- 
JSON Path: `$.SerialNumber`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Status|
The health state of the controller. Possible values:

0 - "OK", the controller is in normal condition;

1 - "Warning", the controller is in condition that requires attention;

2 - "Critical", the controller is in critical condition that requires immediate attention;

10 - "Unknown", the controller is in unknown condition.
|Dependent item|hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for HPE iLO: Controllers discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller has been replaced|
The controller serial number has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.controller.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in warning state|
The controller is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in critical state
|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Controller [{#CONTROLLER_ID}]: Controller is in critical state|
The controller is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.controller.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#CONTROLLER_ID}])=2`|High||

### LLD rule HPE iLO: Drives discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Drives discovery|
Discovers storage drives.
|Dependent item|hpe.ilo.drives.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Drives discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Get data|
Get data about the drive.
|Dependent item|hpe.ilo.drive.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Media type|
The media type of the drive.
|Dependent item|hpe.ilo.drive.media_type[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.MediaType`

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

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Serial number|
The serial number of the drive.
|Dependent item|hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.SerialNumber`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Model|
The model name of the drive.
|Dependent item|hpe.ilo.drive.model[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.Model`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Capacity|
The capacity of the drive.
|Dependent item|hpe.ilo.drive.capacity[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.CapacityBytes`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Predicted media life left, in %|
The percentage of reads and writes that are predicted to still be available for the drive.
|Dependent item|hpe.ilo.drive.predicted_life_left[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.PredictedMediaLifeLeftPercent`

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Status indicator|
Status of drive. Possible values:

0 - "OK", the drive is ok;

1 - "Fail", the drive has failed;

2 - "Rebuild", the drive is being rebuilt;

3 - "PredictiveFailureAnalysis", the drive is still working but predicted to fail soon;

4 - "Hotspare", the drive is marked to be automatically rebuilt and used as a replacement for a failed drive;

5 - "InACriticalArray", the array that this drive is a part of is degraded;

6 - "InAFailedArray	", the array that this drive is a part of is failed;

10 - "Unknown", the drive status is unknown.
|Dependent item|hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]
**Preprocessing**

- 
JSON Path: `$.StatusIndicator`

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

- 
Discard unchanged with heartbeat: `1h`

|

### Trigger prototypes for HPE iLO: Drives discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has been replaced|
The drive serial number has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.drive.serial_number[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has failed|
The drive has failed.
|`last(/HPE iLO by HTTP/hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=1`|High||
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive is predicted to fail soon|
The drive is still working but predicted to fail soon.
|`last(/HPE iLO by HTTP/hpe.ilo.drive.status_indicator[{#SYSTEM_ID}, {#STORAGE_ID}, {#DRIVE_ID}])=3`|High|**Depends on**:

- HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Drive [{#DRIVE_ID}]: Drive has failed
|

### LLD rule HPE iLO: Volumes discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Volumes discovery|
Discovers storage volumes.
|Dependent item|hpe.ilo.volumes.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Volumes discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Get data|
Get data about the volume.
|Dependent item|hpe.ilo.volume.get_data[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Capacity|
The capacity of the volume.
|Dependent item|hpe.ilo.volume.capacity[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]
**Preprocessing**

- 
JSON Path: `$.CapacityBytes`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Status|
The health state of the volume. Possible values:

0 - "OK", the volume is in normal condition;

1 - "Warning", the volume is in condition that requires attention;

2 - "Critical", the volume is in critical condition that requires immediate attention;

10 - "Unknown", the volume is in unknown condition.
|Dependent item|hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|
|Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: RAID level|
The RAID level of the volume.
|Dependent item|hpe.ilo.volume.raid_level[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}]
**Preprocessing**

- 
JSON Path: `$.RAIDType`

⛔️Custom on fail: Discard value

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

- 
Discard unchanged with heartbeat: `6h`

|

### Trigger prototypes for HPE iLO: Volumes discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in warning state|
The volume is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in critical state
|
|HPE iLO: Computer system [{#SYSTEM_HOSTNAME}]: Storage [{#STORAGE_ID}]: Volume [{#VOLUME_ID}]: Volume is in critical state|
The volume is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.volume.status[{#SYSTEM_ID}, {#STORAGE_ID}, {#VOLUME_ID}])=2`|High||

### LLD rule HPE iLO: Fans discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Fans discovery|
Discovers chassis fans.
|Dependent item|hpe.ilo.fans.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Fans discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Get data|
Get data about the fan.
|Dependent item|hpe.ilo.fan.get_data[{#CHASSIS_ID}, {#FAN_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Status|
The health state of the fan. Possible values:

0 - "OK", the fan is in normal condition;

1 - "Warning", the fan is in condition that requires attention;

2 - "Critical", the fan is in critical condition that requires immediate attention;

10 - "Unknown", the fan is in unknown condition.
|Dependent item|hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|
|Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Speed, in %|
The current speed of the fan.
|Dependent item|hpe.ilo.fan.speed[{#CHASSIS_ID}, {#FAN_ID}]
**Preprocessing**

- 
JSON Path: `$.Reading`

|

### Trigger prototypes for HPE iLO: Fans discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in warning state|
The fan is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in critical state
|
|HPE iLO: Chassis [{#CHASSIS_ID}]: Fan [{#FAN_NAME}]: Fan is in critical state|
The fan is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.fan.status[{#CHASSIS_ID}, {#FAN_ID}])=2`|High||

### LLD rule HPE iLO: Temperature sensors discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: Temperature sensors discovery|
Discovers chassis temperature sensors.
|Dependent item|hpe.ilo.sensors.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: Temperature sensors discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Get data|
Get data about the sensor.
|Dependent item|hpe.ilo.sensor.get_data[{#CHASSIS_ID}, {#SENSOR_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Status|
The health state of the sensor. Possible values:

0 - "OK", the sensor is in normal condition;

1 - "Warning", the sensor is in condition that requires attention;

2 - "Critical", the sensor is in critical condition that requires immediate attention;

10 - "Unknown", the sensor is in unknown condition.
|Dependent item|hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|
|Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Temperature|
The current temperature reading in Celsius degrees for the sensor.
|Dependent item|hpe.ilo.sensor.temperature[{#CHASSIS_ID}, {#SENSOR_ID}]
**Preprocessing**

- 
JSON Path: `$.ReadingCelsius`

|

### Trigger prototypes for HPE iLO: Temperature sensors discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in warning state|
The sensor is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in critical state
|
|HPE iLO: Chassis [{#CHASSIS_ID}]: Sensor [{#SENSOR_NAME}]: Sensor is in critical state|
The sensor is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.sensor.status[{#CHASSIS_ID}, {#SENSOR_ID}])=2`|High||

### LLD rule HPE iLO: PSU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|HPE iLO: PSU discovery|
Discovers chassis power supply units (PSU).
|Dependent item|hpe.ilo.psu.discovery
**Preprocessing**

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

- 
Discard unchanged with heartbeat: `6h`

|

### Item prototypes for HPE iLO: PSU discovery

|Name|Description|Type|Key and additional info|
|----|-----------|----|-----------------------|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Get data|
Get data about the PSU.
|Dependent item|hpe.ilo.psu.get_data[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

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

⛔️Custom on fail: Discard value

|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Model|
The model name of the PSU.
|Dependent item|hpe.ilo.psu.model[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

- 
JSON Path: `$.Model`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Serial number|
The serial number of the PSU.
|Dependent item|hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

- 
JSON Path: `$.SerialNumber`

⛔️Custom on fail: Discard value

- 
Discard unchanged with heartbeat: `6h`

|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Status|
The health state of the PSU. Possible values:

0 - "OK", the PSU is in normal condition;

1 - "Warning", the PSU is in condition that requires attention;

2 - "Critical", the PSU is in critical condition that requires immediate attention;

10 - "Unknown", the PSU is in unknown condition.
|Dependent item|hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

- 
JSON Path: `$.Status.Health`

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

- 
Discard unchanged with heartbeat: `1h`

|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Line input voltage|
The line input voltage at which the PSU is operating.
|Dependent item|hpe.ilo.psu.line_input_voltage[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

- 
JSON Path: `$.LineInputVoltage`

|
|Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: Last power output|
The average power output of the PSU.
|Dependent item|hpe.ilo.psu.last_power_output[{#CHASSIS_ID}, {#PSU_ID}]
**Preprocessing**

- 
JSON Path: `$.LastPowerOutputWatts`

|

### Trigger prototypes for HPE iLO: PSU discovery

|Name|Description|Expression|Severity|Dependencies and additional info|
|----|-----------|----------|--------|--------------------------------|
|HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU has been replaced|
The PSU serial number has changed. Acknowledge to close the problem manually.
|`change(/HPE iLO by HTTP/hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}])=1 and length(last(/HPE iLO by HTTP/hpe.ilo.psu.serial_number[{#CHASSIS_ID}, {#PSU_ID}]))>0`|Info|**Manual close**: Yes|
|HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in warning state|
The PSU is in condition that requires attention.
|`last(/HPE iLO by HTTP/hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}])=1`|Warning|**Depends on**:

- HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in critical state
|
|HPE iLO: Chassis [{#CHASSIS_ID}]: PSU [{#PSU_ID}]: PSU is in critical state|
The PSU is in critical condition that requires immediate attention.
|`last(/HPE iLO by HTTP/hpe.ilo.psu.status[{#CHASSIS_ID}, {#PSU_ID}])=2`|High||

## Feedback

Please report any issues with the template at [`https://support.zabbix.com`](https://support.zabbix.com)

You can also provide feedback, discuss the template, or ask for help at [`ZABBIX forums`](https://www.zabbix.com/forum/zabbix-suggestions-and-feedback)

