Re: Alarm event when monitoring log files
"Emmanuel Gadaix" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
douglasstvnsn wrote: In the handler sub xdx_got_record, store the value and timestamp of the previous deactivate or activate. Then, when you get a new one , compare and suppress or send. Thanks but this will not work. I need to send "link deactivated" alarm when it has been deactivated (e.g. no "link active" message received) for more than a minute. So imagine the scenario whereby the log messages are: "link deactivated" at 17:00:00 "link active" at 19:00:00 I need to send the alarm at 17:01, not at 19:00 And in the scenario like: "link deactivated" at 17:00:00 "link active" at 17:00:30 Then no alarm are sent (it was only deactivated 30 seconds).