chiadog
chiadog copied to clipboard
Ability to disable HARVESTER checks
I have a Node with ChiaDog, with no harvester or farmer. I wanted to check on Signage points.
As it stands, I get a huge amount of notifications about "Your harvester appears to be offline", which is an "of course" because it isn't a harvester.
Can you add something in the config to disable harvester checks?
In the meantime, I have removed HarvesterActivityHandler()
from this file:
https://github.com/martomi/chiadog/blob/da1a904466e6df25b930d58cefb70eca6dce4a3a/src/chia_log/log_handler.py#L31
And that has turned off the notifications.
You'll probably want to remove it from here as well
https://github.com/martomi/chiadog/blob/da1a904466e6df25b930d58cefb70eca6dce4a3a/src/notifier/keep_alive_monitor.py#L30
otherwise the keep-alive is still going to notify you
Thanks. I was looking for that just now.
I farm using the chia-docker image. It starts the farmer only. See https://github.com/Chia-Network/chia-docker/blob/main/entrypoint.sh#L33
Therefore, it seems the harvester checks do not make much sense...
Would be great to disable them
Being able to enable/disable specific types of notifications was the original intent of #77. This would include all the INFO items being reported in the CHIADOG log but not currently sent as a notification.
You'll probably want to remove it from here as well
https://github.com/martomi/chiadog/blob/da1a904466e6df25b930d58cefb70eca6dce4a3a/src/notifier/keep_alive_monitor.py#L30
otherwise the keep-alive is still going to notify you
It would be nice to disable in config. It always sends me million of harvester warnings, even after I completely terminate the process. Harvester is offline warning disappears for few minutes after restart of chiadog and then starts. Is there any update incoming to fix it?
Also, it's almost impossible to turn off the chiadog. I killed all the processes, terminated the process in terminal but still I get these annoying warnings. Even after change of the 2 scripts above.
FYI: If you are using chiadog to monitor a local node and farmer, but have a remote harvester, you can append the log entries from the harvester node using netcat to the main machine's log file. That way, you need only one chiadog instance running on the main node/farmer, that keeps an eye on both local (node/farmer) and remote (harvester) services. Apart from getting rid of the wrong harvester error messages on the main machine, it saves you from having to run multiple chiadog instances (and from getting multiple daily charts, consequently)
Still, for node-only setups (w/o harvester), suppressing of harvester related notifications is the only way to go for now afaik.