Pages:
Author

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

member
Activity: 110
Merit: 10
Oh, okay.  Silly question though, I'm not very adept at Linux (yet), and where would I find that file?
sr. member
Activity: 269
Merit: 250
The log file cgmon.log shows the status every time the script is run.  To see that it's working, you check the end of cgmon.log:

Code:
 tail cgmon.log

member
Activity: 110
Merit: 10
How can I know it is working?  Is there a way to say if it drops below xx total hashrate to restart it?
sr. member
Activity: 269
Merit: 250
Jdape, great script!  Thanks.

Question - is there any way to configure smtp authentication in the cgmon.tcl script? Gmail and my ISP (verizon) require authentication (ports 465 or 587).  

Thanks  

I'm glad you find it useful. Smiley   

Currently there's no support for SMTP auth.
sr. member
Activity: 269
Merit: 250
By any chance would this also support sgminer if I just change the directories and exe files it points to to sgminer?  Looking to use this with BAMT 1.3.  Thanks!


I haven't tested sgminer, but it should work.  Remove '--scrypt' from cgmon.tcl since sgminer doesn't use this option.   i.e:
Code:
set cgminer_option1 "--scrypt"
should be
Code:
set cgminer_option1 ""

If you try it and get an error let me know.  It will probably be easy to fix.
member
Activity: 110
Merit: 10
By any chance would this also support sgminer if I just change the directories and exe files it points to to sgminer?  Looking to use this with BAMT 1.3.  Thanks!
newbie
Activity: 1
Merit: 0
Jdape, great script!  Thanks.

Question - is there any way to configure smtp authentication in the cgmon.tcl script? Gmail and my ISP (verizon) require authentication (ports 465 or 587).  

Thanks  
sr. member
Activity: 269
Merit: 250
Hey jdape - thanks for this. Being a dev myself I started wanting to tinker with it right away. But, I don't know TCL. Smiley

Long story short I ended up re-implementing cgmon in JavaScript with node.js. I think it's pretty close now: node-cgmon.

Not sure if you know JavaScript but if you ever want to consolidate efforts, let me know.

FYI, I cited cgmon in the credits.


Awesome work!  Looks like you added a lot of  features and options too.

Unfortunately, I don't know any JS. :/
sr. member
Activity: 269
Merit: 250
Uploaded new version:

cgmon 0.1b5
  •    Fixed .sh ownership problem
  •   Added test for cgminer/cgminer path
  •   Split cgminer_cmd into cgminer_path and cgminer_extra_options for ease of use

Download: http://www.forked.net/~apex/cgmon/cgmon.tcl
sr. member
Activity: 269
Merit: 250
Can I use gmail.smtp.com for sending email or i must setup my one smtp?

Gmail SMTP requires authentication, which is not supported in cgmon.tcl.  You could try using your local ISPs smtp server.


Quote
otherwise script is working nice with small modification; path to cgminer was missing.

Thanks.  I've added a test in the latest version that addresses this issue.
sr. member
Activity: 269
Merit: 250
This scrip is installed on LTC bamt i think? or not?

It will run in BAMT.  You would need to install TCL and screen if they're not already included.
newbie
Activity: 1
Merit: 0
This scrip is installed on LTC bamt i think? or not?
full member
Activity: 161
Merit: 100
Wow this sounds just like what the Mining doctor ordered.   Grin

The problem is I'm a Linux virgin. 
My only experience with it is buying the Raspberry Pi Model B with Minepeon version 2.4.3 three weeks ago.

I got the Minepeon image loaded up on it & it has been countless manual reboots ever since whenever 1, 2 or 4 of my 9 erupters go on vacation while my viewing them from a windows browser.

Anyone have idiot proof instructions on how to get this added to my system?

Keep in mind that the only thing Linux I know to do is to load the Putty Windows app to SSH in from my Windows PC & ad the MobileMiner app.

Basically I am asking for hand holding.  It's probably easy for most on here, but not for this old rooky trying to do a little mining in between newborn baby boy feedings & diaper changes.  The wife takes over at night.


Thanks in advance for any help.
newbie
Activity: 2
Merit: 0
Hey jdape - thanks for this. Being a dev myself I started wanting to tinker with it right away. But, I don't know TCL. Smiley

Long story short I ended up re-implementing cgmon in JavaScript with node.js. I think it's pretty close now: node-cgmon.

Not sure if you know JavaScript but if you ever want to consolidate efforts, let me know.

FYI, I cited cgmon in the credits.
newbie
Activity: 53
Merit: 0
Thx for that script its relay nice. Just need to test email notification.

Can I use gmail.smtp.com for sending email or i must setup my one smtp?

otherwise script is working nice with small modification; path to cgminer was missing.

Thx again
newbie
Activity: 47
Merit: 0
Thanks very much for the script. I had to change and add a few settings, but all is working great now. Finally, I can sleep...
sr. member
Activity: 269
Merit: 250
Check the log file called 'cgmon.log'.  It is updated each time the script runs with the current status of cgminer.  You'll be able to see if it's working, or if there's a problem.

Currently there's no error checking of email notifications.
newbie
Activity: 9
Merit: 0
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.
sr. member
Activity: 269
Merit: 250
New version is out. Smiley

Changes since last release
  • Built cgminer api into script (easier setup).
  • Timestamps in logfile and email notifications.
  • HELO mail fix.
  • Simplified configuration.
  • Added broadcast message before rebooting server.
  • Moved cgmon-mine.sh to /tmp/ so the script can run as the cgminer user.
  • Moved cgminer api to /tmp/.
  • Secondary mining pool is now optional.

TODO:
  • check for Accepted shares
  • notify on GPU overheat
sr. member
Activity: 269
Merit: 250
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.
Pages:
Jump to: