[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file size check not working
From: |
Len Conrad |
Subject: |
file size check not working |
Date: |
Sat, 18 Apr 2015 10:11:57 -0500 |
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
- file size check not working,
Len Conrad <=