Adding a degraded status for programs

Issue #298 new
Harivardhan Pyaram created an issue

Is it possible for the programs to show "Status Degraded" too? Right now the only options are "Status ok" and "Status fail".

Comments (10)

  1. Harivardhan Pyaram reporter

    It would be good if the "degraded" status was logged even without verbose logging too..

  2. Tildeslash repo owner

    Please can you provide more details about the "Status degraded" condition? In what context should be this state used?

  3. Harivardhan Pyaram 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.

  4. Tildeslash 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).

  5. Harivardhan Pyaram reporter

    That sounds good for now. When is the next version of monit expected to be released with these changes??

  6. Tildeslash 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
    
  7. Tildeslash repo owner

    Hello,

    the monit 5.16 testing is still in progress, we'll release it most probably on monday.

  8. Log in to comment