{"id":16106535,"url":"https://github.com/danb35/zpscan-scale","last_synced_at":"2025-10-27T05:31:21.062Z","repository":{"id":215837316,"uuid":"739888910","full_name":"danb35/zpscan-scale","owner":"danb35","description":"Light drive failure LEDs on SAS backplanes under TrueNAS SCALE","archived":false,"fork":false,"pushed_at":"2024-01-07T08:34:30.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-19T10:45:34.573Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danb35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-06T21:09:53.000Z","updated_at":"2024-12-14T02:02:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"81f945e2-4744-41af-883b-430e527854aa","html_url":"https://github.com/danb35/zpscan-scale","commit_stats":null,"previous_names":["danb35/zpscan-scale"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Fzpscan-scale","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Fzpscan-scale/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Fzpscan-scale/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danb35%2Fzpscan-scale/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danb35","download_url":"https://codeload.github.com/danb35/zpscan-scale/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238444806,"owners_count":19473594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T19:13:45.082Z","updated_at":"2025-10-27T05:31:15.759Z","avatar_url":"https://github.com/danb35.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zpscan-scale\nThis is a script to monitor your ZFS pools in TrueNAS SCALE, and light up the FAULT LED on compatible SAS backplanes when a disk fails or otherwise goes offline.\n\n# WARNING\nThis script has had very minimal testing and should not be relied on for production use.\n\n## Requirements\nThis script is only intended to run under TrueNAS SCALE, and has only been tested under version 23.10.1.  It **will not** work under TrueNAS CORE.  It may work under other Linux installations, but most likely only if you have created your pool using gptid designators.\n\nThis script relies on [encled](https://github.com/amarao/sdled).  `git clone` that repository to some place on your server.\n\n## Installation\n`git clone` this repository to a convenient place on your system.\n\n## Configuration\nChange to this repository's directory, and `cp zpscan-config.example zpscan-config`.  Then edit `zpscan-config` and set the path to the `encled` script there.\n\n## Usage\nIn the TrueNAS web UI, set a cron job to run the `zpscan-scale.sh` script on your desired schedule; I'd suggest somewhere between every 15 minutes and every hour.\n\n## Status\nAs noted above, this script has received minimal testing.  It's been shown to work with a Supermicro SAS2 expander backplane on one system.  It's expected, but hasn't been shown, to work with other SAS backplanes.  It's unlikely that it will work when a disk has completely failed to the extent that it's no longer seen by the kernel.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanb35%2Fzpscan-scale","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanb35%2Fzpscan-scale","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanb35%2Fzpscan-scale/lists"}