• Skip to main content
  • Skip to primary sidebar
  • Home
  • Mining
    • Monitoring
  • Trading
  • AltCoins
  • About Us
  • Contact

JKCrypto.com

Part 4 : Automatically Restart Mining Rig if Freezes

March 22, 2020 by Anuj Saini 18 Comments

3.3 / 5 ( 9 votes )

This is the final part of the mining monitoring series. This Part 4 will auto restart your mining rig if it freezes. Free online service will be used which will ping your mining rig continuously, in case of rig freeze when the service can’t ping your rig, then the smart plug will reset the power and will make the rig to boot up.

In previous parts, I have created a Powershell script that can restart miner, rig, provide notification and connect to a different network if no Internet found. All these can happen if mining rig is not hanged up if somehow rig is frozen/deadlocked then no program can work not even my Powershell script. So in this article, you will know how to restart the mining rig automatically if it is hanged up. Check Previous Parts of this Mining Monitoring Series

Page Contents

  • 1 Getting a Static IP
    • 1.1 How to Get Free Static IP Address from Dynamic Address?
  • 2 Auto Restart Mining Rig if Freezes
    • 2.1 Creating Label in Gmail :
    • 2.2 Configuring Smart Plug

Getting a Static IP

You need to have a static IP address, don’t worry if you don’t have one. If you are already having a static IP address then skip this part but if your ISP provides you a dynamic address then follow the steps below to get free static IP address.

You can ask your ISP for static IP address, but they will charge you extra for that like $5/month for static IP address

How to Get Free Static IP Address from Dynamic Address?

1. Go to www.noip.com

2. Complete registration.

3. At noip go to Dynamic DNS >> Hostname >> Create Hostname.

4. Enter any hostname, check the image below for reference.

Your hostname will expire after every 30 days but you can always renew it for free. If you want to have a never-expiring hostname then buy their premium service which will cost $24/year. BTW I am using free service

5. Download their dynamic update client and configure it.

6. Open your router settings and go to DDNS and do the following as shown in the image below.

On your router setting page, you have to find DDNS setting, the UI of each router will be different.

7. That’s all, you get DDNS which will act as a  static IP address, for me it is jkcrypto.ddns.com.

restart miner if freezes

Auto Restart Mining Rig if Freezes

1. Considering you have a static IP address, now you have to register on monitoring service.

2. I have used  Spiceworks  and Uptimerobot both are free and work great.

3. Use any of the above services, for this tutorial I am using Uptimerobot.

4. Register on uptime robot and click on “Add New Monitor “

5. Choose Monitor type Ping and in IP (or Host) enter your static IP address or DDNS address.

6. Now you need to enable ICMP ping request. So that uptime robot can ping your rig remotely to check its status.

7. To Enable ICMP: Open command prompt in administrator mode

8. Copy and paste the following command and hit Enter.

netsh advfirewall firewall add rule name=”ICMP Allow incoming V4 echo request” protocol=icmpv4:8,any dir=in action=allow

9. That is it. If your rig is powered off or hanged up then it can’t be pinged by remote service. You will get rig down notification via email.

Creating Label in Gmail :

1. Open Gmail and go-to gear icon on top right >> Settings.

2. Now go to Filters and Blocked Addresses >> Create a new filter.

3. Considering this tutorial for uptime robot and if you are using Spiceworks network monitor then make changes accordingly.

In From field enter ” [email protected] “

In Subject field enter ” Monitor is DOWN”

4. Click on Create filter with this search >> Apply the label >> New label >> name it minerdown

Configuring Smart Plug

1. Buy  Wemo Insights Smart Plug

This is a US-based plug and can take load up to 1800 watt. For Europe get similar smart plug like “Tp-Link smart plug“,

2. Connect Wemo with PSU and download the demo app and configure it.

3. In Wemo app connect to IFTTT and follow the steps

ifttt

4. Visit IFTTT and register

5. Create new applet >> search for gmail >> ” New email in box labeled”

6.  Enter the label name which you created previously, e.g minerdown.

7. Create trigger >> Wemo >> Wemo Insight Switch >> Turn On then Off.

I hope you like this article about how to automatically restart the mining rig after a crash. If facing problems in setup feel free to ask via comments below, always ready to help.

Anuj Saini

I write about Crypto mining, trading, referral programs. I have been in the cryptocurrency industry for the last 4 years.

Filed Under: Monitoring Tagged With: auto restart, automation, crash, crashed miner, ddns, dynamic address, how to guide, ifttt, miner automation, miner crash, mining, mining monitoring, mining rig, monitoring, smart plug

Reader Interactions

Comments

  1. Dragon says

    January 30, 2018 at 4:04 am

    Got everything but the last part. Could you go through the trigger portion. I’m stuck there

    Reply
    • ANUJ SAINI says

      January 30, 2018 at 1:57 pm

      https://www.youtube.com/watch?v=moOZma93zqo&t=597s&list=WL&index=16

      Reply
      • Dragon says

        February 1, 2018 at 8:37 pm

        im wondering if my issue is the ip im linking to the Noip account, that ip i believe is from the ISP, when in my network i’ll go to whatismyip and its the same for all devices, so i’m assuming that why i’m not seeing a change in status with uptime robot, how can i get it to point to just my rig? thanks !! great info here

        Reply
        • ANUJ SAINI says

          February 1, 2018 at 11:27 pm

          You can set static IP manually as shown in video above.
          Yes external IP will be same for each device that’s normal.

          Reply
          • Dragon says

            February 2, 2018 at 6:12 am

            Thanks again. Working great. More often than I want. But better than not knowing it’s froze

          • Adam says

            February 4, 2018 at 4:28 pm

            Why not just use https://minerstat.com ??

    • Dragon says

      February 1, 2018 at 4:03 am

      For some reason when windows freezes, uptime robot is still able to ping, i’ll login in with teamviewer and once my connection fails i know my rig has froze, but uptime still shows it as ok, i’ll wait about 15 minutes and no update

      Reply
  2. Raul says

    January 30, 2018 at 6:25 am

    hy, what about the power switch of the ring, if i just turn on switch off then will turn on not will power on the ring, i have to push the power botton for this goes on. Or i am little confused in this, can u explain me? thanks

    Reply
    • ANUJ SAINI says

      January 30, 2018 at 1:59 pm

      Check the video shared below it might help

      Reply
      • Raul says

        January 30, 2018 at 9:05 pm

        Thanks i will check!

        Reply
  3. Mark Hunter says

    January 31, 2018 at 8:15 pm

    Hi all. I’ve followed the steps, but uptimerobot is saying my miner is down all the time. The no-ip client is running fine on the miner and using the right Ip address, it’s just that uptimerobot isn’t reading what no-ip is sending it. What is the link between the two and how can I check what’s going wrong? Cheers,

    Reply
    • ANUJ SAINI says

      January 31, 2018 at 11:26 pm

      Have you updated ddns setting in router that might be problem.

      Reply
      • Mark Hunter says

        February 1, 2018 at 2:26 am

        https://uploads.disquscdn.com/images/aa4a289a7b612f25f1526455f87cf564417ef71f26fc7fe4b786b3638e230530.jpg

        Hi. Attached is how the DDNS looks in my router. That IP address and host name are in all the relevant places on both no-ip and uptimerobot, yet they’re still not communicating – for example the miner is running fine now and yet uptimerobot still says its down even after refreshing.

        Reply
        • ANUJ SAINI says

          February 1, 2018 at 11:23 pm

          For me it works perfectly, try with spiceworks

          Reply
          • Mark Hunter says

            February 2, 2018 at 7:51 pm

            I’ve found an app that does the job – cheers

          • ANUJ SAINI says

            February 3, 2018 at 1:55 am

            Which app? Share

          • Mark Hunter says

            February 3, 2018 at 2:43 pm

            https://ethmonitoring.com/. It doesn’t restart automatically yet, but everything else is very slick so I’m happy to do it manually.

          • Adam says

            February 4, 2018 at 4:27 pm

            Why not just use https://minerstat.com ?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Search

More to See

Huobi Invitation Code: hmyj4, 30% Referral Cashback

Binance Referral Code: 10186109, 25% Discount

Binance Futures New Users

Binance Futures Referral Code: JKCRYPTO, Free $20 Bonus

Bitmex Referral Code : guypeQ, 10% Discount on Leverage Trading

Bitcoin, Altcoins, Referral Codes, Mining, Crypto News