Monday, September 16, 2024

Ssacli Exporter cho RAID HP

-

Tổng quan.

Hướng dẫn này sẽ chỉ cho bạn cách sử dụng công cụ ssacli để cung cấp các số liệu thống kê cho hệ thống giám sát Prometheus, đặc biệt là các lỗi được báo cáo bởi phần cứng RAID của HP.

Mục đích của ssacli-exporter.

Ssacli-exporter là một công cụ dùng cho hệ thống giám sát Prometheus.

Nó gọi vào tiện ích ssacli để cung cấp số liệu thống kê về các lỗi được báo cáo bởi phần cứng RAID của HP.

Khi được thu thập, nó thực hiện lệnh sau:

ssacli ctrl slot=0 physicaldrive all show detail

Cài đặt và sử dụng.

Bạn cần chỉnh sửa file/etc/apt/sources.list và thêm nguồn tải xuống từ trang web của HP:

deb http://downloads.linux.hpe.com/SDR/repo/mcp xenial/current non-free

Sau đó, bạn cần thực hiện các lệnh sau để đăng ký các key trên hệ thống dựa trên DEB:

curl https://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
curl https://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
curl https://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -

Cuối cùng, cài đặt gói phần mềm

apt-get update && apt-get install ssacli

Config metric.

ssacli_exporter -Port 9060 (default port 9109 - /metrics )

Số liệu thống kê mẫu.

Dưới đây là ví dụ về số liệu thống kê:

# HELP disk_current_temperature Disk Current Temperature
# TYPE disk_current_temperature gauge
disk_current_temperature{physicaldrive="box 3 bay 1 type SAS"} 46
disk_current_temperature{physicaldrive="box 3 bay 2 type SAS"} 51
disk_current_temperature{physicaldrive="box 3 bay 3 type SAS"} 48
disk_current_temperature{physicaldrive="box 3 bay 4 type SAS"} 44
# HELP disk_maximum_temperature Disk Maximum Temperature
# TYPE disk_maximum_temperature gauge
disk_maximum_temperature{physicaldrive="box 3 bay 1 type SAS"} 50
disk_maximum_temperature{physicaldrive="box 3 bay 2 type SAS"} 58
disk_maximum_temperature{physicaldrive="box 3 bay 3 type SAS"} 58
disk_maximum_temperature{physicaldrive="box 3 bay 4 type SAS"} 55
# HELP disk_status Disk Status (OK = 1)
# TYPE disk_status gauge
disk_status{physicaldrive="box 3 bay 1 type none"} 1
disk_status{physicaldrive="box 3 bay 2 type SAS"} 1
disk_status{physicaldrive="box 3 bay 3 type SAS"} 1
disk_status{physicaldrive="box 3 bay 4 type SAS"} 1

Grafana Dashboard

Tham khảo: https://github.com/sahandhabibi/Ssacli-Exporter/tree/main

LEAVE A REPLY

Please enter your comment!
Please enter your name here

4,956FansLike
256FollowersFollow
223SubscribersSubscribe
spot_img

Related Stories