Hello everyone, please see the image attached. My gLiveView is not working displaying things correctly. What do I need to fix?
- Do you need gLiveView?
- Have you audited the script and all the ancillary scripts that it calls?
- Do you understand what every command in these web of scripts do?
- Did you download this script from somewhere and run it, trusting what it will do to your system?
Your cardano-node already provides an EKG port with all sorts of metrics available. Take a look at what things are available without any additional scripts:
curl -s -H 'Accept: application/json' http://localhost:12788 | jq '.'
Then you can experiment with pulling out the things you are interested in. Eg:
curl -s -H 'Accept: application/json' http:/localhost:12788 | jq '.cardano.node.metrics.slotsMissedNum.int.val'
curl -s -H 'Accept: application/json' http://localhost:12788 | jq '.cardano.node.metrics.connectionManager'
You could make a simple script yourself to provide just the information you need.
There is also the ss tool, already on your system, which can tell you about established connection IPs. Eg:
ss -4Htnp state established | grep -Po '[\d\.]+:3000\s+[\d+\.]+:\d+'
Change the ‘3000’ value to the port your cardano-node exposes and take a look.
It might be worth clearing out the script and starting again, same with your env file. It looks like you have some error in your env file
https://cardano-community.github.io/guild-operators/Scripts/gliveview/
It would also be good to know how you setup your node. You might have missed some dependecies.
I needed to install bc. I installed it using sudo apt install bc.
Very good. Thanks for explaining your solution. It will help others in the future.