We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4eccbee + 4cb5867 commit 784e0abCopy full SHA for 784e0ab
miniprobe/sensors/externalip.py
@@ -64,6 +64,8 @@ def get_data(data, out_queue):
64
try:
65
address = ip.get_ip(server)
66
logging.debug("IP-Address: %s" % address)
67
+ localip = ip.local_ip('eth0')
68
+ remoteip = ip.remote_ip(server)
69
except Exception as e:
70
logging.error("Ooops Something went wrong with '%s' sensor %s. Error: %s" % (ip.get_kind(),
71
data['sensorid'], e))
@@ -80,7 +82,7 @@ def get_data(data, out_queue):
80
82
addressdata.append(element)
81
83
data = {
84
"sensorid": int(data['sensorid']),
- "message": "External IP: " + ip.remote_ip(server) + " Internal IP: " + ip.local_ip('eth0'),
85
+ "message": "External IP: " + remoteip + " Internal IP: " + localip,
86
"channel": addressdata
87
}
88
del address
0 commit comments