|
From: | David Montgomery |
Subject: | Re: |
Date: | Thu, 18 Jul 2013 05:58:48 +0800 |
HTHyou can test your regex using monit procmatch expr at the command line.check process zookeeper matching zookeeperif you're using a relatively recent monit (i think 5.3+), you can use procmatch to monitor services without a pid file.e.g.
...On Wed, Jul 17, 2013 at 2:02 PM, David Montgomery <address@hidden> wrote:
--So..how to a make monit work with pidof in lieu of "with pidfile "/var/run/zookeeper.pid"?I can get the pid using "pidof java".Problem is there is no pid fileI typically would use the below to monitor zookeeper on ubnutu 12.04.Hi,
check process zookeeper
with pidfile "/var/run/zookeeper.pid"
start program = "/etc/init.d/zookeeper start"
stop program = "/etc/init.d/zookeeper stop"
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
[Prev in Thread] | Current Thread | [Next in Thread] |