Skip to content

Template and scripts for Zabbix server and agent to monitor software raids on Linux OS

Notifications You must be signed in to change notification settings

Mabedini63/zabbix_mdraid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Zabbix template handles Software RAID (MD) on Linux

Design and Implementaion:

  • auto-discovery for all active MDs
  • no assumption made about MD name
  • currently, only two HDD/SSD reported as members of the array
  • trigger is constructed to monitor RAID State.
  • to avoid flipping, the trigger will fire if state change sustain for
    more than one collection cycle

TO DO list

  • indtroduce items: failed device, number of failed devices
  • auto-discover array devices

Append to zabbix_agentd.conf file

   UserParameter=mdraid[*], sudo /usr/local/bin/zabbix_mdraid.sh -m'$1' -$2'$3'
   
   UserParameter=mdraid.discovery, sudo /usr/local/bin/zabbix_mdraid.sh -D 

Note

don't forget to add zabbix user to sudoers add sudo Groups:

groupadd sudo
usermod -aG sudo zabbix
visudo

Add This Line:

%sudo  ALL=(ALL)       NOPASSWD: ALL

Note

In Redhat base you must diactive SELinux

setenforce 0

Note

In Redhat base you must add firewall rouls:

firewall-cmd --add-port=10050/tcp --permanent 
firewall-cmd --reload

Referrence:

About

Template and scripts for Zabbix server and agent to monitor software raids on Linux OS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%