forgot loop
This commit is contained in:
parent
9ab7120d16
commit
ffe377e055
3
main.py
3
main.py
@ -3,6 +3,7 @@ import pythonping
|
|||||||
from influxdb import InfluxDBClient
|
from influxdb import InfluxDBClient
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
IPs = environ['hosts']
|
IPs = environ['hosts']
|
||||||
IPs = IPs.replace(' ', '').split(",")
|
IPs = IPs.replace(' ', '').split(",")
|
||||||
@ -40,4 +41,6 @@ def main():
|
|||||||
## Pull a list from the env variable - Max ~ 2000 IP addresses
|
## Pull a list from the env variable - Max ~ 2000 IP addresses
|
||||||
senddataInflux(ping(IPs))
|
senddataInflux(ping(IPs))
|
||||||
|
|
||||||
|
while True:
|
||||||
main()
|
main()
|
||||||
|
sleep(20)
|
||||||
Loading…
Reference in New Issue
Block a user