monit-general
[Top][All Lists]
Advanced

[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:1.8.1.19) Gecko/20081204 Iceape/1.1.14 (Debian-1.1.14-1)

You can either create wrapper as described in FAQ:
http://mmonit.com/wiki/Monit/FAQ#pidfile

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

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

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


Martin


Nicola Tiling wrote:
Hi

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 ?

Nicola



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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