openbitlab / srvcheck

Srvcheck helps you to monitor blockchain nodes
MIT License
12 stars 4 forks source link

Refactoring for generic server #30

Open dakk opened 2 years ago

dakk commented 2 years ago

Since the software is completely modular, we can theoretically use it also for servers which don't run blockchain nodes. The first thing to do is to refactor the config, so the chain part is not mandatory; I was thinking to move "name" and "service" to a new section called "general":

[general]
   name = foo
   service = foo.service
   type = chain | service
dakk commented 2 years ago

Another thing to do is to move chain specific tasks from tasks/ to chain/chain.py