Pages:
Author

Topic: cgmon - mining monitor for Linux - auto restart, reboot, sick gpu, ASIC, &more - page 17. (Read 48363 times)

newbie
Activity: 9
Merit: 0
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.
sr. member
Activity: 269
Merit: 250

New version in the works:

*) Shell script built-in.
*) cgminer API built-in.  No need to mess with that file at all anymore.
*) Checks for miners that are not outputting Accepted shares (i.e. cgminer is running, but not outputting good shares).
*) Timestamps in emails and logfile
*) Improved error reporting
*) Simplified configuration
sr. member
Activity: 269
Merit: 250
Wow, glad you like it. Smiley  

Were your emails not being sent before you added that line?  Mine haven't had that issue.   Perhaps my mail server just isn't that picky  (sendmail)?

I've made a *bunch* of improvements and fixed more bugs, so I'll need to upload a new version soon....
newbie
Activity: 10
Merit: 0
This really is a great script! Grin 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
sr. member
Activity: 269
Merit: 250
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:

  • 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: http://www.forked.net/~apex/cgmon/cgmon.tcl

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.
Pages:
Jump to: