Adding a degraded status for programs
Is it possible for the programs to show "Status Degraded" too? Right now the only options are "Status ok" and "Status fail".
Comments (10)
-
reporter -
repo owner Please can you provide more details about the "Status degraded" condition? In what context should be this state used?
-
reporter We use a program to check the health of a cluster. A one node failure would degrade the cluster but it would not bring down the system. So it is neither "Status ok" nor "Status fail" in our case. This where a "Status degraded" would help. As of now I do not want to show a red for a degraded status so I am showing "Status ok" which isn't the right information when we do "monit summary".
maybe a condition like "if status=1 then alert degraded" that shows "Status degraded" in monit summary would be good.
-
reporter @tildeslash, is anything being done regarding this bug??
-
repo owner Currently there is only one error level for the "if status <operator> <value>" statement ... just failure (or success), we plan to add custom error levels in the future, but it will require lot of changes.
We have added output of the program to "monit status" (as requested by issue
#299), maybe it could help in your case? (i.e. the program can return description of the error, such as "cluster degraded", and it will be visible in the status). -
reporter That sounds good for now. When is the next version of monit expected to be released with these changes??
-
repo owner We can release the next monit version within few days. If you want to test the development version, you can get it here:
git clone git@bitbucket.org:tildeslash/monit.git --recursive cd monit ./bootstrap ./configure make
-
reporter When is the next version being released??
-
repo owner Hello,
the monit 5.16 testing is still in progress, we'll release it most probably on monday.
-
repo owner - removed version
Removing version: 5.15 (automated comment)
- Log in to comment
It would be good if the "degraded" status was logged even without verbose logging too..