Post
Topic
Board Mining (Altcoins)
Re: [OS] nvOC easy-to-use Linux Nvidia Mining
by
philipma1957
on 02/07/2017, 15:44:54 UTC
Fullzero thanks for detailed instruction of my idea and including it into nvOS v0017

here are some operations for image space releasing:

sudo apt update
sudo apt upgrade

===skip===

it allows to descrease size image on 2++Gb


PS:I would like to add monitoring system into your project.
Now, I'm choosing from zabbix, munin and cacti. What would you advice?

@_Parallax_

Code:
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')")
will do all of that in a single line
or install byobu then you can run `sudo purge-old-kernels`

I use zabbix with grafana. Gives me telegram alerts and pretty graphs
 
*edit, forgot the closing )
Excellent example, thanks!

Could you show how did you install setting  of zabbix and grafana?

Well, I tried but mod's keep deleting my post  Angry
I'll write something up and post it to github and just link it here

send it to me in pm  I will post it.







This is your pm  lets hope it sticks:





!!! WARNING: This user is a newbie. If you are expecting a message from a more veteran member, then this is an imposter !!!

I have Zabbix installed on a raspberry pi, agents on my miners

Server (Ubuntu steps
Pre-Reqs
Code:
sudo apt-get install php7.0-xml php7.0-bcmath php7.0-mbstring

Server install
Code:
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
sudo
Code:
dpkg -i zabbix-release_3.2-1+xenial_all.deb
sudo apt-get update
sudo apt-get install zabbix-server-mysql zabbix-frontend-php
sudo apt-get install zabbix-agent

mysql setup
Code:
mysql -uroot -p
mysql> create database zabbix character set utf8 collate utf8_bin
grant all privileges on zabbix.* to zabbix@localhost identified by 'your_password';
flush privileges;
quit;

Load up the DB
Code:
zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix

Put mysql pass in zabbix_server.conf
/etc/zabbix/zabbix_server.conf
Code:
DBPassword=your_zabbix_mysql_password

Edit apache config for timezone
/etc/zabbix/apache.conf
Code:
    # php_value date.timezone Europe/Riga
Change that to your timezone using http://php.net/manual/en/timezones.php

Agent Install
Code:
wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb
sudo
Code:
dpkg -i zabbix-release_3.2-1+xenial_all.deb
sudo apt-get update
sudo apt-get install zabbix-agent

On the agent enable remote commands
/etc/zabbix/zabbig_agent.conf
Find EnableRemoteCommands and change it to
Code:
EnableRemoteCommands=1

Now at the bottom of the zabbix_agent.conf you can create custom checks using userparameter

Example: (use grep, awk, cut etc to grab the specific data, this is for EWBF)
UserParameter=temp.gpu0,curl http://miner1:42000/getstat

Grafana, do a basic install and add in the zabbix plugin. That one is a bit detailed
Here is what mine looks like