Hi,
fixed in monit cvs ... will be part of next monit release (4.8) which
will be ready soon.
Thanks for report,
Martin
root wrote:
Package: monit
Version: 1:4.7-1
Severity: important
Monit's docs state:
-------------
PID TESTING
monit tests the process id (pid) of processes for change. This test is implicit
and monit will send alert in the case of failure by default.
You may override the default action using below rule (it may only be used
within a process service entry in the monit control file).
The syntax for the pid statement is:
IF CHANGED PID [[<X>] <Y> CYCLES] THEN action
action is a choice of ``ALERT'', ``RESTART'', ``START'', ``STOP'', ``EXEC'',
``MONITOR'' or ``UNMONITOR''.
------------
I have attempted many syntax variations of:
if changed pid 2 times within 5 cycles then alert
Yes in every case, Monit goes to alert status, and sends an email on every PID
change. Above, in the Monit docs, one can see that you can change the default
action by using the above syntax.
This doesn't sem to be the case...
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.13.4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages monit depends on:
ii libc6 2.3.6-5 GNU C Library: Shared libraries an
ii libssl0.9.7 0.9.7e-3sarge1 SSL shared libraries
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]