Skip to content

Commit

Permalink
Merge pull request #327 from benrubson/sata
Browse files Browse the repository at this point in the history
Add FreeBSD SATA disks to SMART
  • Loading branch information
johann8384 committed Sep 2, 2016
2 parents 79dfaa4 + d3c52d8 commit b784ab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collectors/0/smart_stats.py
Expand Up @@ -207,7 +207,7 @@ def main():
drives = [dev[5:] for dev in glob.glob("/dev/[hs]d[a-z]")]
# Try FreeBSD drives if no block devices found
if not drives:
drives = [dev[5:] for dev in glob.glob("/dev/da[0-9]")+glob.glob("/dev/da[0-9][0-9]")]
drives = [dev[5:] for dev in glob.glob("/dev/da[0-9]")+glob.glob("/dev/da[0-9][0-9]")+glob.glob("/dev/ada[0-9]")+glob.glob("/dev/ada[0-9][0-9]")]
# Exit gracefully if no block devices found
if not drives:
sys.exit(13)
Expand Down

0 comments on commit b784ab6

Please sign in to comment.