Commit 57c1c369 authored by root's avatar root
Browse files

Adding requirements file and fixing route_server_stats_class_file for

python2
parent 3bf3d07d
asn1crypto==0.24.0
blinker==1.4
certifi==2018.8.24
chardet==3.0.4
cloud-init==20.2
configobj==5.0.6
cryptography==2.6.1
distro-info==0.21
idna==2.6
influxdb==5.3.1
influxdb-client==1.19.0
iotop==0.6
Jinja2==2.10
jsonpatch==1.21
jsonpointer==1.10
jsonschema==2.6.0
MarkupSafe==1.1.0
msgpack==1.0.2
oauthlib==2.1.0
PyJWT==1.7.0
python-apt==1.8.4.3
python-dateutil==2.8.2
pytz==2021.1
PyYAML==3.13
requests==2.21.0
Rx==3.2.0
six==1.12.0
unattended-upgrades==0.1
urllib3==1.24.1
...@@ -111,7 +111,7 @@ try: ...@@ -111,7 +111,7 @@ try:
version = client.ping() version = client.ping()
if (version): if (version):
print("Successfully connected to InfluxDB: " + version) print("Successfully connected to InfluxDB: " + version)
except Exception, e: except (Exception, e):
send_email(sender,receivers,"InfluxDB Connection Issue","Python Influx Client could not connect to the database \n"+str(e)) send_email(sender,receivers,"InfluxDB Connection Issue","Python Influx Client could not connect to the database \n"+str(e))
exit() exit()
...@@ -143,7 +143,7 @@ for rs in Route_Servers: ...@@ -143,7 +143,7 @@ for rs in Route_Servers:
#print(input_to_influx) #print(input_to_influx)
try: try:
client.write_points(input_to_influx) client.write_points(input_to_influx)
except Exception, e: except (Exception, e):
send_email(sender,receivers,"InfluxDB Write Issue - InfluxDB service requires restart","Python Influx Client could not write to the database \n"+str(e)) send_email(sender,receivers,"InfluxDB Write Issue - InfluxDB service requires restart","Python Influx Client could not write to the database \n"+str(e))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment