Monitoraggio di un controller Raid Adaptec o IBM ServeRaid con Nagios
Jump to navigation
Jump to search
- Verificare che il controller utilizzi il driver aacraid:
sudo lspci -v | grep Adaptec -A11
04:00.0 RAID bus controller: Adaptec AAC-RAID (Rocket) (rev 02)
Subsystem: IBM ServeRAID 8k/8k-l8
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at c9e00000 (64-bit, non-prefetchable) [size=2M]
Memory at c7fe0000 (64-bit, prefetchable) [size=128K]
I/O ports at 5000 [size=256]
[virtual] Expansion ROM at c7f00000 [disabled] [size=32K]
Capabilities: [40] Express Endpoint, MSI 00
Capabilities: [e0] MSI: Enable- Count=1/4 Maskable- 64bit+
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: aacraid
- Impostare il repository Linux HWRAID
sudoedit /etc/apt/sources.list.d/hwraid.list
deb http://hwraid.le-vert.net/debian wheezy main
wget -O - http://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add - sudo apt-get update
- Installare il pacchetto contenente la cli:
sudo apt-get install arcconf
- Installare i plugin contrib di nagios che contengono check_raid:
sudo apt-get install nagios-plugins-contrib
- Testare il check:
sudo /usr/lib//nagios/plugins/check_raid
OK: arcconf:[Controller:Optimal, Logical Device 0(Drive 1):Optimal, Drives: BJR01679,BJR0164V=Online]
- Se non funziona, installare la versione aggiornata da glensc/nagios-plugin-check_raid
- Abilitare le regole sudo
sudo /usr/lib//nagios/plugins/check_raid -S
- Verificare che funzioni come nagios:
sudo -u nagios /usr/lib//nagios/plugins/check_raid