forgot loop
This commit is contained in:
parent
9ab7120d16
commit
ffe377e055
5
main.py
5
main.py
@ -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))
|
||||
|
||||
main()
|
||||
while True:
|
||||
main()
|
||||
sleep(20)
|
||||
Loading…
Reference in New Issue
Block a user