{"id":22437259,"url":"https://github.com/ustclug/raid-telegraf","last_synced_at":"2025-08-01T15:32:05.197Z","repository":{"id":73796265,"uuid":"389284585","full_name":"ustclug/raid-telegraf","owner":"ustclug","description":"Parse megacli \u0026 storcli \u0026 ssacli outputs, and can be used in telegraf inputs.exec","archived":false,"fork":false,"pushed_at":"2024-04-11T12:34:08.000Z","size":27,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T02:21:27.819Z","etag":null,"topics":["raid-monitoring","telegraf"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ustclug.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}},"created_at":"2021-07-25T07:06:56.000Z","updated_at":"2025-01-21T18:28:02.000Z","dependencies_parsed_at":"2024-01-06T21:24:07.748Z","dependency_job_id":"bd4164d9-17fc-46b0-a897-04819106a24c","html_url":"https://github.com/ustclug/raid-telegraf","commit_stats":null,"previous_names":["ustclug/raid-telegraf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ustclug/raid-telegraf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fraid-telegraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fraid-telegraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fraid-telegraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fraid-telegraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ustclug","download_url":"https://codeload.github.com/ustclug/raid-telegraf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ustclug%2Fraid-telegraf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268250687,"owners_count":24219908,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["raid-monitoring","telegraf"],"created_at":"2024-12-06T00:12:18.157Z","updated_at":"2025-08-01T15:32:04.869Z","avatar_url":"https://github.com/ustclug.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# raid-telegraf\n\nCompatible with Python 3.7+ (Latest Python version in Debian 10). No third-party dependencies.\n\n/etc/telegraf/telegraf.d/raid.conf:\n\n```\n[[inputs.exec]]\n commands = [\"sudo /opt/raid-telegraf/main.py --use megacli\"]\n # or sudo /opt/raid-telegraf/main.py --use storcli\n timeout = \"30s\"\n data_format = \"influx\"\n interval = \"5m\"\n```\n\n/etc/sudoer:\n\n```\ntelegraf ALL=(root) NOPASSWD: /opt/raid-telegraf/main.py\n```\n\n(Or modify `/etc/sudoers.d/telegraf`)\n\n## Supported RAID controller software\n\n- megacli\n- storcli\n- ssacli (HPE, currently supports single controller only, only physical disk status string)\n- mdadm (with smartctl)\n    - For mdadm, also check [telegraf official mdstat plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/mdstat).\n\n## Output\n\nIt outputs in influxdb format like this:\n\n```influxdb\nraid_telegraf,device=Drive\\ /c0/e32/s0 media_error=0,other_error=0,predictive_failure=0,firmware=\"Online, Spun up\",smart_alert=\"No\"\n```\n\nFor ssacli, only \"device\" and \"firmware\" are valid, other values will be 0 or \"N/A\".\n\n## Limitation\n\n- Heavily relies on parsing the output of the RAID controller software.\n    - More testcase is needed.\n- Influxdb format serialization is naive.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Fraid-telegraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustclug%2Fraid-telegraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustclug%2Fraid-telegraf/lists"}