Custom Smart Status Widget modification (2.1.4)

  • Hi!

    Sorry for my english.

    I made a slight modify the default Smart Status widget.
    Now it has:

    1. Temp column for single hdd.
    2. Yellow warning if SMART report "PASSED" but ATTR 5, 196, 197, 198 has not zero value.
    2. Raid support via external shell script (C) Rudy Rucker, with small modification for Pfsense (mail cmd, widget mode and etc). Supported Gmirror, ArN Mb Raid (intel, promise, …). For LSI and 3Ware need install properly CLI and edit shell script for valid paths.
    3. Checkbox for show raid status.
    4. External script you can use in CRON mode - mail will sent if raid error
    5. Bonus - txt file with SMART info about disk in /var/tmp/. I am not programmer and i thinking that will be better using tmp file for grep/awk vs doing 3 smartctl i/o request to hdd.

    • New vs Old

    Warning for HDD with

      5 Reallocated_Sector_Ct   0x0033   099   099   036    Pre-fail  Always       -       44
    197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
    198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0


    1. Copy smart_status_cus.widget.php in /usr/local/www/widgets/widgets/
    2. Copy  in /usr/local/www/widgets/include/
    3. Copy shell script in /root/
    4. Chmod 0755 for /root/
    5. Configure mail notification in PfSense - System->Advanced->Notification
    6. Click add on dashboard and select Smart Status NEW widget

Log in to reply