you may use script check that does custom verification too

On Wed, Jul 17, 2013 at 5:58 PM, David Montgomery <[email protected]
> wrote:

> oh cool..how do I check form the command line?
>
>
> On Thu, Jul 18, 2013 at 5:19 AM, Nathan Williams <[email protected]>wrote:
>
>> if you're using a relatively recent monit (i think 5.3+), you can use
>> procmatch to monitor services without a pid file.
>>
>> e.g.
>>
>> check process zookeeper matching zookeeper
>> ...
>>
>> you can test your regex using monit procmatch expr at the command line.
>>
>> HTH
>>
>>
>> On Wed, Jul 17, 2013 at 2:02 PM, David Montgomery <
>> [email protected]> wrote:
>>
>>>
>>> Hi,
>>>
>>> I typically would use the below to monitor zookeeper on ubnutu 12.04.
>>>
>>> check process zookeeper
>>>   with pidfile "/var/run/zookeeper.pid"
>>>   start program = "/etc/init.d/zookeeper start"
>>>   stop program = "/etc/init.d/zookeeper stop"
>>>
>>> Problem is there is no pid file
>>>
>>> I can get the pid using "pidof java".
>>>
>>> So..how to a make monit work with pidof in lieu of "with pidfile
>>> "/var/run/zookeeper.pid"?
>>>
>>>
>>>
>>> --
>>> To unsubscribe:
>>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>>
>>
>>
>> --
>> To unsubscribe:
>> https://lists.nongnu.org/mailman/listinfo/monit-general
>>
>
>
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
>



-- 
---------------------------------------------------------------------------------------------------------------------
() ascii ribbon campaign - against html e-mail
/\
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
  • [no subject] David Montgomery
    • Re: Nathan Williams
      • Re: David Montgomery
        • Re: sven falempin

Reply via email to