E
ElricM
Guest
I want to use the Event Manager to trap domains that exceed their monthly bandwidth limit. I've been playing with it and I notice that the execution of event manager scripts is very sensitive to the proper arguments being passed in. I can test it with events like client account updated, physical hosting updated, etc. However it's obviously pretty hard to test for my event of interest which is 'Traffic limit for domain reached'.
The allowable parameters for this event are 'old_maximum_traffic', 'new_maximum_traffic' but how am I supposed to know which domain tripped the event???
I am assuming that if I do something like:
/mydirectory/myscript <new_maximum_traffic> <new_domain_name>
that parameter "<new_domain_name>" will be null. In fact, if the parameter is out of context my experiments seem to show that the event might not fire at all.
So again, how will I know which domain triggered the 'Traffic limit for domain reached' event?
The allowable parameters for this event are 'old_maximum_traffic', 'new_maximum_traffic' but how am I supposed to know which domain tripped the event???
I am assuming that if I do something like:
/mydirectory/myscript <new_maximum_traffic> <new_domain_name>
that parameter "<new_domain_name>" will be null. In fact, if the parameter is out of context my experiments seem to show that the event might not fire at all.
So again, how will I know which domain triggered the 'Traffic limit for domain reached' event?