$ sudo apt-get install smartmontools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
# coding: UTF-8 | |
import boto3 | |
import json | |
# Main function that runs the whole thing | |
def updateAll(): | |
instances,groups = getEC2Instances() | |
updateHosts(instances,groups) |