Is it possible for the programs to show "Status Degraded" too? Right now the only options are "Status ok" and "Status fail".
It would be good if the "degraded" status was logged even without verbose logging too..
Please can you provide more details about the "Status degraded" condition? In what context should be this state used?
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.
@tildeslash, is anything being done regarding this bug??
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).
That sounds good for now. When is the next version of monit expected to be released with these changes??
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 email@example.com:tildeslash/monit.git --recursive
When is the next version being released??
the monit 5.16 testing is still in progress, we'll release it most probably on monday.