get PID of filtered process
Issue #65
resolved
Hello, I am trying to find PID of filtered process and I can't find documentation how to do it. It would by nice to have $PID variable (or something like that) available for exec task there.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
closing - not bug
-
great, it works nice. thank you. (btw I was not aware about the ENVIRONMENT section of help.
- Log in to comment
Hello, i'm not sure what you mean by filtered process ... if the monitored process and need the PID in the executed command, the exec/restart action provides various environment variables, such as MONIT_PROCESS_PID (provides PID of the given process).
More details in Monit manual: http://www.mmonit.com/monit/documentation/monit.html#environment