Logfile: Alarm if last line is more than 24 hours
-
Hello,
I want to setup an alarm if the last line written in a logfile is more than 24 hours ago.
I have made an event when the file is written. So far so good.
Now I want an alarm if this event is more than 24 hours ago.
How to setup? Can an event be a DCI?
Thanks,
Maurice Spronkers -
Hi!
You can use situations in conjunction with dummy DCI. For example, you can update situation object each time you got line from a log, setting situation's attribute to current time stamp. Then, create dummy DCI with transformation script, check situation's attribute, and return different values depending on how long time was passed since last situation update, and set thresholds as usual. And starting from 1.0.8, you will be able to generate new event directly from transformation script.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login