monit: widget code cleanup
fichtner opened this issue · comments
Franco Fichtner commented
Important notices
Our forum is located at https://forum.opnsense.org , please consider joining discussions there in stead of using GitHub for these matters.
Before you ask a new question, we ask you kindly to acknowledge the following:
- I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
As witnessed by #7705 the status return from monit API is a bit inconsistent / hard to handle from the consumer side. Maybe this could be simplified to a few defined errors and one good status code (mapped to 0),