Bitcoin Forum
June 25, 2024, 10:55:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Mining (Altcoins) / Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 10000 miners on: October 22, 2018, 10:30:20 PM
We have over 100 miners at our location. I want to create a rule so I get a single notification if 10 or more miners are offline all at the same time. How do I do that?

Thanks
Hi again,

You can create a trigger of the type "C# script" and use the script below to detect if the number of miners offline is 10 or more. You can then add any action you want for this rule, for example a Notification.

Code:
public class TriggerScript
{
private ContextProvider Context = ScriptManager.Context;

public List<IMinerBase> Check(List<IMinerBase> minerList)
{
const int TriggerIfNumberOffline = 10;
List<IMinerBase> triggerList = new List<IMinerBase>();
foreach (IMinerBase miner in minerList)
{
if (miner.IsRunningState == false)
triggerList.Add(miner);
}
if (triggerList.Count >= TriggerIfNumberOffline)
return triggerList;
return null;
}
}

I used this script and set a notification as an action. When I do that, I immediately get 72 notifications from the rule. It's always the same miners that trigger the rule. When I check my list of miners, everything says it's online and working fine.

How can I use this so it only sends me a notification if all the miners have been off for 10 minutes or longer?
2  Alternate cryptocurrencies / Mining (Altcoins) / Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 10000 miners on: October 17, 2018, 06:15:37 PM
We have over 100 miners at our location. I want to create a rule so I get a single notification if 10 or more miners are offline all at the same time. How do I do that?

Thanks
3  Alternate cryptocurrencies / Mining (Altcoins) / Re: [Awesome Miner] - Powerful Windows GUI to manage and monitor up to 10000 miners on: October 11, 2018, 10:59:49 PM
I want to turn off a certain notification that keeps popping up.

"Mining process not running, initiating restart (Claymore's Dual Ethereum Miner, Unspecified / Multi-algorithm, Nanopool)"

We are using Claymore on all our miners . The source in the notification is "system."

I tried turning all all Predefined rules and User-defined rules in Awesome Miner notification settings. The notification keeps appearing.

Does anyone know how to stop this notification from coming up? Thanks.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!