Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
/ collectd-bitcoin Public archive

Small python snippet to query bitcoind via rpc and log with collectd

Notifications You must be signed in to change notification settings

nomnombtc/collectd-bitcoin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

collectd-bitcoin.py

Small python snippet to query bitcoind via rpc and log with collectd

This is based on a python script from C-Otto found at: https://gist.github.com/C-Otto/a9e4864dff1a2b167761

Biggest change is that it uses rpc connection instead of calling bitcoin-cli binary and added some more stuff to log.

Together with something like CGP it can generate nice graphs: Screenshot of CGP Graphpanel (Note if you use CGP, there is a custom plugin to control colors/naming scheme in the CGP/ subfolder.)

Usage

Needs a running bitcoin-{core,classic,unlimited} daemon with rpc user/password set.

This is needed to connect via rpc: https://github.com/jgarzik/python-bitcoinrpc

Replace rpcuser and rpcpassword with your bitcoind rpc username/password in the script.

Enable collectd exec plugin:

LoadPlugin exec

and put something like this into collectd.conf

<Plugin exec>
        Exec "nobody:nogroup" "/path/to/script/collectd-bitcoin.py"
</Plugin>

About

Small python snippet to query bitcoind via rpc and log with collectd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages