Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Status Monitoring of MegaRAID Array Card based on Zabbix

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

MegaRAID monitoring features:

Native linux shell/windows batch scripts for better compatibility

Based on Zabbix LLD auto-discovery, raid card adapters, RAID array groups and physical disks are automatically discovered (currently only physical disks are automatically discovered on the network)

Accurate identification of RAID array level, number of array disks and number of hot spares, currently able to accurately identify RAID0, 1, 5, 6, 10

Simple deployment, one-time deployment, easy to use, extended monitoring items only need to be configured in the Web interface

System requirements:

Zabbix version > = 2.0

The system carrier must be a physical server, and the array card brand is LSI, which supports most DELL array cards (array card model H310/H330/H730, etc.)

Download address of MegaRAID monitoring script and template:

Package download: MegaRAID-Monitoring.zip

Template download: Template_Hardware_MegaRAID.xml

I. deployment instructions:

Deployment part is divided into Linux operating system and Windows operating system.

The Linux part of this article uses CentOS, which is compatible with CentOS on 5-6-7.

Windows part uses Windows Server 2008R2, which is compatible with Windows Server 2003, 2008, 2012 and 2016.

1. Download MegaRAID-Monitoring.zip and extract the deployment

Linux deployment instructions:

After ① is decompressed, copy all the script files under the MegaRAID-Monitoring/linux/scripts folder to the monitored server and grant execution permission. Assume / etc/zabbix/scripts here (create your own if the directory does not exist)

Cp MegaRAID-Monitoring/linux/scripts/* / etc/zabbix/scripts/ chmod + x / etc/zabbix/scripts/MegaRAID_*.sh

② copies the MegaRAID-Monitoring/linux/conf/userparameter_MegaRAID.conf configuration file to the monitored server, which is assumed to be / etc/zabbix/zabbix_agentd.d/ (zabbix agent default profile path)

Cp MegaRAID-Monitoring/linux/conf/userparameter_MegaRAID.conf / etc/zabbix/zabbix_agentd.d/

Note: the configuration file userparameter_MegaRAID.conf for linux and windows is not a file

Include=/etc/zabbix/zabbix_agentd.d/*.conf must be included in the zabbix_agentd.conf

If the script file is not in the / etc/zabbix/scripts/ directory, modify the script file path in userparameter_MegaRAID.conf to the actual script file path

③ installs MegaRAID-Monitoring/linux/MegaCli-8.07.14-1.noarch.rpm

Rpm-ivh MegaRAID-Monitoring/linux/MegaCli-8.07.14-1.noarch.rpm

④ configuration sudoers

Cat > > / etc/sudoers Latest data can see the status information of the array card. The following is an example (click to see the larger image)

II. Custom monitoring extension description

MegaRAID monitoring provides the function of adding monitoring items to online Web, which is convenient for users to customize and add monitoring content.

Monitoring Key description: seven custom monitoring Key are used in MegaRAID monitoring, which are:

MegaRAID.Adapter.discovery # RAID Array Card Adapter Auto Discovery (returns JSON data)

MegaRAID.Adapter.Info [*] # RAID array card adapter status monitoring (array card ID+ parameter, for example, get the cache size of array card 0: "MegaRAID.Adapter.Info [0J memory Size]", the parameter is not case sensitive)

MegaRAID.VDisk.discovery # RAID Array Auto Discovery (returns JSON data)

MegaRAID.VDisk.Info [*] # RAID array status monitoring (array ID+ parameter, for example, get the status of array 0: "MegaRAID.VDisk.Info [0 # state]", the parameter is not case sensitive)

MegaRAID.VDisk.RAIDLevel [*] # RAID array level and disk count monitoring (array ID, for example, get information about array 0: "MegaRAID.VDisk.RAIDLevel [0]")

MegaRAID.PDisk.discovery # automatic discovery of physical disks (returning JSON data)

MegaRAID.PDisk.Info [*] # physical disk status monitoring (physical disk ID+ parameter, for example, get the type of disk ID of 252ID: "MegaRAID.PDisk.Info [252ID 1J PD disk]", the parameter is not case sensitive)

Note: if the specified parameter cannot be obtained or does not exist, the string "Unknown" is returned.

The method to get the parameters:

/ opt/MegaRAID/MegaCli/MegaCli64-AdpAllInfo-aALL-NoLog # get RAID array card adapter parameter list

/ opt/MegaRAID/MegaCli/MegaCli64-LDInfo-LALL-aALL-NoLog # get RAID array parameter list

/ opt/MegaRAID/MegaCli/MegaCli64-PDList-aALL-NoLog # get physical disk parameter list

Parameters only need to fill in the string to the left of the colon, for example: get the cache size of the RAID array card adapter

Use / opt/MegaRAID/MegaCli/MegaCli64-AdpAllInfo-aALL-NoLog to get "Memory Size: 256MB", then you only need to enter "Memory Size" for the parameter.

If you are not sure whether the parameter is correct, use the command to confirm:

Zabbix_agentd-t "MegaRAID.Adapter.Info [0memory Size]"

MegaRAID.Adapter.Info [0memory Size] [t | 256MB]

To ensure that custom monitoring can be applied to each RAID array card adapter (RAID array / physical disk), add it to the corresponding auto-discovery rule in the template. It is recommended to use cloning to add new monitoring items and automatically discover the list of rules:

MegaRAID Adapter discovery # RAID Array Card Adapter Auto Discovery rules

MegaRAID VirtualDisk discovery # RAID Array Auto Discovery rules

MegaRAID PhysicalDisk discovery # rules for automatic discovery of physical disks

Reprint: http://www.madown.com/2017/09/26/ zabbix-based megaraid array card status monitoring /

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report