Bitcoin Forum
November 02, 2024, 10:09:09 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Your full node info page  (Read 5602 times)
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
August 28, 2014, 11:59:10 AM
 #1

I struggled with MY ISP and their cablemodem long enough and decided its not worth my time and efford to get a local full node working. Thus I bought a VPS a few days ago and now have a working full node on a server that does nothing else.

Stats as of today:

last known block: 286600
Peers: 20/50
Bandwith: 100MBit, no limits on traffic
Bandwith used:
Code:
day | in (gb) | out (gb)
25  |  0.06   | 0.01
26  |  9.01   | 2.33
27  | 11.71   | 7.22
28  |  0.09   | 3.16

Since I am a bit lazy I dont want to login via ssh everytime I want to see the above (and possible more) stats.

I want a html page that shows basic info about the node. I found this script: http://pastebin.com/wKytLZmc but noone running it.

Please share a link to your full node or what youd like to see on a stats page regarding your full node. The only thing that should be used for it is HTML. The page can be build by a cronjob via python or ruby in the background though.

Im not really here, its just your imagination.
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1446



View Profile
August 28, 2014, 02:24:25 PM
 #2

See: http://humdi.net/vnstat/man/vnstati.html

Or you can be lazy and pipe the console output to a text file and read that with your browser

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
August 28, 2014, 03:37:58 PM
 #3

See: http://humdi.net/vnstat/man/vnstati.html

Or you can be lazy and pipe the console output to a text file and read that with your browser

Thanks, vnstati looks awesome, I thought I had to dump the data from vnstat and feed them into something else "by hand".

A textfile came to mind, but Im not that lazy Wink

Im not really here, its just your imagination.
deepceleron
Legendary
*
Offline Offline

Activity: 1512
Merit: 1036



View Profile WWW
August 28, 2014, 05:48:11 PM
 #4

Thanks for running this, it's good that more nodes are up that can send out 100mbps instead of the ~2mbps that most home connections can do. When Bitcoin picks a sad node to download the blockchain from, it delays the user getting caught up. A lot of people only run Bitcoin when they send money, requiring a day or weeks to be downloaded at once.

You might as well do something interesting like put up an abe blockchain explorer if you are fronting the bill for services. Also https://insight.bitpay.com/ is newer explorer software.

Are the stats for 26th and 27th you downloading the blockchain after installation? That seems like an awful lot of inbound traffic.
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
August 28, 2014, 07:13:04 PM
Last edit: August 28, 2014, 07:25:32 PM by shorena
 #5

Thanks for running this, it's good that more nodes are up that can send out 100mbps instead of the ~2mbps that most home connections can do. When Bitcoin picks a sad node to download the blockchain from, it delays the user getting caught up. A lot of people only run Bitcoin when they send money, requiring a day or weeks to be downloaded at once.

My main problem at home is that I cant get the cable modem/router to properly forward ports to the router I use to configure the network. They somehow "disabled" the DMZ I had. If I enter the URL directly I can still see the DMZ settings, but not change anything. Well some ISPs are just dicks when its their hardware -_-

You might as well do something interesting like put up an abe blockchain explorer if you are fronting the bill for services. Also https://insight.bitpay.com/ is newer explorer software.

I dont think Ill run anything else there. The server is very limited (50GB disk, 2 GB ram), but I will consider it should I ever upgrade. I initially thought to make the node available via tor. Ill see how the server handles the node, cronjobs for the stats and apache first.

Are the stats for 26th and 27th you downloading the blockchain after installation? That seems like an awful lot of inbound traffic.

Yes, the 28th is so low because I didnt start bitcoind when I went to sleep as you can see from the stats below (made with vnstati).



Looks like one of the peers I have a connection to is also downloading the complete blockchain as its not yet fully synced (~290k/317k blocks)
Edit: Yes getpeerinfo confirms it. I have a connections to two other nodes that are at 224k and 228k blocks
Code:
$ bitcoind getpeerinfo | grep startingheight
-snip-
        "startingheight" : 224207,
-snip-
        "startingheight" : 288428,
-snip-

Next step is to get some nice graphs (currently reading into rrdtool[1]) for the number of connected peers and figure out how many of them the server can handle once fully synced.


[1] www.cuddletech.com/articles/rrd/index.html

Im not really here, its just your imagination.
vm1990
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002



View Profile
August 29, 2014, 12:01:39 PM
Last edit: August 29, 2014, 12:31:09 PM by vm1990
 #6

my main problem is how broke dpkg packages are on linux XD id have 2 extra nodes is i could fix the damn things. and people say linux is better than windows YEH RIGHT

well after posting i seemed to have fixed the problem XD
blockchain now downloading to my most powerful server and already got 15 connections XD never seen the pretty green bar lit up before

Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
September 01, 2014, 07:15:04 AM
 #7

[...] I found this script: http://pastebin.com/wKytLZmc but noone running it. [...]

I run it with some modifications, i.e. http://84.200.34.113
I plan to add server uptime and bitcoind uptime to it too, but haven't gotten around it yet.

Morbilas (he wrote the one you linked to, if I'm not mistaken) also uses it on the nodes he sets up: https://bitcointalk.org/index.php?topic=582817.0

I came across this which I quite like too: http://176.10.116.242/

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
September 01, 2014, 01:04:05 PM
 #8

[...] I found this script: http://pastebin.com/wKytLZmc but noone running it. [...]

I run it with some modifications, i.e. http://84.200.34.113
I plan to add server uptime and bitcoind uptime to it too, but haven't gotten around it yet.

Morbilas (he wrote the one you linked to, if I'm not mistaken) also uses it on the nodes he sets up: https://bitcointalk.org/index.php?topic=582817.0

I came across this which I quite like too: http://176.10.116.242/

Thanks for the links, but it looks like most of them use PHP, not really into that Sad My current play is to just make a static html page that displays pictures which get updated by shell scripts in the background.

Im not really here, its just your imagination.
Justin00
Legendary
*
Offline Offline

Activity: 910
Merit: 1000


★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
September 01, 2014, 03:01:02 PM
 #9

Very cool graphs. Do you mind sharing the full commands you use for rrdtool to generate those specific graphs please ?
I've only ever played with rrdtools with cacti, but cacti was doing all the work :/

Thanks heaps Smiley



shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
September 01, 2014, 05:09:03 PM
 #10

Very cool graphs. Do you mind sharing the full commands you use for rrdtool to generate those specific graphs please ?
I've only ever played with rrdtools with cacti, but cacti was doing all the work :/

Thanks heaps Smiley



I am actually not that far with rrdtool, didnt have much time the last days. The pic above is made with vnstati, which is very convenient because it gathers all the data automatically. I plan to change the colors, I saw a pic somewhere where that was possible. Full command for it is:

Code:
vnstati -ne -nh -i venet0 -o /var/... -hs --transparent 0 -ru 0

transparent 0 is not needed AFAIK, just have it in there since I plan to mess with the config files.

Im not really here, its just your imagination.
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
September 05, 2014, 06:34:21 PM
 #11

[...] I found this script: http://pastebin.com/wKytLZmc but noone running it. [...]

I run it with some modifications, i.e. http://84.200.34.113
I plan to add server uptime and bitcoind uptime to it too, but haven't gotten around it yet.

Morbilas (he wrote the one you linked to, if I'm not mistaken) also uses it on the nodes he sets up: https://bitcointalk.org/index.php?topic=582817.0

I came across this which I quite like too: http://176.10.116.242/
Yeah, I posted about http://176.10.116.242/ a while back, but nobody answered (so I guess it's not public domain)...  I imagine it's pretty easy to do, but I wouldn't know how to make something like that.

shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
September 05, 2014, 07:17:47 PM
 #12

[...] I found this script: http://pastebin.com/wKytLZmc but noone running it. [...]

I run it with some modifications, i.e. http://84.200.34.113
I plan to add server uptime and bitcoind uptime to it too, but haven't gotten around it yet.

Morbilas (he wrote the one you linked to, if I'm not mistaken) also uses it on the nodes he sets up: https://bitcointalk.org/index.php?topic=582817.0

I came across this which I quite like too: http://176.10.116.242/
Yeah, I posted about http://176.10.116.242/ a while back, but nobody answered (so I guess it's not public domain)...  I imagine it's pretty easy to do, but I wouldn't know how to make something like that.

You could try to make a post in the german section.

Im still working on a rrdtool test setup, update on my traffic:



It looks like the peers launch bitcoin-core after work/school/etc and shutdown after the/over night.

Im not really here, its just your imagination.
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
September 06, 2014, 02:58:50 AM
 #13

[...] I found this script: http://pastebin.com/wKytLZmc but noone running it. [...]

I run it with some modifications, i.e. http://84.200.34.113
I plan to add server uptime and bitcoind uptime to it too, but haven't gotten around it yet.

Morbilas (he wrote the one you linked to, if I'm not mistaken) also uses it on the nodes he sets up: https://bitcointalk.org/index.php?topic=582817.0

I came across this which I quite like too: http://176.10.116.242/
Yeah, I posted about http://176.10.116.242/ a while back, but nobody answered (so I guess it's not public domain)...  I imagine it's pretty easy to do, but I wouldn't know how to make something like that.

You could try to make a post in the german section.

Im still working on a rrdtool test setup, update on my traffic:



It looks like the peers launch bitcoin-core after work/school/etc and shutdown after the/over night.

I was looking at that, but doesn't seem to be a way to limit it to show traffic by progamid (or by port, incoming port 8333 + outgoing port 8333)....  so it shows all my other traffic too, not just including bitcoind.

May be something other than vnstat out there that will do that, but I couldn't find anything..

ed:  well, the internal stats that bitcoin keeps would work.  which could probably be added if something like what is on 176.10.116.242 was done
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
September 06, 2014, 05:58:46 AM
 #14

[...], but it looks like most of them use PHP, not really into that Sad [..]

They work out of the box. I can personally confirm that no PHP knowledge is needed.  Cheesy



Yeah, I posted about http://176.10.116.242/ a while back, but nobody answered (so I guess it's not public domain)...

I'm looking into it.



I was looking at that, but doesn't seem to be a way to limit it to show traffic by progamid (or by port, incoming port 8333 + outgoing port 8333)....  so it shows all my other traffic too, not just including bitcoind.

May be something other than vnstat out there that will do that, but I couldn't find anything..

ed:  well, the internal stats that bitcoin keeps would work.  which could probably be added if something like what is on 176.10.116.242 was done

nethogs shows traffic by PID, I don't know how to put that info on a web page though.

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
September 06, 2014, 11:27:53 AM
 #15

-snip-

I was looking at that, but doesn't seem to be a way to limit it to show traffic by progamid (or by port, incoming port 8333 + outgoing port 8333)....  so it shows all my other traffic too, not just including bitcoind.

May be something other than vnstat out there that will do that, but I couldn't find anything..

ed:  well, the internal stats that bitcoin keeps would work.  which could probably be added if something like what is on 176.10.116.242 was done

Yeah, but the internal stats are messured per peer, or is there a central data point? Since my server does nothing but run bitcoind I doubt there is much traffic otherwise. Well besides me checking the stats and connecting via ssh.

Im not really here, its just your imagination.
mrflibblehat
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250

★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
September 07, 2014, 12:02:32 PM
Last edit: September 08, 2014, 09:00:47 AM by mrflibblehat
 #16

I found this post interesting and thought I would make an info page for my node. I got a few ideas by looking around at different pages and came up with this.

http://188.165.242.83/node/

I created the script in Python and use cron to run it every 1 minute for autoupdate.

If you are interested you can download it from here -  https://www.dropbox.com/s/3g6qho1e2q0z6p6/FullNode.zip?dl=0

This contains the python script and the css file for formatting (the css file goes with the create HTML file)

The script uses 2 external dependencies

hurry.filesize (pip install hurry.filesize)
python-bitcoinrpc (https://github.com/jgarzik/python-bitcoinrpc) You can install this by cloning it and running "python setup.py install"

you will need to edit the script and change the following text to what you want.

RPCUSER
RPCPASS
IPADDRESS
LOCATION

In the coming days I plan to add some graphs, history and make it look a little prettier.

If you would like to donate my address is 1QF271jjauFrfojG42b8frfLz4eNRkzpDy

Hope this is useful to someone



zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
September 10, 2014, 01:15:22 AM
 #17

I found this post interesting and thought I would make an info page for my node. I got a few ideas by looking around at different pages and came up with this.

http://188.165.242.83/node/

I created the script in Python and use cron to run it every 1 minute for autoupdate.

If you are interested you can download it from here -  https://www.dropbox.com/s/3g6qho1e2q0z6p6/FullNode.zip?dl=0

This contains the python script and the css file for formatting (the css file goes with the create HTML file)

The script uses 2 external dependencies

hurry.filesize (pip install hurry.filesize)
python-bitcoinrpc (https://github.com/jgarzik/python-bitcoinrpc) You can install this by cloning it and running "python setup.py install"

you will need to edit the script and change the following text to what you want.

RPCUSER
RPCPASS
IPADDRESS
LOCATION

In the coming days I plan to add some graphs, history and make it look a little prettier.

If you would like to donate my address is 1QF271jjauFrfojG42b8frfLz4eNRkzpDy

Hope this is useful to someone




ah, looking good.  like a clone of 176.10.116.242, but not so polished yet.  =p

I guess you were syncing with blockchain, w/ those downloaded amounts...  shame about the BQS nodes..   things like that are one of the reasons ppl complain about slow syncs.  I think it takes .. 3 minutes? ... before it asks another peer for those blocks.

I sent .01 to 13qDi8k6cPvwAEDVGL7TYrGcAgEtKb22jt a while back (176.10.116.242 fellow)..   slick it up some and I'd send $5 or $10 or something.  =p   

I prefer the gray/white/black color scheme...   also, re: 176.10.116.242 and the ping times... if you could have it adjust those to ms that'd be a step up.  Another thing it's lacking is total amount sent & total amount received (which would include the peers it has connected to & disconnected from).  I *think* that information is available in bitcoin-cli, but not positive.

also, there sure are a lot of dead nodes that just receive info and never send anything out (on 176.10.116.242, 130.253.21.121, 195.113.161.13, 219.243.208.60 amongst others appear to just be wasting inbound slots)... *boggle*
shorena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
September 10, 2014, 07:54:31 AM
 #18

I still cant get rrdtool to accept the number of connections. It allways displays NaN even though I follow the tutorial [1]

Code:
Get the value and put it in variable "$speed"
rrdtool update speed.rrd N:$speed

And when I return $con to std:out it shows as number -_- frustrating.

I modified the apache default page a bit to show some infos for now [2]. Keep in mind its a work in progress. I might have some hours tomorrow to battle with rrd again.

Did any of you ever use it? It looks like a simple and powerfull tool, I probably just miss something.


[1] http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html
[2] http://213.165.91.169/

Im not really here, its just your imagination.
mrflibblehat
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250

★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
September 10, 2014, 02:42:27 PM
 #19

I found this post interesting and thought I would make an info page for my node. I got a few ideas by looking around at different pages and came up with this.

http://188.165.242.83/node/

I created the script in Python and use cron to run it every 1 minute for autoupdate.

If you are interested you can download it from here -  https://www.dropbox.com/s/3g6qho1e2q0z6p6/FullNode.zip?dl=0

This contains the python script and the css file for formatting (the css file goes with the create HTML file)

The script uses 2 external dependencies

hurry.filesize (pip install hurry.filesize)
python-bitcoinrpc (https://github.com/jgarzik/python-bitcoinrpc) You can install this by cloning it and running "python setup.py install"

you will need to edit the script and change the following text to what you want.

RPCUSER
RPCPASS
IPADDRESS
LOCATION

In the coming days I plan to add some graphs, history and make it look a little prettier.

If you would like to donate my address is 1QF271jjauFrfojG42b8frfLz4eNRkzpDy

Hope this is useful to someone




ah, looking good.  like a clone of 176.10.116.242, but not so polished yet.  =p

I guess you were syncing with blockchain, w/ those downloaded amounts...  shame about the BQS nodes..   things like that are one of the reasons ppl complain about slow syncs.  I think it takes .. 3 minutes? ... before it asks another peer for those blocks.

I sent .01 to 13qDi8k6cPvwAEDVGL7TYrGcAgEtKb22jt a while back (176.10.116.242 fellow)..   slick it up some and I'd send $5 or $10 or something.  =p   

I prefer the gray/white/black color scheme...   also, re: 176.10.116.242 and the ping times... if you could have it adjust those to ms that'd be a step up.  Another thing it's lacking is total amount sent & total amount received (which would include the peers it has connected to & disconnected from).  I *think* that information is available in bitcoin-cli, but not positive.

also, there sure are a lot of dead nodes that just receive info and never send anything out (on 176.10.116.242, 130.253.21.121, 195.113.161.13, 219.243.208.60 amongst others appear to just be wasting inbound slots)... *boggle*

Thanks Smiley

Yeah I got the idea from that site, Im currently in the process of upgrading it, I think il add a feature to be able to choose a different css file (so it can have multiple themes)!

also I plan on adding the ping time but all mine are currently 0?!?! I know bitcoind gets it ping value from network ping and processing backlog.

I should have something nicer and clearer up in the next couple of days Smiley

zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
September 10, 2014, 04:15:37 PM
 #20

I still cant get rrdtool to accept the number of connections. It allways displays NaN even though I follow the tutorial [1]

Code:
Get the value and put it in variable "$speed"
rrdtool update speed.rrd N:$speed

And when I return $con to std:out it shows as number -_- frustrating.

I modified the apache default page a bit to show some infos for now [2]. Keep in mind its a work in progress. I might have some hours tomorrow to battle with rrd again.

Did any of you ever use it? It looks like a simple and powerfull tool, I probably just miss something.


[1] http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html
[2] http://213.165.91.169/

haha, that 1st page is making my brain hurt.  

re: mrflibblehat, that rrd thing should be able to convert those ping times to ms as well.

my bitcoin-cli for example shows;

"pingtime" : 0.13562600
"pingtime" : 2.79798200,
"pingtime" : 0.05269900,
"pingtime" : 0.19598100,

etc... which I believe are 135ms, 2.8s, 52ms, and 196ms?  the 2.8s one also has a "pingwait" : 582.27381700 ... i'm guessing he's DLing the blockchain and computer is overloaded or something.

oh, i thought the charts on #2 looked cool.. just not something I could use, since it's still just taking all traffic & I have many things running heh
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!