SMART graphs in OMV ;).

  • Edit: first test-version is here


    I played around a bit with displaying SMART graphs in OMV and ended up with this:


    This graphs have a 30 min interval and show "hourly" changes, but I think daily is enough for SMART.
    and: the colors are randomly generated so don't slapme for this ;)
    ToDo:
    - align the values
    - maybe change the UUIDs to the OMV-names of the HDDs


    Do you want to have something like that in OMV?

    • Offizieller Beitrag

    Yes of course change the UUID by brand/model. I think there is a smart value for life remaining? that would be ok through a nice large yearly scale, or maybe not so much if the drive is actually on its end.
    BTW also this graphics should be more resistant to get crocked like the ones from collectd that come in OMV.

  • What info do we need? At the moment there are ~16 values collected. Maybe we do not need all of this. Which are the most relevant ones for SMART?


  • Fantastic! I have been looking for something like this for quite sometime now!


    I have Seagate hard disks that following a well know bug have the wrong value reported when it comes to Raw_Read_Error_Rate
    Seek_Error_Rate is a good one
    I personally would be interested in Temperature_Celsius, but if the script can be made custom so that you pick up your own values...


    Good job!

  • thx for the link
    I'll add the info and provode a sample script to test tomorrow. Maybe Volker can add it to the core ...
    The collected data can be selected via conf-file

  • 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
    7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always - 0


    Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0


    Temperature_Celsius 0x0022 126 110 000 Old_age Always - 24


    Load_Cycle_Count 0x0032 196 196 000 Old_age Always - 13664


    Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0


    Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline - 0


    199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
    200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline - 0


    And in combo to the Load Cycle Count you'd have to take the Power on Hours into consideration.


    9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 5594

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Here is the first test-version:
    rrdtool-smartmon_v0.1_2014_11_02.zip


    manual installation for now!


    move the files to the following locations:

    Code
    mv smart /usr/share/openmediavault/mkconf/collectd.d
    mv rrdtool-smartmon* /usr/local/bin


    Config: (which values are collected)
    /usr/local/bin/rrdtool-smartmon.conf


    run omv-mkconf collectd and add a cron job with this settings:

    run every 30 minutes -> /usr/local/bin/rrdtool-smartmon


    let your server run some hours and you'll find the new PNGs in "/var/lib/openmediavault/rrd" as "smart-${SMARTVALUE}_${PERIOD}.PNG


    Feel free to test this version and give me feedback, thx

  • Hi,
    cool feature...
    I tried to install as above, but the cron job only gives me errors like:


    Any adivce?
    cheers, T.

  • Hi, here it comes:


    and:

    Code
    ls -l /var/lib/rrdcached/db/localhost/smart/
    ls: Zugriff auf /var/lib/rrdcached/db/localhost/smart/ nicht möglich: Datei oder Verzeichnis nicht gefunden


    The last command gives an error, as the directory /smart/ does not exist, the rest of the path does (I confirmed that with WinSCP)
    Thank you for helping, T.

  • Did you start the script rrd-smartmon before running the other script? It looks like, you haven't
    What is the output, if you start the mentioned script manually?

  • Would be nice to know how to install that tool!


    Unzip on the OMV-Machine fails with:

    Code
    End-of-central-directory signature not found.  Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive.  In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.


    If I unzip the file on my Mac the zip contains only one file...
    What is my fault?
    Thanks.

  • Sorry, now it works to extract.


    Installed all stuff like you said but I'm getting the same error like "tobimaus":



    After moving files to its destinations I ran omv-mkconf collectd, then created the cron-job.
    By starting the cron I get these errors...
    What did I wrong?


    The PNGs are not implemented to the System-Information-Tab yet, right? (No Prob, just wanna know)


    Thanks!

  • Sorry, but I cant get the tool running...


    - Installed like it should.
    Unzip the package, then mv smart /usr/share/openmediavault/mkconf/collectd.d and mv rrdtool-smartmon* /usr/local/bin.


    Then I ran omv-mkconf collectd and after that I created the Cronjob.
    By executing the Cron I get the Error:



    I've ran omv-mkconf collectd several times but it wont help.


    Don't get where I'm wrong...


    Output of mount -l


    Output of ls -l /var/lib/rrdcached/db/localhost/smart/

    Code
    root@C0mmanda-Server:~# ls -l /var/lib/rrdcached/db/localhost/smart/
    
    
    ls: Zugriff auf /var/lib/rrdcached/db/localhost/smart/ nicht möglich: Datei oder Verzeichnis nicht gefunden


    So the errors are the same as "tobimaus" has, but I don't forgot to run omv-mkconf collectd


    What is wrong here?
    Thanks!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!