Is there a way to send out a Notification if data is not being inserted into PI?
Please describe what you're trying to do and what problem you're to solve. It's possible for the PI System to be functioning perfectly yet data is not being written to the PI Data Archive due to Exception and Compression settings. It's also possible for the source system to continually post the exact value repeatedly (e.g. the sensor is stuck). It's possible the data is being queued up because of other issues. This list goes on and on.
How many PI Point do you want to monitor in this fashion?
There are 2 PI Points that should be changing every 2 seconds. It would be helpful to know if these points are not changing. It would also be nice if only 1 Notification is sent per incident.
Thanks for your reply
Are these points coming in via some kind of PI Interfaces? Or are they coming in via custom applications or otherwise?
Essentially yes a pi notification can be configured to trigger if a data stream has flat-lined. I suggest you start with an event frame analysis that evaluates EventCount('TARGET_ATTRIBUTE', '*-1m', '*') = 0. and down in Scheduling run it every 15 seconds or so. Depending on how critical the presentation of current values is to your operation you can tighten the intervals or lengthen them as needed. If the event count for the underlying pi tag equals zero then you are not getting new values.
Thanks James, I'll try that
Late to the party here. We (OSIsoft) have ver2 of our IT Asset Health Example Kit for AF coming out in a few weeks . Ver2 features AF analytics to detect patterns and notifications chocked full of troubleshooting tips for all the major PI System components (interfaces, failover, buffering, DataArchive, PIVision, + more). Interface health templates are probably the most commonly needed and of special interest here we have watchdog tag accessory templates for stale data detection. We used the EventCount() function mentioned earlier in this post to detect stale. This kit will soon be available for download. OSI Delivery Services can install this AF kit for you if needed. Thanks for the post.
In addition to what James described, we have added new functions over the last few years to help with what you're trying to accomplish - stale data. Take a look at these functions to see which ones may help you, SecSinceChange, HasChanged and HasValueChanged.
As James already mentioned, you need to determine how to schedule your analyses to achieve your requirements of how soon you'd want your users to get a notification that data is stale.
Retrieving data ...