forgot loop

This commit is contained in:
Sean Corrigan 2021-09-22 18:37:11 -04:00
parent 9ab7120d16
commit ffe377e055

View File

@ -3,6 +3,7 @@ import pythonping
from influxdb import InfluxDBClient
import json
import os
from time import sleep
IPs = environ['hosts']
IPs = IPs.replace(' ', '').split(",")
@ -40,4 +41,6 @@ def main():
## Pull a list from the env variable - Max ~ 2000 IP addresses
senddataInflux(ping(IPs))
while True:
main()
sleep(20)