All Projects → martomi → chiadog

martomi / chiadog

Licence: MIT license
A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to chiadog

chia-monitor
🍃 A comprehensive monitoring and alerting solution for the status of your Chia farmer and harvesters.
Stars: ✭ 131 (-71.89%)
Mutual labels:  chia, chia-farmer
watchdog
IntelliJ & Eclipse plugin for monitoring how Java applications are developed and tested
Stars: ✭ 18 (-96.14%)
Mutual labels:  watchdog
FarmWatchBot
FarmWatchBot for Ewbf, Claymore, Dstm, CCminer, Bminer, Ethminer, Cast XMR, Phoenix, T-Rex, Gminer, NB miner
Stars: ✭ 89 (-80.9%)
Mutual labels:  watchdog
osint
Docker image for osint
Stars: ✭ 92 (-80.26%)
Mutual labels:  harvester
MinerLamp
Qt GUI for ethminer
Stars: ✭ 40 (-91.42%)
Mutual labels:  watchdog
frisbee
Collect email addresses by crawling search engine results.
Stars: ✭ 29 (-93.78%)
Mutual labels:  harvester
Striker
Striker is an offensive information and vulnerability scanner.
Stars: ✭ 1,851 (+297.21%)
Mutual labels:  harvester
Chia-Plot-Status
GUI Tool for beginners and experts to Monitor and Analyse Chia Plotting log files, show health and progress of running plots and estimated time to completion. No setup, configuration or installation of python or whatever required. Just install and enjoy.
Stars: ✭ 187 (-59.87%)
Mutual labels:  chia
folder-automation
A folder automation made using Watch-dog, that works in all operating systems
Stars: ✭ 31 (-93.35%)
Mutual labels:  watchdog
chiavdf
Chia VDF utilities
Stars: ✭ 51 (-89.06%)
Mutual labels:  chia
ETHminerWatchDogDmW
ETHminer WatchDog by DeadManWalking (DeadManWalkingTO-GitHub)
Stars: ✭ 41 (-91.2%)
Mutual labels:  watchdog
git-slack-notify
Sends Slack notifications for new commits in Git repositories
Stars: ✭ 12 (-97.42%)
Mutual labels:  watchdog
chia-bls-go
chia-bls-signature in go, chia bls 签名工具go实现
Stars: ✭ 32 (-93.13%)
Mutual labels:  chia
nyx
Lean linux and OSX process monitoring written in C
Stars: ✭ 24 (-94.85%)
Mutual labels:  watchdog
pool-reference
Reference python implementation of Chia pool operations for pool operators
Stars: ✭ 452 (-3%)
Mutual labels:  chia
SilentETHMiner
A Silent (Hidden) Ethereum (ETH & ETC) Miner Builder
Stars: ✭ 219 (-53%)
Mutual labels:  watchdog
SilentXMRMiner
A Silent (Hidden) Monero (XMR) Miner Builder
Stars: ✭ 417 (-10.52%)
Mutual labels:  watchdog
watchdogd
Advanced system & process supervisor for Linux
Stars: ✭ 146 (-68.67%)
Mutual labels:  watchdog
SilentCryptoMiner
A Silent (Hidden) Free Crypto Miner Builder - Supports ETH, ETC, XMR and many more.
Stars: ✭ 547 (+17.38%)
Mutual labels:  watchdog
rorshach
A watchman for your directories. Rorshach allows you to listen to file system changes and run commands when these events occur.
Stars: ✭ 26 (-94.42%)
Mutual labels:  watchdog

Photo by Zoltan Tukacs on Unsplash


Watchdog for your Chia farm

So you've become a Chia farmer and want to maximize the probability of getting a reward? Chiadog helps with automated monitoring and sends you a mobile notification in case something appears to malfunction.

Supported Notifications

Subsystem Notification (example values) Priority
Harvester Your harvester appears to be offline! No events for the past 400 seconds. HIGH
Harvester Disconnected HDD? The total plot count decreased from 100 to 40. HIGH
Harvester Connected HDD? The total plot count increased from 0 to 42. LOW
Harvester Experiencing networking issues? Harvester did not participate in any challenge for 120 seconds. It's now working again. NORMAL
Harvester Seeking plots took too long: 21.42 seconds! NORMAL
Full Node Experiencing networking issues? Skipped 42 signage points! NORMAL
Full Node Block found!! LOW
Wallet Cha-ching! Just received 2.0 XCH ☘️ LOW
Daily Stats Hello farmer! 👋 Here's what happened in the last 24 hours:

Received ☘️: 2.00 XCH️
Proofs 🧾: 176 found!
- 176 partials submitted 📑
- 0 blocks found 📦
Search 🔍:
- average: 0.46s
- over 5s: 2 occasions
- over 15s: 1 occasions
Plots 🌱: 42, new: 2
Eligible plots 🥇: 0.08 average
Skipped SPs ⚠️: 7 (0.01%)
LOW

Please refer to Status Reference page for detailed explanations of the notifications.

How it works?

It parses the debug.log generated by the chia process and runs various checks to determine the health of your farmer. Among others, it can detect if your node has lost sync and the farmer is no longer participating in challenges, or if one of your external HDDs disconnected and your harvester doesn't have access to the full amount of plots you have.

Access & Security

It only requires read-access to your debug.log file and internet connection to send out notifications. It's highly recommended that you run chiadog in a sandboxed environment. Please use the official docker image.

Furthermore, following best security practices, you should keep your wallet separate.

Supported Integrations for Notifications

You may use one (or more) of the following integrations to receive notifications from chiadog.

Integration Advantages Cost
Pushover High priority notifications that can override your phone's silent mode. $5 one time purchase after 30 day trial.
Pushcut Alternative to Pushover
E-mail You probably already have an email. No additional apps. Free
Slack Quick & easy setup. Free
Discord Quick & easy setup. Free
Telegram Quick & easy setup. Free
Shell script (beta) Execute anything in your own script. Free
MQTT Well-suited for Home Automation. Free
Grafana For hardware monitoring. Free
Ifttt Can be used to send push notifications or to do other API integrations depending on incoming data. Free

For detailed guide on how to test and configure, please refer to INTEGRATIONS.md.

Getting started

Pre-requisites

  • Linux, MacOS & Windows
  • Python 3.7+
  • Git
  • Enabled INFO logs on your chia farmer

The instructions below are specific to Linux and MacOS, for installing chiadog on Windows, please refer to this separate README section.

How to enable INFO logs on chia farmer?

First configure the log level to INFO. This ensures that all logs necessary for chiadog to operate are available under ~/.chia/mainnet/log/debug.log.

chia configure -log-level=INFO

Then restart your farmer to apply the changes:

chia start --restart farmer

Check that logs are coming in:

cat ~/.chia/mainnet/log/debug.log

Installation

Recommended

The new recommended way of using chiadog is via the official docker image.

Manual Installation

For updating from previous version, see section below.

  1. Clone the repository
git clone https://github.com/martomi/chiadog.git
cd chiadog
  1. Run the install script.
./install.sh
  1. Copy the example config file
cp config-example.yaml config.yaml
  1. Open up config.yaml in your editor and configure it to your preferences.

Updating to the latest release

Skip this if you followed the above section.

cd chiadog

git fetch
git checkout main
git pull

./install.sh

Important: Automated migration of config is not supported. Please check that your config.yaml has all new fields introduced in config-example.yaml and add anything missing. If correctly migrated, you shouldn't get any ERROR logs.

Monitoring a local harvester / farmer

  1. Open config.yaml and configure file_log_consumer:

    • You need to enable the file log consumer to read local chia log files
    • Double-check that the path to your chia logs is correct
  2. Start the watchdog

./start.sh
  1. Verify that your plots are detected. Within a few seconds you should see INFO log:
Detected new plots. Farming with 42 plots.

If you see the above log message, you can be certain that chiadog is running correctly. It'll remain silent until the next scheduled daily notification or until any issues are detected.

You can repeat the above process for every machine where you are running a harvester. Use the notification_title_prefix in config.yaml to give every machine a unique notification prefix so that you can easily distinguish them.

If you don't want to setup chiadog on each machine separately, you can also monitor multiple remote harvesters and run chiadog on a single machine. Please refer to the wiki page on Remote Monitoring Multiple Harvesters.

Troubleshooting

You can enable more verbose logging from config.yaml by changing INFO to DEBUG. You should see logs for every keep-alive event from the harvester.

Advanced Usage

Redundant monitoring for chiadog

There are failure-cases in which chiadog is helpless. For example, your computer completely freezes or shuts down. Perhaps your entire home network goes down. chiadog won't be able to send you a notification.

There's a way however: in the config under the section of keep_alive_monitor, you can enable pinging to a remote service that will act as a watchdog of chiadog. A second level of redundancy, if you wish!

You may chose your favourite service for that, I've tested it with HealthChecks.io. It's free to signup and create an endpoint that expects to receive pings every 10 minutes. If it does not, it will notify you. It has integrations with Pushover, Email, Slack, Discord and more.

Running chiadog in the background

. ./venv/bin/activate
nohup python3 -u main.py --config config.yaml > output.log 2>&1 &

To stop chiadog, you can find the Process ID (PID) via ps aux | grep main.py and then softly interrupt the process with kill -SIGINT <pid_here>.

Running chiadog as sandboxed systemd service

Alternatively to the original chiadog docker image, you can setup a systemd service which runs chiadog as a limited user and blocks access to key chia locations.

Contributing

Contributions are always welcome! Please refer to CONTRIBUTING documentation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].