Run State filter test?
Posted: Fri May 04, 2018 7:38 pm
I've run across having a similar needs as I, but it's been approached in a different (what I believe is more complicated) manner.
I'm thinking that having a filter test for "Run State" (string comparison) would allow me to create a run state of say "NoEmail" and I could toggle the server's run state to "NoEmail" which would then cause the filter test to turn off sending e-mail (for those filters conditioned to do so). I utilize zmNinja a lot; it readily allows for the changing of run states (but no access to modify filters).
My need arises out of the fact that I would like to reduce the amount of e-mail alerts that I am generating (mail host/provider starts blocking me as spam when I start generating a lot of e-mails). I have conditions that do not allow me to more finely tune down the number of alerts; I'm about as optimized as I can be using zones.
I don't want to add external scripts and stuff because I wish to minimize the calls outside of Zoneminder's code.
I'm thinking that having a filter test for "Run State" (string comparison) would allow me to create a run state of say "NoEmail" and I could toggle the server's run state to "NoEmail" which would then cause the filter test to turn off sending e-mail (for those filters conditioned to do so). I utilize zmNinja a lot; it readily allows for the changing of run states (but no access to modify filters).
My need arises out of the fact that I would like to reduce the amount of e-mail alerts that I am generating (mail host/provider starts blocking me as spam when I start generating a lot of e-mails). I have conditions that do not allow me to more finely tune down the number of alerts; I'm about as optimized as I can be using zones.
I don't want to add external scripts and stuff because I wish to minimize the calls outside of Zoneminder's code.