[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Check process without pidfile

From: Martin Pala
Subject: Re: [monit] Check process without pidfile
Date: Tue, 06 Jan 2009 20:39:12 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20081204 Iceape/1.1.14 (Debian-1.1.14-1)

You can either create wrapper as described in FAQ:

or you can use "check host ..." statement which can watch network services, for example:

  check host localhost with address
   start program = "/etc/init.d/ntpd start"
   stop  program = "/etc/init.d/ntpd stop"
   if failed host port 123 type udp protocol ntp3 then restart

We plan to add support for monitoring of processes without pidfile requirement.


Nicola Tiling wrote:

Openntpd (ntpd from OpenBSD, also available for FreeBSD) doesn't write a pidfile. They say:

"We don't believe in pid files. Use pgrep(1) and pkill(1) instead, you will never have stale info that way."

Can I monitore that process (listening on port 123) without the pidfile ?


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]