#verion 1.0
#last modified 12/2/19
#
#v 1.0 initial revision / prtg integration
#
import sys
import json
import urllib.request
from paepy.ChannelDefinition import CustomSensorResult
if __name__ == "__main__":
location = json.loads(sys.argv[1])
parsed = "http://" + str(location['host']) + "whatever else in the url"
page = urllib.request.urlopen(parsed).read()
#data comes out as binary type.
#convert from binary to normal string
np = page.decode('utf-8')
scrip = np.split('
No comments:
Post a Comment