chiadog icon indicating copy to clipboard operation
chiadog copied to clipboard

Ability to disable HARVESTER checks

Open miketweaver opened this issue 3 years ago • 8 comments

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?

miketweaver avatar May 07 '21 19:05 miketweaver

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.

miketweaver avatar May 07 '21 19:05 miketweaver

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

martomi avatar May 07 '21 19:05 martomi

Thanks. I was looking for that just now.

miketweaver avatar May 07 '21 19:05 miketweaver

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

tmaier avatar May 17 '21 19:05 tmaier

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.

Chardmw avatar May 26 '21 16:05 Chardmw

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?

InvaderDolan avatar Jun 19 '21 09:06 InvaderDolan

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.

InvaderDolan avatar Jun 19 '21 12:06 InvaderDolan

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.

golden-guy avatar Sep 05 '21 10:09 golden-guy