Skip to content

TheCodeDestroyer/ethos_monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

In ethOS, we often run into a situation, where one or more gpus have crashed but mining continues without rebooting the system.

This script reboots the system if some gpu(s) crashes when ethOS is being used.

After 5 mins of boot, it starts checking for gpu crash using json api of ethosdistro.
If some gpu(s) doesn't work for 4 min, the system is restarted.


setup
=====
download: git clone https://github.com/transeos/ethos_monitor
update: git pull


Usage
=====
1st argument: rig name shown in ***.ethosdistro.com
              Example: 2e15d2

2nd argument: json api in ethosdistro site
              Example: "http://xyz.ethosdistro.com/?json=yes"

3rd argument(optional): If it is set to 1, it dumps running gpu and total gpu number.


sample usage:
   $ ./miner.py 2e15d2 "http://xyz.ethosdistro.com/?json=yes"
or $ ./miner.py 2e15d2 "http://xyz.ethosdistro.com/?json=yes" 1    (if you want to dump debug info)


Cronjob setup
=============
Open cronjob using "crontab -e" command.
Add following line at the end -
  @reboot /home/ethos/ethos_monitor/miner.py 2e15d2 "http://xyz.ethosdistro.com/?json=yes"

Now, restart the system. The script will launch autometically at startup.


log file
========
/home/ethos/gpu_crash.log



If you have any query, please contact me.
Email: [email protected]


Donations
==================================
Bitcoin: 14BwKCzHYseFX6ae9S3ArVrvZC6A3h7QZx
Ethereum: 0x80ae5B86340d929da6D9868F1175061faE332f4C
Dash: XwXJ2t47zi9HPFxQzfAYxirqS7bcZ3r1Kf
Litecoin: LTek3HbMrgm2p4So69ST8MNPsWbU5vwVKE
Decred: DsWUVKcRhyy7DqhtBk2SoGHPXkffTv79HR8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%