monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file changed problem


From: Jan-Henrik Haukeland
Subject: Re: file changed problem
Date: Sun, 4 Dec 2005 10:12:17 +0100

You are testing a directory (/home/) not a file. The test "if changed size" may not be used with a directory.

Monit report /home/ correctly as an invalid type which you can see from your screenshot. To avoid any doubt in the future I have also tighten this test when parsing the control file.

On 4. des. 2005, at 02.59, xavier wrote:

It looks like the IF FILE CHANGED SIZE (or TIMESTAMP) combined with an exec is not functioning at all.

I tried many settings, and read the mailing lists etc, but no go.

this is my simple config (partialy)

check file lala with path /home
        IF CHANGED TIMESTAMP
          THEN exec "/bin/bash -c '/root/lalatime'"
        if changed size
          then exec '/root/lalasize'


if i look onto the status httppage, it says:

File status

ParameterValue
Namelala
Path/home/
StatusInvalid type
Monitoring modeactive
Monitoring statusmonitored
Check serviceevery 1 cycle
Data collectedSun Dec 4 02:55:11 2005
Permission0
UID0
GID0
TimestampThu Jan 1 01:00:00 1970
Size0 B
Match regexno
Associated timestampIf changed 1 times within 1 cycle(s) then exec
Associated sizeIf changed 1 times within 1 cycle(s) then exec


no mather what i do, it doesnt work at all.
the info it provides here doesnt fit with the actual case, i mean, the file-timestamp is from today, and not 1970 as seen in the status, permisions are -rw-r--r-- (here it says 0) and the size doenst match either.

any suggestions please?

btw, all the other functions i use DO work fine as expected
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

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