I RTFM and changed "100 b" to "100 B" and it works. Len
At 04:16 PM 4/21/2015, you wrote: >Hi Len, i cannot reproduce the problem which Monit vversion it is? (monit >-V) Added the following configuration to monitrc: check file test with path >/tmp/test if size > 200 B then alert Then created test file and >appended some bytes during several monit cycles (verbose mode output): 8< >'test' file exists 'test' is as a regular file or socket 'test' size check >succeeded [current size=10 B] 'test' file exists 'test' is a regular file or >socket 'test' size check succeeded [current size=20 B] 'test' file exists >'test' is a regular file or socket 'test' size check succeeded [current >size=30 B] 'test' file exists 'test' is a regular file or socket 'test' size >check succeeded [current size=40 B] 'test' file exists 'test' is a regular >file or socket 'test' size check succeeded [current size=90 B] 'test' file >exists 'test' is a regular file or socket 'test' size check succeeded [current >size=100 B] 'test' file exists 'test' is a regular file or socket 'test' size >check succeeded [current size=110 B] 'test' file exists 'test' is a regular file or socket 'test' size check succeeded [current size=200 B] 'test' file exists 'test' is a regular file or socket 'test' size test failed for /tmp/test -- current size is 210 B 8<ââ Please can you run monit in verbose mode and collect the output for this file check? Regards, Martin > On 18 Apr 2015, at 17:11, Len Conrad <[email protected]> wrote: > > 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 -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
