ArecaMonitor - zeigt den Status der Festplatten am Areca-Kontroller an

lynxx

Lt. Junior Grade
Registriert
Feb. 2005
Beiträge
436
ArecaMonitor.png
--------------------------------------------------------------------------------------
------------------------------- english decription below---------------------------
--------------------------------------------------------------------------------------
ArecaMonitor V1.14 - zeigt den Status der Festplatten am Areca-Kontroller an
--------------------------------------------------------------------------------------

Das WinHttp-Interface des Kontrollers ist zwar ganz nett, aber er aktualisiert nicht automatisch (ausser bei Raid rebuild) man muss auf die einzelnen Laufwerke klicken um detailierte Informationen zu bekommen.
Man muss immer einen Browser laufen haben auf dem Server und man muss immer erst in WinHttp einloggen.
Das alles waren genug Punkte für mich ein eigenes Tool zu schreiben das die Laufwerke überwacht.

ArecaMonitor prüft die Platten am Areca-Kontroller alle 5 Minuten auf:
Ist "Device State" = Normal ?
Ist "Media Error Count" = 0 ?
Prüfung dieser Smart-Werte:
"Read Error Rate", "Spinup Time", "Reallocation Count", "Seek Error Rate" & "Spinup Retries"
wenn einer der Attribute kleiner als der Threshold ist wird ein entsprechender Fehler angezeigt.

Ausserdem werden die Höchst/Niedrigsten Temperaturen gemerkt/angezeigt.
(Kleiner Nachtrag: Wenn sich die Festplatten ausschalten wird cli.exe immer nur die zuletzt bekannte Temperatur zurückliefern/in der WinHttp wird sie aber aktualisiert - der Fehler ist Areca schon gemeldet und wird evtl. mit der nächsten FirmWare behoben)

Die ArecaMonitor_TimeoutCheck.exe prüft ausserdem ob "Timeout Count" > 0 ist, das kann z.B passieren wenn die Festplatten sich komplett ausschalten dürfen (Hdd Power Managment -> Time To Spin Down Idle HDD -> Alles ausser "disabled"), entgegenwirken kann man mit "Advanced Configuration -> Timeout Setting erhöhen und oder "Number Of Retries" erhöhen)
aber da solch ein Timeout keinen direkten Einfluss auf den Betrieb des Kontrollers hat ist die Nutzung hiervon nur optional um zu sehen ob Timeouts auftreten.

Falls Events aufgetreten sind werden sie unter der Laufwerksliste angezeigt (ausser "HTTP Log In", "Raid Powered On/Off", "SW API Interface API"), durch klicken auf "Clear" wird der Beeper ausgeschaltet und die Event-Liste gelöscht.
Das Fenster wird auch in einem Fehlerfall nach vorne gebracht, es kann also immer minimiert laufen.

Wird eine Datei "DriveWarranties.txt" im gleichen Verzeichnis gefunden so wird sie eingelesen und entsprechend angezeigt ob die Laufwerke noch Garantie haben, der Aufbau sieht so aus:
Seriennummer yyyy.mm.dd
PH34E4WHB 2019.2.10
PHBEDE0VS 2019.1.29
PGSBHBGGT 2018.11.27
...

Und nein, das hier und im Screenshot sind keine echten Seriennummern. :p

ArecaMonitor braucht .NET 2.0 Framework.
ArecaMonitor braucht die cli.exe vom wincli-paket, oder die hier angehängte.

Anbei noch die derzeit aktuellste cli.exe (v1.15.13 Arclib374).

VirusTotal Prüfungen ergaben:
cli.exe 0/65
ArecaMonitor.exe 0/66
ArecaMonitor_TimeoutCheck.exe 0/66

Nachtrag:
Das Tool wurde entwickelt für HGST HD(S/N)724040ALE640 4TB Festplatten,
dessen Seriennummer immer mit PK1338, PK1334, PK2334, PK1381 usw beginnt, den Teil schneide ich weg, dann kommt die aufgedruckte Seriennummer.
Falls bei deinen Platten da nichts sinnvolles rauskommt/der aufbau anders ist, schick mir den Output von:
"cli disk info drv=1"
(oder drv=2 usw ..)

Vielleicht auch nützlich: ArecaKeyMerge kombiniert Keyfiles für Areca-Kontroller
--------------------------------------------------------------------------------------
ArecaMonitor V1.14 - shows the status of drives on the areca-controller
--------------------------------------------------------------------------------------

The WinHttp-Interface of the Controllers is neat, but it doesnt refresh automaticly (except when a raid is rebuilding) you have to klick on a drive to get detailied information.
You need to have a running brower on the server all the time and you have to login to WinHttp first.
That was enough points for me to write an own tool to monitor the drives.

ArecaMonitor checks the drives on the Areca-Controller every 5 Minutes:
Is "Device State" = Normal ?
Is "Media Error Count" = 0 ?
Checking these Smart-Values:
"Read Error Rate", "Spinup Time", "Reallocation Count", "Seek Error Rate" & "Spinup Retries"
if one of the Attributes is smaller as the Threshold, an appropiate error will be shown.

Also the highest/lowest temperature will be remembered/showed.
(Small addition: If the drives shut down cli.exe will always report the last know temperature/WinHttp will show the actual value - the error is already reported to Areca and will probably fixed with the next firmware)

The ArecaMonitor_TimeoutCheck.exe also checks if "Timeout Count" > 0, this kann for example happen when the drives are allowed to shut down completly (Hdd Power Managment -> Time To Spin Down Idle HDD -> Everything except "disabled"), if you increase "Advanced Configuration -> Timeout Setting and/or "Number Of Retries" this wont occur)
but such a Timeout didn't bother the Controller really, this version is only to check if such Timeouts happen.

If Events occur they will be shown below the driveslist (execpt "HTTP Log In", "Raid Powered On/Off", "SW API Interface API"), if you click "Clear" it will shut off the beeper and clear the event-list.
The Window will be brought to front in case of an error, so it can run minimized.

If a file "DriveWarranties.txt" will be found in the same directory, it will be read and the driveslist will show if they still got warranty, its composed like this:
Serialnumber yyyy.mm.dd
PH34E4WHB 2019.2.10
PHBEDE0VS 2019.1.29
PGSBHBGGT 2018.11.27
...

And no, these here and in the screenshot are not real serialnumbers. :p

ArecaMonitor needs .NET 2.0 Framework.
ArecaMonitor needs cli.exe from the wincli-paket, or the one attached.

Attached is the currently newest cli.exe (v1.15.13 Arclib374).

VirusTotal checks show:
cli.exe 0/65
ArecaMonitor.exe 0/66
ArecaMonitor_TimeoutCheck.exe 0/66

Addendum:
This tool was developed for HGST HD(S/N)724040ALE640 4TB harddrives,
their serialnumber start with PK1338, PK1334, PK2334, PK1381 and so on, this part will be cut and following is the labeled serialnumber.
If your drives doesn't show the correct serialnumbers, send me the output of:
"cli disk info drv=1"
(or drv=2 and so on ..)

Maybe useful too: ArecaKeyMerge combine two or more Keyfiles from Areca-Controllers
--------------------------------------------------------------------------------------

Getestet/Enwickelt für Areca ARC-1882i, sollte auch laufen mit/should work with:
ARC-1882ix/12/16/24
ARC-1882P
ARC-1883i/1883x/1883LP
ARC-1883ix-12/16/24
ARC-1884ixl-8/12
ARC-1214-4I/1224-8i
ARC-1216-4i/1226-8i
ARC-1680-ix-8/12/24
ARC-1880ixl-8/12/16/24/LP
vielleicht auch mit anderen/maybe with others aswell.
 

Anhänge

  • ArecaMonitor.zip
    17,5 KB · Aufrufe: 413
  • ArecaMonitor_TimeoutCheck.zip
    17,6 KB · Aufrufe: 452
  • cli.1.15.13_Arclib374.zip
    269,2 KB · Aufrufe: 388
Zuletzt bearbeitet: (cli.exe update)
Sorry - nice - and where is the problem?

Could you please spell your problem?

Klartext - was willst Du?
 
^^ push neue cli.exe (v1.15.13 Arclib374)
 
Zurück
Oben