- changed status to invalid
MONIT environment variables not available in check program
Issue #342
invalid
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)
-
repo owner -
repo owner modified the documentation to clarify the environment variables usage: https://bitbucket.org/tildeslash/monit/commits/c438908d81c1/
-
repo owner - removed version
Removing version: 5.14 (automated comment)
- Log in to comment
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.