opnsense / core

OPNsense GUI, API and systems backend

Home Page:https://opnsense.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monit: widget code cleanup

fichtner opened this issue · comments

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:

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),

As discussed with @fichtner and @swhite2, changing the widget to only evaluate if the status is either 0 (ok) or =! 0 (not ok) is the best choice. The API does not have to be changed for that, only the widget.