I write a file with the number of bytes equaling the number of msgs in the 
postfix deferred queue

monit checks:

check file postfix_q_deferred with path /var/db/postfix/q_size_deferred
 if size > 200 B then alert

but it fails/succeeds when the file size is above/below 100 bytes.  

I wrote a log file to write the time + file size:

06:30 91
06:35 95
06:35 95
06:35 95
06:40 99
06:40 99
06:45 99
06:45 99
06:45 99
06:50 101  < alerted here
06:50 101
06:55 101
06:55 101
06:55 101
07:00 111
07:00 111
07:05 111
07:05 111

I got a monit alert at 06:50, as always get a fail/succeed alert for the 100 B 
file size.

help!

Len




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

Reply via email to