Event Source 'Liebert_Condition_Events' concern
Hello,
We've noticed the out of the box event source 'Liebert_Condition_Events' is triggering alarm where the actual date of the event is in the future (example below):
NOTE: Blurred the device name (in order to protect our client information)
I've already accessed the device in question & the system time is correct.
Could this be an issue with the data source 'timestamp' handling? Or there's another thing that I might be missing?
Thank you!
Vitor_Santos
Posted 6 years ago·Last reply 6 years ago
3 comments
Vitor_Santos
OP6 years agoI've further checked the event table on the device itself & the date isn't the same (obviously :)/emoticons/smile@2x.png 2x" title=":)" width="20">).
I've raised a support case #208119 to engage support.
Thank you for the availability!!!
Vitor_Santos
OP6 years agoOk so I've ran the groovy script in Debug console & tweaked it like this:
It returned this:
I see the first event is good & its no longer getting triggered because it already passed.
However the second event still display the data wrongly & LM it triggering that alarm every 60 minutes (but duplicated)
The event date I guess it could be a bug at the device (I'm thinking on raise a case with support anyway). However, related with the duplicated alarm, do you have any idea why?
LM User
·6 years agoOk, the message template for that EventSource looks like this:
Scripted EventSources output json containing one object "events". That events object is a list of events (because the script could uncover more than one event when it runs). In this case, it looks like there's only the one event. The structure of the event output looks like this (from this documentation?
The ##VALUE## token is equivalent to the all four objects in each event (looks like maybe the source isn't included or is optional and not used in this case).
This line in the code is where the timestamp gets converted from the raw data:
I would guess there's a problem converting the timestamp using that "sysuptime_string_to_date" option, or the value in current_conditions_table_hash[key][3] is not right.
Does that get you started? If you can't get much farther, I'd engage support.