This script basicly just shows your current wallet status by a day/week/month/year
Heres a screenshot how mine script looks like after running it nearly two hours:
http://puu.sh/660IJ.pngThis script has be tested with munin 1.4.3, 2.0.1 and 2.0.2 and working on every version.
If you don't have munin already installed you can check Digital Oceans guide how to install munin-guide from
https://www.digitalocean.com/community/articles/how-to-install-munin-on-an-ubuntu-vpsFirst you need to get root permissions so:
suThen go to the correct folder
cd /usr/share/munin/plugins/Then lets make a plugin
nano mmccoinHere are the code for the script what you add:
#!/usr/bin/perl
if ($ARGV[0] =~ /config/i ) {
print "graph_title mmc coins\n";
print "graph_vlabel pieces\n";
print "graph_category coins\n";
print "graph_info This graph shows mmc coins\n";
print "mmccoin.label mmc\n";
print "mmccoin.type GAUGE\n";
print "mmccoin.info mmc coins\n";
} else {
$k=`wget -T 10 -qO /dev/stdout http://www.chainbrowser.com/memorycoin/address/MWydkmErZaNh2zy7PCZgmFeyTumReiKo8E/`;
@rows = split(/\n/, $k);
foreach (@rows) {
$row = $_;
if ($row =~ /Total Input Amounts: <\/span>(.*) MMC<\/div>/i ) {
$coins = $1;
}
}
print "mmccoin.value ".$coins."\n";
}
You NEED to change wallet address pointing to your wallet
After you've saved the file lets change its permissions:
chmod 755 mmccoinNow lets change the folder again:
cd /etc/munin/plugins/And lets make link to point where the plugin is:
ln -s /usr/share/munin/plugins/mmccoin mmccoinAnd now we should restart the munin-node:
/etc/init.d/munin-node restartAfter about 5mins you should have a website showing your wallet status by day/week/month/year.
http://yourip.ip/munin should be the address
Thanks and happy new year everyone!