Pages:
Author

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

sr. member
Activity: 269
Merit: 250
I am using Bamt 1.3 and sgminer and have a couple of questions.

2) I think it was mentioned in the thread (but not sure I understood how to implement) that a reboot is the preferred remedy for a low hashrate or a dead/sick GPU.  How can I easily set this up?  I have found (as mentioned) that restarting gminer does not correct the issue and I almost always reboot.

Thanks!

Exactly.  This is what cgmon does. Smiley
full member
Activity: 127
Merit: 100
I am using Bamt 1.3 and sgminer and have a couple of questions.

1) I am using the cgminer.conf file in /etc/bamt with all my config settings (MUCH easier than command line entries...).  Can cgmon.tcl use this .conf file rather than parroting the entire contents out as command line entries in cgmon.tcl?
Also when I tweak the config, I would prefer to not have to change it in the cgmon.tcl as well. 
Try
Code:
set cgminer_gpu_options "-c /etc/bamt/cgminer.conf"
and left pool settings blank in cgmon.tcl


Quote
2) I think it was mentioned in the thread (but not sure I understood how to implement) that a reboot is the preferred remedy for a low hashrate or a dead/sick GPU.  How can I easily set this up?  I have found (as mentioned) that restarting gminer does not correct the issue and I almost always reboot.

Thanks!
1: low hashrate don't think so, dead/sick, change nothing,it's automatically.
2:never restart cgminer,only quit and wait cgmon.tcl restart it or run cgmon.tcl manually.





 

full member
Activity: 170
Merit: 100
I am using Bamt 1.3 and sgminer and have a couple of questions.

1) I am using the cgminer.conf file in /etc/bamt with all my config settings (MUCH easier than command line entries...).  Can cgmon.tcl use this .conf file rather than parroting the entire contents out as command line entries in cgmon.tcl?
Also when I tweak the config, I would prefer to not have to change it in the cgmon.tcl as well. 


2) I think it was mentioned in the thread (but not sure I understood how to implement) that a reboot is the preferred remedy for a low hashrate or a dead/sick GPU.  How can I easily set this up?  I have found (as mentioned) that restarting gminer does not correct the issue and I almost always reboot.

Thanks!




 
newbie
Activity: 6
Merit: 0
full member
Activity: 127
Merit: 100
How is it possible to change the pool without rebooting the PC?
If I change in tcl file the main pool what should I do next?

I make the changes I want in cgmon.tcl and then I do this:
Code:
screen -r
q
./cgmon.tcl

Found almost the same problem,if i changed cgminer.conf then press s-c-y to restart cgminer
cgmon.tcl will reboot the pc and log shows
Quote
GPU 0 no accepted shares in 540 seconds. GPU probably hung.
solution is same,press q to quit cgminer instead of press s-c-y to restart cgminer
sr. member
Activity: 269
Merit: 250
Do you see the broadcast message saying its about to be rebooted?  Do you get emails saying the GPU is hung/dead/sick and the script is going to reboot?
newbie
Activity: 6
Merit: 0
Whats up Jdape badass script so far. Im having a problem that I hope you can address.

1.) ubuntu 13.04 machine never reboots for any of the variables that you provide. The reboot command appears to be broken. ive done several rounds of testing to see if the command ever invokes, unplugging network cable, over clocking card until it hangs but it doesnt appear to ever happen.

Any help?
sr. member
Activity: 269
Merit: 250
How is it possible to change the pool without rebooting the PC?
If I change in tcl file the main pool what should I do next?

I make the changes I want in cgmon.tcl and then I do this:
Code:
screen -r
q
./cgmon.tcl
sr. member
Activity: 324
Merit: 250
How is it possible to change the pool without rebooting the PC?
If I change in tcl file the main pool what should I do next?

'Q' : quit sgminer/cgmin
Change the server in cgmon.tcl.
Save and relaunch is with sudo ./cgmon.tcl
newbie
Activity: 39
Merit: 0
How is it possible to change the pool without rebooting the PC?
If I change in tcl file the main pool what should I do next?
member
Activity: 110
Merit: 10
I've seen that.  I'm referring to the part where cgmon actually starts cgminer when it says it wasn't running.  Instead of the cgmon script starting cgminer, I'd like it to reboot the computer.  If I knew where to look I would replace the start command with the reboot procedure reference.
newbie
Activity: 48
Merit: 0
I know how to disable the e-mail notification, but I'm not too familiar with coding.  What is the start command I should be looking for to change to "reboot"?

That would be this reboot routine:

proc reboot {} {
            
   after 10000
   exec /sbin/shutdown -r now
   exec shutdown -r now

   # and in case that didn't work...
   # (BAMT)
   after 5000
   exec reboot -f
}
member
Activity: 110
Merit: 10
I know how to disable the e-mail notification, but I'm not too familiar with coding.  What is the start command I should be looking for to change to "reboot"?
newbie
Activity: 39
Merit: 0
What is the delay between starting ubuntu and starting cgminer and how it can be changed?
Now cgminer starts in a bout 3-5 minutes after booting OS.

Add the full path to cgmon.tcl to your rc.local file.  That will start it immediately at boot time.

For example, in Ubuntu I have this line in /etc/rc.local
Code:
/home/username/cgmon.tcl&


I've already added to crontab */5 * * * *   root   /home/my user name /cgmon.tcl >/dev/null 2>&1 and it works as described - starts only in 3-5 min after booting.
sr. member
Activity: 269
Merit: 250
I would like to make it so that instead of cgmon trying to start cgminer, it just restarts the pc instead.  I left the other day to get some mining supplies and got e-mails every minute that it was starting the mining program on one of my PCs.  I came home to over 180 e-mails.  This would work considering the cgmon process doesn't start until 5 minutes after the computer is on.  By then it would have started mining by itself.

There must be an error in cgmon, or something else on your computer.   That is not the intended behavior...

You can disable email notifications if you just want cgmon to restart your computer when it detects a problem.  There's an option in the configuration section.
member
Activity: 110
Merit: 10
I would like to make it so that instead of cgmon trying to start cgminer, it just restarts the pc instead.  I left the other day to get some mining supplies and got e-mails every minute that it was starting the mining program on one of my PCs.  I came home to over 180 e-mails.  This would work considering the cgmon process doesn't start until 5 minutes after the computer is on.  By then it would have started mining by itself.
sr. member
Activity: 269
Merit: 250
What is the delay between starting ubuntu and starting cgminer and how it can be changed?
Now cgminer starts in a bout 3-5 minutes after booting OS.

Add the full path to cgmon.tcl to your rc.local file.  That will start it immediately at boot time.

For example, in Ubuntu I have this line in /etc/rc.local
Code:
/home/username/cgmon.tcl&

newbie
Activity: 39
Merit: 0
What is the delay between starting ubuntu and starting cgminer and how it can be changed?
Now cgminer starts in a bout 3-5 minutes after booting OS.
full member
Activity: 127
Merit: 100
sr. member
Activity: 269
Merit: 250
If set crontab like this
Quote
*/1 * * * *     /usr/local/bin/cgmon.tcl >>/var/log/cgmon.log 2>&1
and edit cgmon.tcl like this
Quote
set cgmon_logfile "/var/log/cgmon.log"
the log file like this

Quote
[root@rig-2 ~]# tailf /var/log/cgmon.log
Feb 04 18:50:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:50:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:51:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:51:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:52:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:52:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:53:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:53:01 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:54:02 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
Feb 04 18:54:02 rig-2 - cgmon 0.1b13 - cgminer running and all GPUs healthy.
no big deal, but maybe fix the Install instructions ?
thanks for your gread job.

Code:
*/1 * * * *     /usr/local/bin/cgmon.tcl >>/var/log/cgmon.log 2>&1

Hi.  This line is creating the redundant log file entries.  Remove '>/var/log/cgmon.log'.
Pages:
Jump to: