Konfiguracja pluginu Adaptec RAID Monitoring w Windows Server 2012
Artykuł ten opisuje monitoring kontrolera RAID firmy Adaptec w systemie Windows za pośrednictwem Icinga/Nagios i pluginu Adaptec RAID Monitoring check_adaptec_raid. W następującym artykule wykorzystana została wersja systemu Windows Server 2012 64bit, jednakże instrukcja może zostać zastosowana analogicznie w innych wersjach systemu Windows.
Wymagane oprogramowanie
Następujące komponenty programowe są wymagane w systemie Windows:
- nsclient++: Instalacja i konfiguracja NSClient++ w systemie Windows
- arcconf: arcconf storage manager
- Strawberry Perl: Instalacja Strawberry Perl w systemie Windows
- check_adaptec_raid Plugin: Plugin Adaptec RAID Monitoring
Kroki instalacji
Instalacja nsclient++, jak jest to opisane w Instalacja i konfiguracja NSClient++ w systemie Windows. Opcja Allow users to write config file ułatwia późniejszą konfigurację NRPE.
Uruchomienie nsclient++ w trybie testowym w celu kontroli połączenia z serwerem Icinga (vide Nsclient++, dział Test pluginów).
Instalacja Perla, tak jak jest to opisane w artykule Instalacja Strawberry Perl w systemie Windows.
Pobranie narzędzi arcconf storage manager arcconf i umieszczenie plików arcconf.exe, afaapi.dll i storarc.dll w jednym katalogu.
Konfiguracja NRPE
Po powyżej opisanych krokach instalacji należy w pliku C:\Program Files\NSClient++\nsclient.ini dodać następujące wiersze:
; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options.
[/settings/NRPE/server]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true
; Section for external scripts configuration options (CheckExternalScripts).
[/settings/external scripts]
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.
allow arguments = true
[/settings/external scripts/scripts]
check_adaptec_raid=C:\\strawberry\\perl\\bin\\perl.exe C:\\Programme\\Adaptec\\check_adaptec_raid -C 1 -p C:\\Programme\\Adaptec\\arcconf.exe
Testy z serwera Icinga
Plugin check_nrpe wykonuje na serwerze Windows check_adaptec_raid poprzez NRPE:
:~$ /usr/lib/nagios/plugins/check_nrpe -H 10.1.102.142 -c check_adaptec_raid
AACRAID CRITICAL (Ctrl #1): [Ctrl. temp. critical, Log. device failed/degraded, Log. device critical, 1 log. device(s) failed]
Autor: Georg Schönberger