long delay in email
long delay in email
there is currently quite a delay (up to 1 min) in email notification of events. is this due to polling frequency? can I modify this freq setting? is there is way to make it instantaneous (event driven)?
The email is handled by the filters script. I should be fairly fast. Are you using your own mailserver and if so is it scanning for viruses before it sends it to the mailbox? It could also be your that your ISP does the same (scans the mail for viruses and such before posting). How often is your mail client checking for mail?
For a test you might setup a bogus cam and make a message filter for that cam and have it send to your cell phone. You can force an alarm and see how long that takes. When I used my cell phone it was fairly quick, faster than email anyway becuase of the client, virus check, etc..
Regards,
Cordel
For a test you might setup a bogus cam and make a message filter for that cam and have it send to your cell phone. You can force an alarm and see how long that takes. When I used my cell phone it was fairly quick, faster than email anyway becuase of the client, virus check, etc..
Regards,
Cordel
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
There are probably two approaches you can take. One is to edit zmfilter.pl.z and change CHECK_DELAY to be shorter, though this might tie up your machine with checks and won't make it event driven as such.
The other is to take one of the exsiting scripts like zmtrack or zmx10 which do monitor for alarms in a much lighter fashion and import some of the zmfilter code (that sends the mails) and create your own bespoke more reactive monitor scripts. It's not a major task but not trivial either.
I have been thinking of extended zmtrigger to allow outgoing triggers rather than just incoming ones so it will be easier when that's done.
Phil
The other is to take one of the exsiting scripts like zmtrack or zmx10 which do monitor for alarms in a much lighter fashion and import some of the zmfilter code (that sends the mails) and create your own bespoke more reactive monitor scripts. It's not a major task but not trivial either.
I have been thinking of extended zmtrigger to allow outgoing triggers rather than just incoming ones so it will be easier when that's done.
Phil
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
If you search for 'Gone into alarm state' in zm_monitor.cpp you should find it. Or you could just put it in the Event constructor. I would be very careful that you don't add anything that will take any length of time as it will have a knock on effect and tend to cause lots of bad things to happen.
Phil
Phil
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
lol good luck bhomass, i rememeber i had a look at this code once, I still have nightmares now lol
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
i dont know how you do it mate. Everything is well commented. I understand the commants its the rest i have problems with lol. It is one hell of a program, and impresses me more the more i get to know it.
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk