Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
This will fix problems where you have a data_source with a different step than your polling_interval.
I haven't had a chance to review the full thold code yet so it might be better to pass this to get_current_value instead of querying it within the function.
Can you explain a litle more as to what this patch resolves? Since it wasn't posted near any other related posts I'm not sure if it addresses the problem I'm having with mismatched values or not.
If you are running the poller every minute but have data sources that are ran every 5 minutes this will fix the 5 minute data sources from returning no data.