Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Custom Smart Status Widget modification (2.1.4)

    Scheduled Pinned Locked Moved webGUI
    1 Posts 1 Posters 793 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Druqn
      last edited by

      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
      
      

      Installation:

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

      http://www.4shared.com/zip/kG_wCJPSce/SmartStatusNEW.html

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.