Pages:
Author

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

sr. member
Activity: 269
Merit: 250
Hi,
Does anyone have noob instructions for installing cgmon?
Im pretty new to linux commands and need a step-by-step to get things running.
I would appreciate any help!
Thanks!
-Mike

The first post in this thread and also the top of cgmon.tcl has step-by-step instructions.

Cheers,
Jon
newbie
Activity: 7
Merit: 0
Hi,
Does anyone have noob instructions for installing cgmon?
Im pretty new to linux commands and need a step-by-step to get things running.
I would appreciate any help!
Thanks!
-Mike
full member
Activity: 216
Merit: 100
Yes. I've tested it with a GAW black widow and it works.  There was a temporary problem when the GAW miner was reporting a SICK ASIC, but I haven't been able to reproduce it.  That was 6 days ago and it's been fine since.

I don't have any gridseeds to test with, but it should work.

Thanks for confirming that for me.  I didn't want to put a lot of effort into trying to get it running only to find out it's for GPU rigs only.  I'll play with it over the next few days and see how it works.

Thanks, again...

Regards,

Chris
newbie
Activity: 31
Merit: 0

Sure.  Add this code:

Code:
if {$argv == "sgminer"} {
set conf(cgminer_exec) "sgminer"
set conf(cgminer_path) ""
set conf(miner_requires_scrypt_flag) "no"

}

near the bottom of cgmon.tcl, just above this line:

Code:
# start

Then, when you run cgmon.tcl you would use either './cgmon.tcl' or './cgmon.tcl sgminer' to run sgminer with your settings.  Adjust accordingly for your path to cgmon.tcl.

Thanks!
sr. member
Activity: 269
Merit: 250
jdape

I have started using both cgminer and sgminer on BAMT. Obviously I don't run them at the same time but I do tend to change every couple of days.

Is there a way to have cgmon look for either a cgminer instance or an sgminer instance instead of having to change the path and name every time I want to change what miner I'm using?

If not it is no big deal it's just kind of tedious to change the settings in bamt and then change then rename the cgmon files. I have one cgmon_sg.tcl and one sgmon_cg.tcl that I rename to cgmon.tcl depending on which version is needed.

Thanks!

Sure.  Add this code:

Code:
if {$argv == "sgminer"} {
set conf(cgminer_exec) "sgminer"
set conf(cgminer_path) ""
set conf(miner_requires_scrypt_flag) "no"

}

near the bottom of cgmon.tcl, just above this line:

Code:
# start

Then, when you run cgmon.tcl you would use either './cgmon.tcl' or './cgmon.tcl sgminer' to run sgminer with your settings.  Adjust accordingly for your path to cgmon.tcl.

newbie
Activity: 31
Merit: 0
jdape

I have started using both cgminer and sgminer on BAMT. Obviously I don't run them at the same time but I do tend to change every couple of days.

Is there a way to have cgmon look for either a cgminer instance or an sgminer instance instead of having to change the path and name every time I want to change what miner I'm using?

If not it is no big deal it's just kind of tedious to change the settings in bamt and then change then rename the cgmon files. I have one cgmon_sg.tcl and one sgmon_cg.tcl that I rename to cgmon.tcl depending on which version is needed.

Thanks!
sr. member
Activity: 269
Merit: 250
Quick question for you...

Does cgmon work with ASIC miners?  I'm running 3 gridseeds and 5 GAWMiners fury rigs and would *love* to use cgmon for them.

Thanks!

Regards,

Chris


Yes. I've tested it with a GAW black widow and it works.  There was a temporary problem when the GAW miner was reporting a SICK ASIC, but I haven't been able to reproduce it.  That was 6 days ago and it's been fine since.

I don't have any gridseeds to test with, but it should work.
full member
Activity: 216
Merit: 100
Quick question for you...

Does cgmon work with ASIC miners?  I'm running 3 gridseeds and 5 GAWMiners fury rigs and would *love* to use cgmon for them.

Thanks!

Regards,

Chris
full member
Activity: 219
Merit: 100
CryptoCombat - Realtime NPC Fight Faucet
thanks for the quick reply. this works perfect.
so i dont miss 10-20 shares per unit on a total reboot Smiley
sr. member
Activity: 269
Merit: 250
still waiting for the function which just restarts the cgminer. restarting the whole system takes to long on my raspberry pi and gridseeds

edit:

could it be possible to change the reboot function?
so i just remove the reboot command and add my own stuff for killing all screens with a specific name and run a cgminer startscript again?

Yep, you can do that.  I would replace the reboot section of code with something like this:

Code:
proc reboot {} {
global conf
#forcibly kill all mining processes
 catch {exec killall -9 $conf(cgminer_exec)} out
#wait 10 seconds (set this to at least as long as it takes your miners to start up again)
after 10000
#re-check the status
check_status
}
full member
Activity: 219
Merit: 100
CryptoCombat - Realtime NPC Fight Faucet
still waiting for the function which just restarts the cgminer. restarting the whole system takes to long on my raspberry pi and gridseeds

edit:

could it be possible to change the reboot function?
so i just remove the reboot command and add my own stuff for killing all screens with a specific name and run a cgminer startscript again?
sr. member
Activity: 269
Merit: 250
Alrighty! Send it. Hopefully this gets the ball rolling and others decide to chip in!

Thank you!
newbie
Activity: 31
Merit: 0
Alrighty! Send it. Hopefully this gets the ball rolling and others decide to chip in!
newbie
Activity: 3
Merit: 0
So it ran a good 14 hours before having a hard lockup, after manually restarting the log file resumed working. Have not figured out why they log file did not work at first and now need to figure out why cgmon was unable to restart the system. Also need to figure out a way to skip past disabled GPUs when checking accepted shares. Besides disabling APUs so they do no trigger a false restart, I also sometimes pull a GPU from mining rigs for running oclvanitygen. If anyone has any thoughts on how to disable the check for accepted shares on a specific GPU it would be much appreciated and I am sure beneficial for others beyond myself.
newbie
Activity: 3
Merit: 0
Hello! Great scrypt! I have a question. I use Bamt/Smos and disable GPU0 (Integrated graphics) in bamt.conf and cgminer.conf but cgmon still check it and reboot because it Sick or Dead. How can i disable check for GPU0 in scrypt?

Hi,

You can disable checking of GPU 0 like this.

Find this line:
Code:
if {$gpu_status >1}  { 

below it add this new line:

Code:
if {$i == 0} {break}



I was having an issue with my APUs causing unwanted reboots so I added a way of disabling the checking on one GPU. This change to the script seems to have broken the log file and still have to disable the check of shares because the disabled GPU will still trigger a reboot. I do not know how to program TCL so I am sure there is a better approach to what I did but it fixes the issue I was having with Cgmon.

Code:

#Added this to the top of the script to disable chosen GPU

# Disable status checking of GPU
# set value of disabled GPU to prevent unwarranted reboot
set gpu(disable) "0"

# Added this line to the fore mentioned fix under line if {$gpu_status >1}  {

# Find out which GPU is having a problem
# Added 'if {$i == $gpu(disable)} {break}' MAO HashrSyndicate

set data [split $argx "\n"]
foreach line $data {
set gpu_status [lindex $line 4]
if {$gpu_status >1}  {
if {$i == $gpu(disable)} {break}

 

sr. member
Activity: 269
Merit: 250
newbie
Activity: 31
Merit: 0
jdape,

Just want to make sure that your donation address for BTC is 13D196kLTMPQMattuz2AtpzasX8pVW6G4U before I send some your way. I said I would donate a while ago but now that I have everything sorted out I'm here to live up to what I said.

Thanks for cgmon!
newbie
Activity: 56
Merit: 0
sr. member
Activity: 269
Merit: 250
I'm a little confused by the config script. Why does it need my sgminer settings? All I want the script for is to reboot the machine now and again if a card goes sick, once it has rebooted, it's already set up to restart mining automatically so I don't need the script to do anything else. Can I just leave these settings blank, or comment them out? Same with the primary pool settings.

To get that behavior, you can comment out these two lines to disable mining:

Code:
			catch {exec /bin/bash -c $exec_cmd} out
Code:
			catch {exec su $conf(mining_user) -c /bin/bash -c $exec_cmd} out

Make sure this is set to the correct name of your mining program:

Code:
set conf(cgminer_exec) "cgminer"

The other settings can probably be left as is, or blank.
newbie
Activity: 6
Merit: 0
I'm a little confused by the config script. Why does it need my sgminer settings? All I want the script for is to reboot the machine now and again if a card goes sick, once it has rebooted, it's already set up to restart mining automatically so I don't need the script to do anything else. Can I just leave these settings blank, or comment them out? Same with the primary pool settings.
Pages:
Jump to: