Monit starts with an assumed positive for all programs
Programs that are not dependent on anything else are shown as "Status ok" from start even though the scripts return a negative.
Comments (8)
-
repo owner -
reporter - attached vsd-core
- attached vsd-common
- attached vsd-stats
-
repo owner Thanks for data, reproduced the problem, it is related to cycles count condition ("for X cycles"), working on fix.
-
reporter Were you able to fix this in the latest Monit??
-
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.
-
reporter @tildeslash Has this been resolved in 5.17.1???
-
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: https://bitbucket.org/tildeslash/monit/issues/298/adding-a-degraded-status-for-programs)
-
repo owner - removed version
Removing version: 5.15 (automated comment)
- Log in to comment
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?).