PM2 module to monitor a Bitcoin node with Keymetrics
pm2 install pm2-bitcoin
This module requires a Bitcoin Daemon install (tested against v0.13.1.0).
To be able to monitor status via bitnodes.21.co, the node must first be activated manually at https://bitnodes.21.co/nodes/<ADDRESS>-<PORT>/
host(Defaults tolocalhost) : Set the hostname/ip of your bitcoin nodenetwork(Defaults tomainnet): Set the network of your bitcoin node (mainnet, testnet, regtest)username(Defaults tofoo): Set the username of your bitcoin nodepassword(Defaults tobar): Set the password of your bitcoin nodenodeAddress(Defaults to ``): Set the public bitcoin node ip address (to check stats with bitnodes.21.co)nodePort(Defaults to ``): Set the public bitcoin node port (to check stats with bitnodes.21.co)
After having installed the module you have to type :
pm2 set pm2-bitcoin:<key> <value>
e.g:
pm2 set pm2-bitcoin:host localhost(set the bitcoin port to localhost)pm2 set pm2-bitcoin:password keppo(usekeppoas password for your bitcoin node)
pm2 uninstall pm2-bitcoin