Charmed Quark Systems
Google
WWW CharmedQuark.com

Go Back   Charmed Quark Systems > General Discussion > Beta Discussions
Register FAQ Members List Calendar Mark Forums Read

Beta Discussions This section is for discussion of pre-released versions of CQC, to keep it separate from the released stuff.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2012, 03:19 PM
zra zra is offline
 
Join Date: Dec 2010
Posts: 424
Default ELK zone violated

ive been having this problem for a while and i decided its time to address it.

I have events that are triggered when a zone is violated. The event, among other things, sends me an email indicating what occured. the problem ive been having is that i get multiple emails. so, obviously the event is triggering over and over. i installed a timer to prevent that, and it helped(i was getting 10 to 15 emails before) as i only get about 4 or so. Im guessing that the event triggers so fast that before the timer doesnt equal zero its triggered 4 times.

for the event filter im using IS ZONE VIOLATED

any idea what i can do to prevent successive triggers?
Reply With Quote
  #2  
Old 07-22-2012, 03:36 PM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,497
Default

Go to the start menu and open the CQC Command Prompt. Run the program CQCEventDump. It will just do a raw dump of events.

Then go violate a zone and see how many events are getting spit out in your case. In theory they should only happen when the state actually changes, though there are some issues in the Elk wrt to not being able to completely enforce that as I remember, though not sure if it's related to the zone violation stuff I'd have to go back and look.

But just see how many you are getting, and make sure that they really are effectively the same events, for the same zone with the same state.
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #3  
Old 07-22-2012, 03:38 PM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,497
Default

From a quick look it looks like they should only be sent if the actual zone status changes. However, they are sent out for more than violated state. They are sent out for secure, bypassed, and violated. So perhaps you might be getting some of those other states as well? If so you could filter on a specific state if that's what it turns out to be.
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #4  
Old 07-22-2012, 05:23 PM
zra zra is offline
 
Join Date: Dec 2010
Posts: 424
Default

I am filtering for the violated only. after looking at the dump im only seeing 1 event when i, say, open a window.

so, i ran a test and put a variable in the action that increments to see how many times it's executing:

after opening the window for about 3 seconds and then closing i checked the counter. its over 1000 now and its continuing to increment. hmm. thoughts?
Reply With Quote
  #5  
Old 07-22-2012, 05:29 PM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,497
Default

And you still only saw one event trigger show up for that? Or, presumably two, one when it was violated and one when it went back normal?
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #6  
Old 07-22-2012, 05:31 PM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,497
Default

And is this a triggered event in the server, or some background event running in a user interface? How are you viewing the value of the variable?
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
  #7  
Old 07-22-2012, 05:31 PM
zra zra is offline
 
Join Date: Dec 2010
Posts: 424
Default

Ive now rebooted the server and the incrementer continues.
Reply With Quote
  #8  
Old 07-22-2012, 05:32 PM
zra zra is offline
 
Join Date: Dec 2010
Posts: 424
Default

Quote:
Originally Posted by Dean Roddey
And is this a triggered event in the server, or some background event running in a user interface? How are you viewing the value of the variable?


Yes, a triggered event.

i increment the GVar and then write it to a field variable.
Reply With Quote
  #9  
Old 07-22-2012, 05:33 PM
zra zra is offline
 
Join Date: Dec 2010
Posts: 424
Default

Quote:
Originally Posted by Dean Roddey
And you still only saw one event trigger show up for that? Or, presumably two, one when it was violated and one when it went back normal?

yes, the CQCeventdump shows only one execution for violated. nothing for the other states.
Reply With Quote
  #10  
Old 07-22-2012, 05:45 PM
Dean Roddey's Avatar
Dean Roddey Dean Roddey is offline
Administrator
 
Join Date: Aug 2002
Location: Mountain View, CA
Posts: 32,497
Default

Can you try, just for funzies, triggering that same event in some other way, such as setting it up to trigger on some variable driver field write and change the field via the var driver interface, and see what happens?

Oh, and BTW, when you say it's still incrementing, you mean you see the field that you are writing to continuing to increment continuously? If you delete the triggered event does it stop?
__________________
Dean Roddey
Software Geek Extraordinaire
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:17 PM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.