This repository is to be used with the GitHub Pages. Please visit https://alastria.github.io/
Any suggestion for improving the site must be sent to [email protected]
tools for monitoring Alastria network
License: Apache License 2.0
This repository is to be used with the GitHub Pages. Please visit https://alastria.github.io/
Any suggestion for improving the site must be sent to [email protected]
Hello.
We are using this script from our monitoring stack. Normally, this kind of platforms expect an exit code to determine if the script has ended Ok (with exit status 0). It would be great if you could end the execution with and exit code in addition to the output text.
To show this, we have added the following code at the end of the script:
print result
if (result == "OK"):
exit(0)
elif (result == "ERR_NET_NODE"):
exit(1)
elif (result == "ERR_NET_STAT"):
exit(2)
elif (result == "ERR_SYNC"):
exit(3)
Best regards.
Hello.
Some times, the script fails with the indicated error.
We have noticed that Eth Netstats could give a non integer value for Best Block field over websocket and it makes the script to enter the exception on getHighestBlock function. We have included another try block that seems to solve the problem:
try:
if (res_json['action']=='block'):
if (int(res_json['data']['block']['number']) > highestBlock):
highestBlock = int(res_json['data']['block']['number'])
idx += 1
except Exception:
time.sleep(0.5)
pass # We could receive non integer value
I'm not an experienced developer and I don't know if this code is the best way to achieve a solution, but I hope that this helps to show the problem.
Best regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.