PDA

View Full Version : Is it possible to make a complex automated "action" ?


Kai-Kai
02-07-2009, 15:00
Hello,

I would like to use actions to run automated commands.

I have 3 triggers to alert if the size of 3 files become to large. I have 1 to alert if the free space on the disk become to small.

What I would like to do is check if : one of the first 3 AND the second are in problem, auto run a command.

But, when I try to do it, I add the triggers in condition section and I obtain :

(A or B or C or D) and (E)
(A) trigger = "Size of /file1 is too high (>50 Mo)"
(B) trigger = "Size of /file2 is too high (>50 Mo)"
(C) trigger = "Size of /file3 is too high (>50 Mo)"
(D) trigger = "Low free disk space on volume /"
(E) Trigger value = "PROBLEM"

WHEREAS I would like to have :

((A or B or C) and D) and (E)
(A) trigger = "Size of /file1 is too high (>50 Mo)"
(B) trigger = "Size of /file2 is too high (>50 Mo)"
(C) trigger = "Size of /file3 is too high (>50 Mo)"
(D) trigger = "Low free disk space on volume /"
(E) Trigger value = "PROBLEM"

or something like that...

Is it possible ? Should it be done another way ?

Kai-Kai
02-07-2009, 15:08
I think I've maybe found a way to do it... I can make a trigger which is on PROBLEM if one of the 3 triggers on the size of the files is in problem.
(I can call this trigger : "Size of /file1 or /file2 or /file3 is too high (>50 Mo)").

Then, I could use :

(A and B and C)
(A) trigger = "Size of /file1 or /file2 or /file3 is too high (>50 Mo)"
(B) trigger = "Low free disk space on volume /"
(C) Trigger value = "PROBLEM"

But, is there a way to do it whithout making a new trigger ?