no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
fuss:monit [2022/04/19 08:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Check Process by Pattern Match ======
 +
 +Sometimes when a daemon really cannot create a PID file, the ''procmatch'' feature can be used to monitor a process. In order to do this, with the process running, first issue:
 +<code bash>
 +ps ax | grep <PATTERN>
 +</code>
 +
 +where ''<PATTERN>'' is part of the name of the process you want to match and then issue:
 +<code bash>
 +monit procmatch <PATTERN>
 +</code>
 +
 +where ''<PATTERN>'' is the same pattern you used before.
 +
 +After that, a monit configuration file can be changed, from:
 +<code>
 +check process myprocess with pidfile /var/run/myprocess.pid
 +</code>
 +
 +to:
 +<code>
 +check process myprocess matching "<PATTERN>"
 +</code>
 +
 +in order to match a process by the ''<PATTERN>'' you used.
 +
 +
 +
  

fuss/monit.txt · Last modified: 2022/04/19 08:28 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.