jdape



Offline



Activity: 269

Merit: 250







Sr. MemberActivity: 269Merit: 250 cgmon - mining monitor for Linux - auto restart, reboot, sick gpu, ASIC, &more November 30, 2013, 07:21:33 PM

Last edit: June 05, 2014, 02:05:15 PM by jdape #1



Monitors health of all GPU's & ASIC's. If a GPU crash or problem is detected, reboots the computer and starts mining automatically.

Auto restart cgminer when it crashes.

Auto restart of computer if cgminer becomes unresponsive.

Monitors Accepted Share counts per GPU/ASIC - restart & notify if a GPU/ASIC is not outputting accepted shares.

Monitors network connection and mining pools for outages.

Email notification of all actions.

Now has SMTP AUTH support for gmail and other ISPs*

Automated version checking and upgrading

Runs via command line in 'screen' so you can access cgminer at anytime.

Runs cgminer in the background

Can be started/viewed via SSH

Supports unlimited GPU's/ASIC's.

Supports up to five mining pools.

Supports sgminer 4.0.0

Requires: PHP, TCL, and screen.



Compatible with:

cgminer 3.1.1 -> 3.7.2

sgminer 4.0.0

vertminer



Tested in Ubuntu, CentOS, and BAMT. Should work in all other unix-based operating systems.



I'm sure there are bugs. Report them in this thread.



Latest version released on 2/16/2014: cgmon 1.0.5

Download:



Installation Instructions

Code:

1) Install PHP, TCL and screen.

CentOS: yum install php53 tcl screen

Ubuntu: apt-get install php5 php5-cli tcl screen



2) Edit the following line with your path to cgmon.tcl and then add it to /etc/crontab. *must run as root for DEAD/SICK GPU/ASIC rebooting.

*/2 * * * * root /home/user/cgmon.tcl >/dev/null 2>&1



3) chmod +x cgmon.tcl



4) Fill out the configuration sections in cgmon.tcl and test the script by running it directly: ./cgmon.tcl



5) Sit back and enjoy a steadier flow of income :)



*SMTP AUTH require tcllib and tcl-tls. See inscruction in cgmon.tcl auth settings. Tired of finding miners sick, dead, or crashed for long periods of time? I was! Here's cgmon, a lightweight, free, and open source script which performs these functions in Linux:Requires: PHP, TCL, and screen.Compatible with:cgminer 3.1.1 -> 3.7.2sgminer 4.0.0vertminerTested in Ubuntu, CentOS, and BAMT. Should work in all other unix-based operating systems.I'm sure there are bugs. Report them in this thread.Latest version released on 2/16/2014: cgmon 1.0.5Download: http://www.forked.net/~apex/cgmon/cgmon.tcl *SMTP AUTH require tcllib and tcl-tls. See inscruction in cgmon.tcl auth settings. Fork Networking - VPS, Colocation, Dedicated Servers for Bitcoin & Litecoin. Since 1994! www.forked.net

pciccone



Offline



Activity: 10

Merit: 0







NewbieActivity: 10Merit: 0 Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more December 11, 2013, 04:00:39 PM #2 Just 2 small problems I found in it:



- HELO command is missing on the socket send in the sendmail function. This is required by most SMTP servers to accept mail. It should be the first thing sent. i.e.

puts $sockid "HELO $hostname"



- My cgminer (at least 3.7.2 very popular version for scrypt mining) has the PHP API as 'api-example.php' in the directory. Threw me off for a minute, was not sure which was required till I dug in and figured it out.



Phil

This really is a great script!Just 2 small problems I found in it:- HELO command is missing on the socket send in the sendmail function. This is required by most SMTP servers to accept mail. It should be the first thing sent. i.e.puts $sockid "HELO $hostname"- My cgminer (at least 3.7.2 very popular version for scrypt mining) has the PHP API as 'api-example.php' in the directory. Threw me off for a minute, was not sure which was required till I dug in and figured it out.Phil

elproducto



Offline



Activity: 9

Merit: 0







NewbieActivity: 9Merit: 0 Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more December 30, 2013, 06:22:19 AM #5 Great program. I was just not sure if it was running or not. It was not. I issued ./cgmon.tcl after entering all the parameters in the cgmon.tcl file. Some parameter where wrong and was able to repair with the information outputted from the script. I needed to install PHP5 guess I missed the dependencies on the first post. I had a some suggestions since your are working on a new version would the script be able to restart the computer in case it is unable to restart cgminer, also would it be possible to monitor temperature and throttle intensity based on if a GPU reaches a certain temperature.

elproducto



Offline



Activity: 9

Merit: 0







NewbieActivity: 9Merit: 0 Re: cgmon - cgminer monitor for Linux - auto restart, reboot, sick gpu detect &more January 05, 2014, 06:55:18 AM #8 Quote from: jdape on December 30, 2013, 05:07:05 PM The current version will restart the computer if any GPU crashes. This feature only works if you are running the script as root.



Alternatively, it should be possible to setuid root the 'shutdown' command to avoid running the script as root. I haven't tried this.



If a GPU hits or exceeds cgminers '--temp-overheat' setting, the computer will be restarted. This is 85 degrees by default.



Thanks for the update. I have updated my miner to the latest version I will let you know if i find any issue, i doubt I will. I have yet to receive and emails from the program but have found a miner not responding, but I am still investigating the cause. Thanks for the update. I have updated my miner to the latest version I will let you know if i find any issue, i doubt I will. I have yet to receive and emails from the program but have found a miner not responding, but I am still investigating the cause.