Skip to content

Commit

Permalink
Add FreeBSD SATA disks to SMART
Browse files Browse the repository at this point in the history
  • Loading branch information
benrubson committed Jul 7, 2016
1 parent b874ace commit d3c52d8
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 d3c52d8

Please sign in to comment.