MONIT environment variables not available in check program

Issue #342 invalid
jeremy mayes created an issue

None of the MONIT_XXX are exported to the environment when the executable specified in a check program path directive is executed by the monit daemon.

Comments (3)

  1. Tildeslash repo owner

    The environment variables (https://mmonit.com/monit/documentation/monit.html#ENVIRONMENT) are set only for "start program", "stop program", "restart program" and an "exec" action when some event triggered an action.

    These variables have no sense in the context of "check program" - the check program is kind of plugin interface, which executes a script/program and gets status, there is no information like MONIT_EVENT, which may be handed over to the program.

    If you want some variables to be added, it's feature request, not bug. Please specify the list of variables you'd like to have in the check program.

  2. Log in to comment