Monit starts with an assumed positive for all programs

Issue #297 new
Harivardhan Pyaram created an issue

Programs that are not dependent on anything else are shown as "Status ok" from start even though the scripts return a negative.

Comments (8)

  1. Tildeslash repo owner

    We are unable to replicate the problem, during our testing monit shows "Initializing" until first status is obtained, then either "Status ok" or "Status failed" based on the exit value and status test condition.

    Please can you send the monit configuration for these services? (vsd-stats-status, vsd-core-status, vsd-common-status?).

  2. Tildeslash repo owner

    Thanks for data, reproduced the problem, it is related to cycles count condition ("for X cycles"), working on fix.

  3. Tildeslash repo owner

    Hello, fix for this problem was not added to 5.16, it will be added to next release which we're working on.

  4. Tildeslash repo owner

    Hello Harivardhan,

    no it was not fixed in 5.17.1. The problem is little bit more complicated - active service states in monit are currently limited to "initializing", "success" or "failure".

    We may use the "initializing" state, but in this case the service is in fact in a "degraded" state, which is currently not available. It'll be better to fix this problem using the "degraded" state (there is standalone task for it:

  5. Log in to comment