PI Notifications User Guide
PI Notifications User Guide
Version 1.1
OSIsoft, Inc. International Offices
777 Davis St., Suite 250 OSIsoft Australia
San Leandro, CA 94577 USA Perth, Australia
Auckland, New Zealand
Additional Offices OSIsoft Germany GmbH
Houston, TX Altenstadt, Germany
Johnson City, TN
OSIsoft Asia Pte Ltd.
Longview, TX
Mayfield Heights, OH Singapore
Philadelphia, PA OSIsoft Canada ULC
Phoenix, AZ
Montreal, Canada
Savannah, GA
Calgary, Canada
Sales Outlets/Distributors OSIsoft, Inc. Representative Office
Middle East/North Africa Shanghai, People’s Republic of China
Republic of South Africa OSIsoft Japan KK
Russia/Central Asia Tokyo, Japan
South America/Caribbean
Southeast Asia OSIsoft Mexico S. De R.L. De C.V.
South Korea Taiwan Mexico City, Mexico
OSIsoft do Brasil Sistemas Ltda.
Sao Paulo, Brazil
OSIsoft, the OSIsoft logo and logotype, PI Analytics, PI ProcessBook, PI DataLink, ProcessPoint, Sigmafine, Analysis Framework, IT
Monitor, MCN Health Monitor, PI System, PI ActiveView, PI ACE, PI AlarmView, PI BatchView, PI Data Services, PI Manual Logger, PI
ProfileView, PI Web Parts, ProTRAQ, RLINK, RtAnalytics, RtBaseline, RtPortal, RtPM, RtReports and RtWebParts are all trademarks
of OSIsoft, Inc. All other trademarks or trade names used herein are the property of their respective owners.
Published: 9/8/2009
Table of Contents
Chapter 1 Introduction .................................................................................................................. 1
What is PI Notifications? .................................................................................................... 1
How PI Notifications Works ................................................................................................ 1
Components of PI Notifications .......................................................................................... 2
Basic PI Notifications Terminology..................................................................................... 3
PI Notifications and PI Clients ............................................................................................ 4
High Availability .................................................................................................................. 4
Security .............................................................................................................................. 5
Documentation Overview ................................................................................................... 5
What's New in PI Notifications 1.1? ................................................................................... 6
iv
Appendix A Migrate to PI Notifications ................................................................................... 149
Introduction
What is PI Notifications?
PI Notifications is a core component of the PI System for building and maintaining real-time
PI System notifications. Important PI Notifications features include:
• Simplicity: PI Notifications provides a simple, consistent, and intuitive set of tools for
using notification features across the PI System.
• Enterprise: All the notifications are shared, managed, and maintained enterprise-wide.
You can integrate PI Notifications services within your existing IT infrastructure.
• Availability: PI Notifications provides system redundancy, and persistence.
• Integration: PI Notifications integrates with and leverages the PI Server, PI AF, and
other PI System services. The Notifications platform also provides a software
development kit upon which users can build custom applications.
• Archiving: Every notification action is archived. Such actions include start and end
times, notification times, acknowledgements, entry of comments and escalations.
• Unification: PI Notifications unifies all the existing PI System alarm tools, products and
packages, expanding the notification feature set significantly.
• Acknowledgment: Notifications are acknowledgeable, meaning there will be a written
record that a subscriber acted on the event.
• MyPI: Your notifications of interest are saved explicitly and keyed on your Windows
authentication. When you log into a Windows machine, these notifications will
automatically be available to you in one convenient place.
• Extensible Delivery: You can develop custom delivery channels to connect PI
Notifications events to your existing IT infrastructure.
• Escalation: You can set up escalation structures so the right people get the right
information in the right order.
• Customizable Content: You can customize the specific notification-related data to be
included in notifications.
PI Notifications allows a user to define a set of criteria that upon which the PI Notifications
Service can trigger a notification to a configurable set of subscribers. In the simplest case, the
conditions can simply compare a tag value to a constant. More complex conditions, such as
complex equations, are also allowed (the full list of configuration options is described below).
PI Notifications Service records all triggered conditions in the PI Server for historical
purposes. If a contact has been defined then they will be notified using a delivery mechanism
such as email. The message itself can be customized to contain information about the event
that can help the receiver take action further action on this event. Multiple contacts can be
defined for a notification, as well as a progression of people or groups (for example, if person
A does not respond within a certain period of time then contact person B). Finally, the
receiver(s) has the option of acknowledging the notification. A historical record is kept for all
acknowledgments.
The PI Notifications Service supports high availability and does not have to run on the same
machine as the PI Server, AF server, or the client applications. The service is described in
detail in PI Notifications Service (page 119).
Components of PI Notifications
PI Notifications includes these main components:
• PI System Explorer Add-ins: PI Notifications delivers three components for the PI
System Explorer. This guide and the online help contained in the PI System Explorer
describe details about these add-ins:
ο MyPI: This add-in provides a convenient interface to view all of the notifications for
which you are subscribed.
ο Notifications: This add-in allows you to configure and subscribe to a notification and
to view its events (either historically, or as they arrive).
ο Contacts: This add-in allows you to configure notification groups, escalation teams,
and advanced delivery options that you use to subscribe to the notifications you
build.
• PI Notifications Service: This is a Windows service that runs notification rules and
processes their events in real time. You can run multiple instances of this service on
multiple machines (one per machine) to provide redundancies and meet different security
needs.
• PI Notifications Desktop Alert: This desktop tray application automatically monitors all
your notifications when you log on to a machine. It produces a momentary pop-up
message box when you receive a notification. You can click on the message box to view
more detail in MyPI.
• PI Notifications Acknowledgment Page: This ASP.Net Web page allows you to
acknowledge a notification event. When you receive an email notification, it contains
several links that allow you to acknowledge a notification directly.
2
Basic PI Notifications Terminology
of rules. To automatically create notification rules for all the pumps, you create a notification
rule template that references the element template for the pumps.
Subscription: A subscription is how a contact signs up for a notification. Additionally, it
contains the content that is delivered to the contact.
Target: For notification rules, the target is the element to which the rule applies. For
notification rule templates, the target is the element template that is associated with the
notification rule template.
Time rule: A time rule is a setting that specifies how often the trigger conditions of a
notification are checked.
Time true: The length of time a condition must be true to trigger a notification. A Time True
setting can be triggered in one of two ways:
• Natural: The condition is evaluated solely when the time rule triggers.
• Clock: The condition is evaluated at the specified intervals, independent of time rule
triggering.
Trigger: A trigger for a notification rule consists of a target element, a time rule, and the
collection of conditions that cause notification to be sent. The conditions can be nested,
ANDed, or ORed. You can configure a condition using the simple comparison rule, the PI
SQC rule, or the Performance Equation.
High Availability
You can configure an arbitrary number of instances of PI Notifications Service to run the
same set of notifications on separate machines. Any notification rule is run by one of these
service instances while other instances act as the backups. When the primary service stops—
either gracefully or ungracefully—one of the backups takes over and becomes the primary
4
Security
service. See Set up Redundant Service Instances (page 122) for details on how the High
Availability (HA) feature works and how you configure it.
Security
PI Notifications uses Windows security for communicating internally and with the AF server.
It communicates with the PI Server via the trust login mechanism. The notification rule and
contact objects have Windows security descriptors associated with them. For details, see
Manage Notification and Contact Security (page 115).
Documentation Overview
This user guide is part of a documentation set that is available as two Adobe PDF files:
• PI Notifications User Guide: An introduction to PI Notifications for the end user. This
user guide provides a product overview, installation procedures, and other topics to allow
you to work with and troubleshoot PI Notifications.
• PI AF User Guide (2.1): Provides guidelines, example applications, installation
procedures, and performance notes for AF 2.1. This document includes a theoretical
overview of AF 2.1, its architecture, and step-by-step procedures for using the PI System
Explorer to create and configure elements, templates, reference types, tables, and so on.
The online help for PI Notifications contains information from the PI Notifications User
Guide and PI AF User Guide (2.1). The online help consists of these major sections:
• PI System Data Directory: Provides an overview of the Data Directory architecture,
systems, databases, unit of measure theory, and how code changes are checked in or out
and persisted in the database.
• PI System Notifications: Provides a product overview, installation procedures, and other
topics to allow you to work with and troubleshoot PI Notifications.
• PI System Explorer: Contains the following subsections:
ο PI System Explorer User Guide: Provides an overview and explains the functions
of PI System Explorer.
ο PI Data Directory: Describes how to configure objects comprising AF, such as
elements, library components, transfers, and units of measure.
ο PI Notifications: Provides procedures for building and monitoring notifications.
• AFSDK Library Reference: The AFSDK library is a Microsoft .NET assembly that
provides structured access to OSIsoft data. This document is provided solely as an HTML
Help file.
• ANSDK Library Reference: The ANSDK library is a Microsoft .NET assembly that
provides structured access to PI Notifications functionality. This document is provided
solely as an HTML Help file.
Additional information about AF 2.1, PI System Explorer, and other topics of interest can be
found in respective books available on the OSIsoft Technical Support and Resources Web site
(http://techsupport.osisoft.com/).
6
Chapter 2
Installation
System Prerequisites
Installation of an OSIsoft product relies on the presence of operating system components such
as the Microsoft .NET Framework. OSIsoft product install kits check for prerequisite
software during installation. If not found, the installation stops and you are prompted to
install prerequisites.
To determine which Microsoft operating system prerequisites you need, see the OSIsoft Tech
Support Web site Prerequisite Kits pages
(http://techsupport.osisoft.com/Products/Prerequisite+Kits/Prerequisite+Kits+Overview.htm).
Installation Components
The PI Notifications setup kit is distributed as a self-extracting executable. When you run the
installer, you may customize your installation by selecting the features that will be installed
on the target machine. This chapter tells you how to install all PI Notifications features, only
a few features, or a single feature.
The installer contains the following features:
• PI Notifications Client: This feature includes add-ins to PI System Explorer. Within this
host, you configure, subscribe to or unsubscribe from, and view the archived or active
events of notification rules. The client also enables you to receive new events through PI
Notifications Desktop Alert.
• PI Notifications Service: This feature runs a service instance to evaluate notification
rules in real time, send out notification messages, process acknowledgments and/or
escalation, and so on.
• PI Notifications Acknowledgment Page: This page provides a link which is embedded
in the email message; a subscriber can click directly on this link to acknowledge a
notification message or to comment on a notification instance.
System Requirements
Before you install any PI Notifications component, it is important to verify that the target
machine meets the system requirements. All components require:
• Any of the following Microsoft operating systems (32-bit or 64-bit):
ο Windows XP SP3 or later
ο Windows Vista
ο Windows 7
ο Windows Server 2003 SP2 or later
ο Windows Server 2008
ο Windows Server 2008 R2
• AF 2.1 Client
• PI SDK
• .NET Framework 3.5
The PI Notifications Service feature requires that a PI Server and an AF Server have already
been installed (on the same machine or a separate machine). If you intend to use email to
deliver notification messages, an SMTP server is required.
The PI Notifications Acknowledgement Page requires Microsoft IIS 5.0 or greater and
ASP.NET 2.0 installed on the same machine. For Microsoft IIS 7.0, the IIS Metabase and IIS
6 configuration compatibility option must be enabled.
1. Run the self-extracting executable for PI Notifications. Fill out the dialog boxes with
prompted information and click Next until you reach the Select Features dialog box.
2. On the Select Features dialog box, use the drop-down menus to customize your
installation.
8
Common Installation Scenarios
a. Select Will be installed on local hard drive next to the features you want to install
from the drop-down menus:
− Client
− Service
− Acknowledgment Web Page
Note: If you select Entire feature will be unavailable for a feature that was installed
with an earlier version of PI Notifications, that feature will be removed.
3. Click Next.
4. You are prompted to select an AF server. If you have connected to an AF server in the
past, the default AF server appears in the AF Server box. Click Browse to select another
AF server.
Note: To find the name of the machine where the AF server is installed, contact your
AF Server Administrator.
5. In the Logon Information dialog, select the Log On account that will be used to start the
PI Notifications Service. Select Local System if the AF Server is installed on the same
machine as the PI Notifications Service and only one instance of PI Notifications Service
is to be installed. Otherwise, select Domain User. The Domain User account must have
Administrator privileges on the machine that is running the AF Server. Click Next.
6. If this is not the first time the PI Notifications Service feature is installed for the
particular AF server, the Supporting Information dialog displays the configured
information for the particular AF Server. Otherwise, the dialog prompts you to:
a. Server Name: Specify a PI Server to store the notification history and email
configuration information for email notifications.
b. Email Delivery Channel Settings: Supply the following information so that PI
Notifications can send email:
− SMTP Server: For notifications to be sent via email, provide the name of the
SMTP server. Be sure to allow the machine with the PI Notifications Service
feature the ability to relay the emails through the SMTP server.
− Backup SMTP Server: If you have a backup SMTP server, provide the name of
the backup SMTP server.
− From Email: Designates the default email address used as the sender of the
email notifications.
c. Optionally, add the fully qualified name of an RtWebParts server.
7. Click Next.
8. Select the Web site where the virtual directory should created for the PI Notifications
Acknowledgment Web Page feature. The Web site must use ASP.NET 2.0. Click Next.
10
Common Installation Scenarios
9. Click Next, customizing as you see fit, until the installation is complete. Click Finish.
10. After you complete the installation, you need to configure PI Notifications security. For
details, see Manage Notifications and Contacts Security (page 115).
Installing the PI Notifications client allows you to use all PI Notifications functionality
without the administrative tasks involved with running a service.
To install only the PI Notifications client:
1. Run the self-extracting executable for PI Notifications. Fill out the dialog boxes with
prompted information and click Next until you reach the Select Features dialog box.
2. On the Select Features dialog, use the drop-down menus to customize your installation.
a. Select Will be installed on local hard drive from the Client drop-down menu.
b. Select Entire feature will be unavailable from the Service and Acknowledgment
Web Page drop-down menus.
Note: If you select Entire feature will be unavailable for a feature that was installed
with an earlier version of PI Notifications, that feature will be removed.
3. Click Next.
4. Click Next, customizing as you see fit, until the installation is complete. Click Finish.
5. After you complete the installation, you need to configure PI Notifications security. For
details, see Manage Notifications and Contacts Security (page 115).
For ease of administration and maintenance, you can install and run the PI Notifications
Service on a dedicated machine.
To install or upgrade only the PI Notifications Service:
1. Run the self-extracting executable for PI Notifications. Fill out the dialog boxes with
prompted information and click Next until you reach the Select Features dialog box.
2. On the Select Features dialog, use the drop-down menus to customize your installation.
a. Select Will be installed on local hard drive from the Service drop-down menu.
b. Select Entire feature will be unavailable from the Client and Acknowledgment
Web Page drop-down menus.
Note: If you select Entire feature will be unavailable for a feature that was installed
with an earlier version of PI Notifications, that feature will be removed.
3. Click Next.
4. When prompted to select an AF server, use the default AF server or click Browse to
select another AF server.
12
Common Installation Scenarios
Note: To find the name of the machine where the AF server is installed, contact your
AF Server Administrator.
5. In the Logon Information dialog, select the Log On account to use to start the PI
Notifications Service. Select Local System if the AF Server is installed on the same
machine as the PI Notifications Service and only one instance of PI Notifications Service
is to be installed. Otherwise, select Domain User. The Domain User account must have
Administrator privileges on the machine that is running the AF Server. Click Next.
6. If this is not the first time the PI Notifications Service feature is installed for the
particular AF server, the Supporting Information dialog displays the configured
information for the particular AF Server. Otherwise, it will prompt you to:
a. Server Name: Specify a PI Server to store the notification history and email
configuration information for email notifications.
b. Email Delivery Channel Settings: Supply the following information so that PI
Notifications can send email:
− SMTP Server: For notifications to be sent via email, provide the name of the
SMTP server. Be sure to allow the machine with the PI Notifications Service
feature the ability to relay the emails through the SMTP server.
− Backup SMTP Server: If you have a backup SMTP server, provide the name of
the backup SMTP server.
− From Email: Designates the default email address used as the sender of the
email notifications.
c. Optionally, add the fully qualified name of an RtWebParts server.
7. Click Next, customizing as you see fit, until the installation is complete. Click Finish.
8. After you complete the installation, you need to configure PI Notifications security. For
details, see Manage Notifications and Contacts Security (page 115).
If the machine you are installing the PI Notifications Service also hosts a Web site, you may
consider installing both the PI Notifications Service and the Acknowledgment Web page on
the same machine.
1. Run the self-extracting executable for PI Notifications. Fill out the dialog boxes with
prompted information and click Next until you reach the Select Features dialog box.
2. On the Select Features dialog, use the drop-down menus to customize your installation.
a. Select Will be installed on local hard drive from the Service and
Acknowledgment Web Page drop-down menus.
b. Select Entire feature will be unavailable from the Client drop-down menu.
Note: If you select Entire feature will be unavailable for a feature that was installed
with an earlier version of PI Notifications, that feature will be removed.
3. Click Next.
4. You will be prompted to select an AF server. If you have connected to an AF server in
the past, the default AF server appears in the AF Server box. Click Browse to select
another AF server.
Note: To find the name of the machine where the AF server is installed, contact your
AF Server Administrator.
5. In the Logon Information dialog, select the Log On account that will be used to start the
PI Notifications Service. Select Local System if the AF Server is installed on the same
machine as the PI Notifications Service and only one instance of PI Notifications Service
is to be installed. Otherwise, select Domain User. The Domain User account must have
Administrator privileges on the machine that is running the AF Server. Click Next.
6. If this is not the first time the PI Notifications Service feature is installed for the
particular AF server, the Supporting Information dialog displays the configured
information for the particular AF Server. Otherwise, it will prompt you to:
a. Server Name: Specify a PI Server to store the notification history and email
configuration information for email notifications.
b. Email Delivery Channel Settings: Supply the following information so that PI
Notifications can send email:
− SMTP Server: For notifications to be sent via email, provide the name of the
SMTP server. Be sure to allow the machine with the PI Notifications Service
feature the ability to relay the emails through the SMTP server.
− Backup SMTP Server: If you have a backup SMTP server, provide the name of
the backup SMTP server.
− From Email: Designates the default email address used as the sender of the
email notifications.
c. Optionally, add the fully qualified name of an RtWebParts server.
7. Click Next.
8. Select the Web site where the virtual directory should created for the PI Notifications
Acknowledgment Web Page feature. The Web site must use ASP.NET 2.0. Click Next.
14
Common Installation Scenarios
Tutorial
This tutorial is designed to familiarize you with some PI Notifications features. Each exercise
assumes that:
• PI Server, AF server, AF client, and PI Notifications have been installed and are
accessible.
• A working connection to a PI Server has been established.
• The PI Notifications Service has been started. Use the procedure in View PI Notifications
Service Summary (page 122).
• The PI System Management Tools (PI SMT) utility has been installed on the computer on
which you are running PI Notifications.
Use the Basic Steps sections to begin each exercise. If you have trouble, use the Step-by-
Step Solution at the end of each exercise.
Note: These exercises use fictitious email contacts. If these email contacts do not exist
at your site, you might not be able to acknowledge notifications. In this case you
see a Send Error in the notification history.
Basic Steps
2. In PI System Explorer, create email contacts named Bob Smith, Rudy Wells, and JD
Hogg with email addresses [email protected], [email protected], and [email protected],
respectively.
For information on how to create contacts, see What is a Notification Contact? (page 89)
3. Create an AF element called Monitored Tags to monitor the PI point CDT158. Create an
attribute called TAG:CDT158.Value for the value of the point.
For information on how to create elements, see Create an Element (page 53).
4. Build the Notification Rule CDT Warnings to monitor the value of CDT158. This
notification rule should:
ο Be triggered when the value of CDT158 exceeds 200;
ο When triggered, specify an alert state of SuperHIHI and send email to Bob Smith.
For information on how to build notification rules, see the following procedures:
ο Create a Notification Rule (page 54)
ο Configure a Comparison Condition (page 56)
ο Subscribe to a Notification Rule (page 100)
ο Check in all Changes (page 50)
ο Start a Notification Rule (page 81).
ο For information on alert states, see Configure States and Groups (page 126).
5. Test the notification rule.
For information on testing notification rules, see the procedures in View Recent
Notification Instances (page 106) and Acknowledge a Notification Instance (page 109).
Note: To trigger notifications for testing, you can either wait for point values to
change naturally or, if you have write permissions to the PI point CDT158, you
can manually enter a value greater than 200. To enter a value for the PI point,
change the settings on the TAG:CDT158.Value attribute so that you can write
values to it (ReadOnly=False), and then type a value into the Value edit box.
18
Build a Notification Rule for Monitoring PI Point Values
Step-by-Step Solution
Set up an AF Database
1. Start PI System Explorer: Click Start > PI System > PI System Explorer.
2. In PI System Explorer, click File > Database.
3. Click the New Database button. Alternatively, right-click anywhere in the list of
databases and select New Database. Name the database MyNotificationsDB and click
OK to save the changes.
Note: You may get an error if another user has completed this tutorial with the same
AF Database. If you get this error, click OK. Then, delete the duplicate contact
name from the Contacts pane.
20
Build a Notification Rule for Monitoring PI Point Values
2. Right-click the Elements node in the Browser pane and select New Element.
3. The Choose Element Template dialog box appears. Click OK to accept the defaults.
4. On the Viewer pane, click the General tab. In the Name box, enter MonitoredTags as the
element name.
5. Click the Attributes tab.
Note: Your screen might look different. To display the palette on the right, use the
menu command View > Palette > Show Palette.
7. In the Name box, enter the name TAG:CDT158.Value for the attribute.
8. Set the Data Reference to PI Point.
22
Build a Notification Rule for Monitoring PI Point Values
9. Click the Settings button. In the PI Point Data Reference dialog box, enter the tag name
CDT158, leave other parameters as configured, and click OK.
10. Click Check In on the toolbar to save the element in the AF database.
3. Click the Overview tab. In the Name box, enter CDT Warnings.
Note: These options are described in Configure Notification Rule Triggers (page 55).
24
Build a Notification Rule for Monitoring PI Point Values
7. To associate the notification with the AF element that you created earlier, click the Select
a Target button to the right of the Target box.
13. Click the New State button to the right of the State list.
14. Create a state called SuperHIHI and click OK.
15. Select the SuperHIHI state you just created from the State list.
16. Click OK to close the dialog box and finish defining the condition.
26
Build a Notification Rule for Monitoring PI Point Values
18. Use the Contacts palette to find the contact you created for Bob Smith. Drag-and-drop
Bob Smith from the Contacts palette to the Subscriptions icon and choose email as the
delivery channel to be used for notification. Alternatively, drag the Bob Smith - Email
delivery channel onto the Subscriptions icon.
Note: If this is the first email notification you are creating for this contact, you are
prompted to set options. Click OK on the dialog to accept the defaults.
Note: To write values to the PI point, you need security permissions to write values to
the CDT158 PI point. If you do not have these permissions, test the notification by
waiting for the notification to trigger naturally.
4. Click the Settings button. On the PI Point Data Reference dialog, clear the Read only
check box at the bottom of the dialog and click OK.
28
Configure an Escalation
5. Click Notifications in the Navigator pane. Click the History tab of the CDT Warnings
notification and select Recent from the View Notifications list. Click Get Events
and observe that a notification has triggered. For example:
Configure an Escalation
You have a group of people you want sequentially informed using a notification. If the first
person does not respond in two minutes, the second person will be notified. The exercise uses
the PI notification built in the previous example. In addition to Bob Smith, you want to add
Rudy Wells and JD Hogg to the order of notification, in that order.
Basic Steps
Step-by-Step Solution
1. In PI System Explorer, click Contacts in the Navigator panel to display the contacts in
the current database.
3. Click the New button and select New Escalation Team, or right-click in the Browser
pane and select New Escalation Team.
30
Configure an Escalation
6. Drag the contacts you created earlier (Bob Smith, Rudy Wells, and JD Hogg) from the
Contacts palette into the viewer pane.
7. If needed, use and to place the members of the escalation team in correct order.
8. Click JD Hogg - Email to select it, and then click on the toolbar. You see a dialog
with options for JD Hogg:
9. Select the Notify on close check box, and then click OK.
For more information on contact options, see Customize Contact Configuration Options
(page 102).
10. Click the Refresh button on the toolbar so that all panes show the correct name of the
escalation.
12. Click Notifications in the Navigator pane to display the notifications in the current
database.
13. Click on the CDT Warnings notification. If necessary, click Stop on the toolbar to
stop the notification.
14. Click the Subscriptions tab.
15. To remove Bob Smith from the subscription list, click Bob Smith - Email, click Delete
on the toolbar, and then click OK.
16. Drag and drop CDT Escalation from the Contacts palette onto Subscriptions.
17. Click Subscriptions, and then click Contact Options. On the Subscriptions dialog,
change Required acknowledgements from Auto to 1.
32
Build a Notification Rule with Multiple Conditions
Basic Steps
Your system manager can suggest suitable PI points to use for this exercise.
4. Follow the procedures in Build the Notification Rule (page 23) to create the notification.
5. Create the following conditions for the notification:
a. Configure a comparison condition to monitor when the DeviceOnOff attribute is set
to Off. When the condition is true (DeviceOnOf=Off), the state is Shutdown.
b. Configure an AND condition to monitor when the Level is greater than 90 and the
Temperature is greater than 500 degrees. When the condition is true, the state is
High.
c. Configure an OR condition to monitor when the Level is less than 20 and the
Pressure is less than 10. When this is the case, the state is Low.
d. Configure a condition that uses a Performance Equation to monitor when the average
temperature over the past hour is greater than or equal to 300 degrees. When the
condition is true, the state is OutsideControl. The performance equation is
TagAvg('Temperature','*-1h','')>=300.
For information on how to create complex conditions, see Configure Notification Rule
Triggers (page 55).
If you have trouble, see the Step-by-Step Solution (page 34).
Note: Unlike the examples in previous exercises, this example does not use default PI
points. To test these examples, you must create the PI points.
Step-by-Step Solution
2. In PI System Explorer, click Elements in the Navigator panel to display the elements in
the current database.
3. Right-click the Elements node in the Browser pane and select New Element.
34
Build a Notification Rule with Multiple Conditions
4. The Choose Element Template dialog box appears. Click OK to accept the defaults.
10. Click the Settings button. In the PI Point Data Reference dialog box, specify one of the
PI points that you chose in step 2, leave other parameters as configured, and click OK.
11. Repeat steps 6 through 10 to create the following attributes.
ο Level
ο Pressure
ο Temperature
Note: These options are described in Configure Notification Rule Triggers (page 55).
36
Build a Notification Rule with Multiple Conditions
7. To associate the notification with the AF element that you created earlier, click the Select
a Target button to the right of the Target box. You see the
Database:MyNotificationsDB dialog.
3. Type DeviceOnOff in the Input box. Select the not equal to operator (<>) from the
Operator drop-down menu. Type Off in the Compare To box. Type 0 (zero) in the
Time True box. Select Clock from the Time True Options drop-down menu. Select
Shutdown from the State drop-down menu. Select Normal from the Priority drop-down
menu.
38
Build a Notification Rule with Multiple Conditions
3. In the And Conditions dialog box, click New Condition > Comparison.
4. In the Comparison dialog box, type Level in the Input box, select greater than (>) from
the Operator list, and type 90 in the Compare To box. Click OK.
5. You are back at the And Conditions dialog box. The comparison rule you just entered is
now listed in this dialog box. Click New Condition > Comparison.
6. In this Comparison dialog box, type Temperature in the Input box, select the greater
than operator (>) from the Operator drop-down list, and type 500 in the Compare To
box. Click OK.
The conditions are now listed in the And Conditions dialog box. Click OK.
Configure an OR Condition
1. Select the notification and click the Trigger tab.
2. Click the New Condition button and select Or Conditions from the drop-down list.
40
Build a Notification Rule with Multiple Conditions
4. In the Comparison dialog box, type Level in the Input box, select the less than operator
(<) from the Operator drop-down list, and type 15 in the Compare To box. Click OK.
5. You are back at the Or Conditions dialog box. The comparison rule you just entered is
now listed in this dialog box. Click New Condition > Comparison.
6. In this Comparison dialog box, type Pressure in the Input box, select the less than
operator (<) from the Operator drop-down list, and type 10 in the Compare To box.
Click OK.
7. The conditions are now listed in the And Conditions dialog box. Select Low from the
State drop-down list. Click OK.
42
Build a Notification Rule with Multiple Conditions
2. Click the New Condition button and select Performance Equation from the drop-down
list.
4. Click the Evaluate button to make sure the expression is in the correct syntax. Click OK.
Basic Steps
Step-by-Step Solution
44
Customize Notification Message Content
4. Click the Add button and select File Link from the drop-down list.
5. Select the file path that you want sent with the notification. Make sure that the path is
accessible from the network. Click OK.
6. The file path now appears on the Content tab.
4. On the Subscriptions tab, in the Selected Content box, check the check box next to the
File Link content that you created.
46
Chapter 4
48
Navigate the PI System Explorer
• Status Bar: Refer to the status bar at the bottom of the PI System Explorer window to
see current actions in PI System Explorer. For example, if you load a notification, you see
the message Loading Notification.
For more information, see the PI System Explorer User Guide.
Select Notifications in the Navigator panel to go to Notifications view. There are three
panes in Notifications view:
• The Browser pane shows a list of notification rules and a toolbar panel. A common task
to accomplish in the Browser pane is to select the notification rule you want to view or
edit in the Viewer pane.
• The Viewer pane shows the details for the selected notification rule in the Browser pane.
In this pane, you can edit the rule, subscribe to or unsubscribe from the notification, and
view its archived events.
• The Palette pane displays the contacts. This pane is visible when you click the
Subscriptions tab in the Viewer pane. You can drag-and-drop contacts from this pane to
subscribe to a notification rule.
Select Contacts in the Navigator panel to go to Contacts view. There are three panes in
Contacts view:
• The Browser pane shows configured contacts, notification contact templates, and a
toolbar panel. A common task to accomplish in the Browser pane is to select the contact
you want to view or edit in the Viewer pane.
• The Viewer pane shows the details for the selected contact or template in the Browser
pane. You can edit the selected contact or contact template properties.
• The Palette pane displays the contacts. This pane is visible when you select a group or an
escalation team. You can drag-and-drop contacts from this pane to subscribe to a
notification rule.
If you decide to discard your changes that have been temporarily saved, you can:
• Select File > Undo Check In.
or
Notifications
When you make changes to a notification rule or notification contact, a check mark appears
next it.
The bright red check mark next to the notification icon— —indicates that you have
modified the object, but have not applied the change or checked the object in. Changes that
have been saved but not checked in are indicated by a dark red check mark next to the
notification icon. When a notification rule is check out to someone else, it appears with a
blue check mark next to the notification icon.
Contacts
When a contact is checked out to you, a red check box appears next the contact icon.
50
Refresh the Current Database
When a contact is checked out to someone else, a grey check box appears next the contact
icon.
When a contact is not checked out, there is no check box next to the contact icon.
Create an Element
To create an element:
1. Click Elements in the Navigator panel in PI System Explorer.
2. In Elements view, select File > New. A new element is added to the Notifications pane.
3. In the General tab, enter the name and description for the element.
4. Click the Attributes tab, and enter the attributes for the element.
ο Click Apply Changes to save your changes for the selected notification rule to
your sandbox, where changes are stored temporarily to the server but are not visible
to other users.
ο Click Apply Changes . to save your changes for the selected notification rule to
your sandbox, where changes are stored temporarily to the server but are not visible
to other users.
Note: You work area is considered a sandbox until changes are checked in; applying
changes to a notification requires that changes be manually checked in later.
After you configure more properties in the respective Trigger, Content, and Subscriptions
tabs, those properties will be visible in the Overview tab.
54
Configure Notification Rule Triggers
More on Periodic Time Rule: Use the periodic time rule to generate calendar or
wall-clock periodic cases. AF supports three core intervals: (1) Periodic, (2)
Daily and (3) Monthly.
For the periodic interval, note that the first period begins at the specified offset at the
beginning of each day. The duration of daily and monthly intervals is always
equal to the time between successive intervals. For time intervals that are not
even multiples of 24 hours, a short time span occurs at the end of each day.
This also occurs during shifts in Daylight Savings Time (DST) for periods that
are not a multiple of the DST shift, typically one hour. All times are considered
local to the AF Server.
4. Configure the Options settings. For information, see Configure Notification Rule Options
(page 65).
To delete a condition, click the condition in the Conditions list and click Delete .
To edit a condition, click the condition in the Conditions list and click Edit .
To move a condition up, click the condition in the Conditions list and click .
To move a condition down , click the condition in the Conditions list and click .
Configure Conditions
Step operators compare the target value to the difference between the current input value and
the previous input value. The following table shows details of the calculations:
Operator Description Calculation
Step Decrease Larger Determines if the input value is (previous value - current
Than decreasing and the change is value)
greater than the target value. > target value
Step Increase Larger Than Determines if the input value is (previous value - current
increasing and the change is value)
greater than the target value. < target value
56
Configure Notification Rule Triggers
Rate operators compare the target value to the difference between the current and previous
input values, divided by delta time, where delta time is the time that elapsed between the
collection of the two values:
Operator Description Calculation
Rate Decrease Larger Determines if the input value is ((previous value - current
Than decreasing and the rate of value)/delta time)
change is greater than the > target value
target value.
Rate Increase Larger Than Determines if the input value is ((previous value - current
increasing and the rate of value)/delta time)
change is greater than the < target value
target value.
Rate Change Larger Than Determines if the rate of (ABS(previous value - current
change in the input value is value)/delta time)
greater than the target value in > target value
either direction.
Rate Change Less Than Determines if the rate of (ABS(previous value - current
change in the input value is value)/delta time)
less than the target value in < target value
either direction.
Note: This may affect the non repetition interval, see Configure Notification Rule
Options (page 65) for details.
10. Select the output state for the notification if this condition is true in the State box.
11. Set the priority of this condition in the Priority box. If multiple conditions are found true,
the one with the highest priority will be used as the output of the notification rule.
12. When all the values have been set, click OK.
58
Configure Notification Rule Triggers
• Source is the attribute whose values the SQC analysis are used in the SQC condition.
• UCL is the upper control limit. Select an attribute.
• CL is the center line. Select an attribute.
• LCL is the lower control limit. Select an attribute.
• Check Clear on Control Limit Change to clear the notification state, clear the test
buffer, and start the calculation over from scratch if any control limits change.
• The seven pattern tests shown are standard Western Electric Pattern Tests.
Note: Please refer to the PI Real-Time SQC chapter in the PI Server Applications
Manual for more information on these pattern tests.
The pattern tests are listed in the order of the precedence. That is, if Outside Control, One
Side of Center Line, and Trend all fail, Outside Control is the condition reported.
Outside Control x of y [<blank>, above, Within y number of samples, x are
or below] outside of control limits. Options:
Specify above or below to apply test
only above or below the center line.
Outside 2 Sigma x of y [<blank>, above, Within y number of samples, x are
outside the Two Sigma limit. Options:
To configure the pattern tests, select the pattern tests to include in the SQC calculation by
checking the boxes next to the desired pattern tests. The X, Y, and Above or Below
selections will become available for editing.
Y is the sample size necessary and X is the number out of Y required to fail the pattern
test. The recommended numbers are shown by default.
Outside Control, Outside 2 Sigma, Outside 1 Sigma, and One Side of Center Line
each have three options for evaluating the patterns: Both, Above, or Below of the center
line.
60
Configure Notification Rule Triggers
Note: The input name inside single quotes (in this case, sinusoid) is an AFAttribute, and
must exist on the target specified earlier. One can also type in a full PI point path
for input, for example, ‘\\piserver_name\tag_name’. Target still needs to be
specified in trigger, but it is not used to find the input. This may be any element in
your database. Full AFAttribute path may also be used as input.
1. Type in the Performance Equation (PE) expression in the Expression box. As you type,
tool tip will show and help guide you through the syntax. If there is an error, the erring
token will be underlined with a red squiggly line, and if available, detailed information
regarding the cause of the error will be shown.
2. If no error shows and you are satisfied with the expression, click the Evaluate button to
see if the expression evaluates to a value you expect. If satisfied with the result, fill out
Time true. Time true is the length of time the condition needs to be true in order for the
notification to trigger.
3. Set the Time True Options. Time True Options are either Natural or Clock. See the
details describing Time True Options in Configure a Comparison Condition (page 56).
4. In the State Group box, select the state group to which the output state belongs.
Note: The state group may affect the non repetition interval, see Configure
Notification Rule Options (page 65) for details.
5. In the State list box, select the output state for the notification when this condition is true.
6. Set the priority of this condition in the Priority box. If multiple conditions are found true,
the one with the highest priority will be used as the output of the notification rule.
7. When all the values have been set, click OK.
These Performance Equation functions are not supported in this release of PI Notifications:
• MedianFilt
• Impulse
• Delay
• Arma
• IsDST
All other Performance Equation functions are supported in this version of PI Notifications.
Note: For more information about Performance Equations, see the PI Server
Applications Guide.
Note: The input name inside single quotes (in this case sinusoid) is an AFAttribute, and
must exist on the target specified earlier (unless it is a full path). One can also
type in a full PI point path as in ‘\\piserver_name\tag_name’ or
'\\afserver\database\element|attribute'. Target still needs to be specified in Trigger
but is not used to find the input. If the input is not specified as full path, it will be
interpreted as being relative to the specified target.
62
Configure Notification Rule Triggers
1. Click Add in the And Conditions dialog and select Comparison or Performance
Equation.
2. To create the most common And Condition, fill out two dialogs to create two conditions
that must be true.
Note: Your newly created expression should now appear in the Rule text box of the
And Conditions dialog.
Note: This may affect the non repetition interval, see Configure Notification Rule
Options (page 65) for more detail.
e. In the State list, select the output state when the notification is true.
f. Set the priority of this condition in the Priority box. If multiple conditions are found
true, the one with the highest priority is used as the output of the notification rule.
g. When all the values have been set, click OK.
4. When all conditions have been set, click OK.
Configure Or Conditions
OR Conditions are used to define equations where any condition must be true. Use this
option to require that one of multiple conditions be true for a notification to fire.
To configure an OR Condition, follow the same process described to Configure AND
conditions (page 62).
If multiple conditions are found true, the following rules, in this order, determine the
notification rule that takes precedence.
1. The condition with the highest priority.
2. The condition having the “highest” state, if the state belongs to a group. For example, if
High and HiHi are in the same group and HiHi is higher than High, then HiHi takes
precedence.
3. The condition order.
64
Configure Notification Rule Triggers
On the Trigger tab in Notifications view, you can configure notification rule options. Here
are descriptions of these options.
Notify only on change in status: When enabled (the default), you are notified solely
when the notification rule enters a unique notification state and priority. When disabled,
you are notified every time the notification rule is run and the notification rule is in a
notification state, even if the state has not changed.
Resend Interval: A resend interval can optionally be specified to send out additional
alerts if a violation does not clear within a certain amount of time. This can serve as a
reminder that a problem has not been resolved. The interval specifies how long to wait
between resending.
To specify no resend interval, enter zero in the Resend Interval box.
The figure below shows the pattern of alerts PI Notifications sends if a resend interval is
specified.
from being sent because of a prior alert. For example, if the value of a trigger point
rapidly increases, the non-repetition interval does not filter a HiHi alert from being sent
because of a recently sent High alert. Similarly, the non-repetition interval would not
prevent a High alert from being sent because of a recently sent Low alert.
To specify no non-repetition interval, enter zero in the Non Repetition Interval box.
If both a resend interval and a non-repetition interval are specified, the resend interval
must be longer.
The figure below illustrates how setting a non-repetition interval affects how PI
Notifications sends alerts.
66
Standard Notification Content
Use content to populate and customize the notification message. Each subscription can
request different data to be delivered with the notification message, and the Content tab lists
all the data that will be collected and may be sent with the notification message.
Standard content is general information about the notification and the underlying trigger,
and it is always sent with a notification message. The standard content for a notification
cannot be removed or edited. It includes:
• Name: The name of the notification which fired.
• Description: The description of the notification which fired.
• Target: The name of the target element that caused this excursion.
• Start Time: The time at which the value first entered the alert state.
• End Time: The time at which the value left the alert state.
• Trigger Time: The time at which this notification event was sent.
• Trigger Value: The value of the attribute or expression at the trigger time.
• Escalation Level: If you are using an escalation queue, the number of people who have
been notified regarding this excursion.
• Priority: The priority associated with the trigger condition.
2. Define the constant value in the text box of the Add Value dialog box.
68
Configure Custom Notification Content
3. Click OK.
4. Open Notifications view to see the constant value included in the Content tab.
1. Right-click anywhere on the Content tab, select Add > Attribute Value.
2. Click the attribute value type to select an attribute from the tree in the Choose an
Attribute dialog.
3. Click OK.
70
Configure Custom Notification Content
4. Open Notifications view to see the attribute value in the Content tab.
a. (Optional) In the Display Name box, enter a name for the link that displays in the
content.
b. Enter the URL for the Web address in the Link Address box.
72
Configure Custom Notification Content
3. If you want to add parameter and value pairs (Parameter=Value) to your URL, click Add
to open the Add Parameter and Value dialog box.
The parameter and value pair display in the Add Link Content dialog.
4. Open Notifications view to see the Web link on the Content tab.
You can include PI Notifications content that generates a clickable link to an RtReports
report.
To add an RtReports Link to the notification:
1. Right-click anywhere on the Content tab, select Add > Web Link > RtReports.
74
Configure Custom Notification Content
a. In the Display Name box, enter a name for the link to the RtReports.
b. Enter the name of the server where the RtReports are stored in the RtReports Server
box.
c. To log into the RtReports Server as a different user, click the Connect As button.
d. Select an RtReports template from the list of RtReport Templates.
3. Click OK.
4. Open Notifications view to see the RtReports link on the Content tab.
PI Notifications provides an instant RtWebParts trend that allows you to create a link to an
RtWebParts page. In the first case, you get a link to an RtWebParts trend which shows you a
trend of inputs to and the outputs from the notification rule. In the latter case, you can
configure a link to an RtWebParts page and PI Notifications sends you the link.
To add an RtWebParts trend to the notification:
1. Right-click anywhere on the Content tab, and then select Add > Web Link >
RtWebParts.
2. Use the RtWebParts dialog to name the link, select the link address, and choose the
content you want to include.
76
Configure Custom Notification Content
Configure a File
2. To configure File content, use Windows Explorer to navigate to the file you want to add.
3. Open Notifications view to see the file you added included on the Content tab.
1. Right-click anywhere on the Content tab, select Add > File Link.
2. To configure File Link content, use Windows Explorer to navigate to and select the file
that you would like included as a link in the notification.
3. Open Notifications view to see the file you added included on the Content tab.
Note: The file link cannot be a local file path. It must be a Universal File Convention
(UNC) file path of the form \\ComputerName\SharedFolder\File.
To edit existing custom content, right-click the content and click Edit.
To delete existing custom content, right-click the content and click Delete.
78
Organize Notification Rules
Category: A category is a user-defined name that groups notification rules together. For
information on adding a notification rule to a category, see Create a Notification Rule (page
54). For information on adding categories, see Create a Category (page 80).
To organize notification rules by category, click the Folder icon ( ) and select Category
from the drop-down menu.
Status: The status of a notification rule is either inactive, ready, running or error. Inactive
notification rules are not configured to run and do not calculate. Ready notification rules are
enabled and begin calculating as soon as PI Notifications Service is started for this database.
Running notifications are currently calculating on PI Notifications Service. Error
notifications encountered a problem when attempting to start.
To organize notification rules by status, click the Folder icon ( ) and select Status from
the drop-down menu.
Select None from the drop-down menu if you do not want to organize the notification rules.
To view the notification rules within a folder, expand the folder. Close the folder by clicking
the Minimize button (-) next to the folder.
Create a Category
Use element categories to organize notifications. You can either create categories in the
Library or on the fly as you edit a notification.
To create an element category in the Library:
1. Click Library in the Navigator panel in PI System Explorer.
2. Click the Categories node to open it.
3. Right-click Element Categories and click New Category.
4. On the Element Category Properties dialog, enter a name and description for the
category, and click OK.
5. Click Check In
To create an element category while editing a notification:
1. Click Notifications in the Navigator panel in PI System Explorer.
2. Click the notification to edit.
3. On the Overview tab, click the Folder icon next to the Categories box.
4. Enter a name for the category you want to use or create in the Names text box of the
Category Selection dialog box.
80
Start a Notification Rule
6. Click Check In
Note: You must have Write Data access to reset a notification. For more information, see
Manage Notification and Contact Security. (page 115)
Notification Templates
PI Notifications allows you to build many similar notification rules by creating a notification
rule template for an element template.
For example, if you have a set of pumps with a similar structure, you might want to monitor
their conditions with a similar set of notification rules. You create an element template for the
pumps and use the element template to create elements for each pump. By creating a
notification template and specifying the element template as the target, you can build
notification rules simultaneously for all the pumps.
To create a notification template, you specify the same kind of information as for a
notification rule: the target element template, the triggering conditions, the time rule, the
subscribers, and optional custom content and categories. In addition, you need to specify how
you want to create individual notifications. You can:
• Automatically create a notification for each element and start it: This option creates
and starts a notification rule for each new element that you create from the target element
template. Notifications for existing elements from the element template must be created
manually.
• Automatically create a notification for each element: This option creates a notification
rule for each new element that you create from the target element template, but you must
start each notification rule manually. See Start a Notification Rule (page 81).
• Do not create a notification automatically: If you choose this option, you must
manually create the notification rule for each element that uses the target element
template. If you create a new element from the element template, you must create the
notification rule manually. See Manually Create a Notification Rule from a Template
(page 84).
Note: For the automatic options, PI Notifications creates the notification rules solely for
new elements that you create from the target element template. Notification rules
for existing elements must be created manually.
Custom content that you add to a notification template is sent with all notification rules that
are based on that template. Use the procedures in Configure Custom Notification Content
(page 67) to add custom content to a notification template.
Note: You can add custom content to individual notification rules that are based on a
notification template, but you cannot remove custom content that is specified by
the template.
82
Notification Templates
1. In PI System Explorer, click Library in the Navigator panel to display the templates in
the current database.
2. If necessary, click the Templates node to expand it.
3. Right-click the Element Templates node and select New Template.
4. On the Overview, Attribute Templates, and Ports tabs, add information that is
appropriate for the element.
If you have previously created a notification rule for an AF element, you can create a
notification template from the rule:
1. In PI System Explorer, click Notifications in the Navigator panel.
2. In the Browser pane, right-click the notification to use as the basis of the notification
template and click Convert to Notification Template.
3. If an element template does not yet exist for the notification template, click Yes to create
the element template and transfer to the Library.
4. In the Notifications pane, you see a new notification rule for each element that you
selected.
5. For each notification rule that you created:
a. Click the Overview tab and enter the name and description for the notification rule.
b. (Optional) Customize the Time Rule and other Options on the Trigger tab. See
Configure Notification Rule Triggers (page 55).
c. (Optional) Subscribe additional contacts to the notification rule. See Subscribe
Contacts to a Notification Rule (page 89).
d. (Optional) Customize the content that is sent when the notification is triggered. See
Configure Notification Content (page 67).Custom (page 67)
e. (Optional) Add this notification to a category. Adding categories to a notification rule
helps you organize your notification rules. See Organize Notification Rules (page 78)
for details.
84
View or Edit Notification Rule Security
1. Right-click a notification rule in the Notifications browser and select Security from the
drop-down menu.
2. Select users and set permissions as needed in the Permissions for Notification Rule
Name dialog box.
Note: To have Write access to a notification rule, you need to have Write access to both
the rule and the rule’s database. To edit the database security, right-click the
database in the Select Database dialog box, click Security, and edit the
Permission for Database dialog.
To export all of the notification rules in the database, complete the following procedure:
Note: To exclude the import of notifications into another database, you must edit the
exported XML file.
86
Deploy a Notification Rule
Also, when you import such a file, parameters with default values in the source rule
are not overwritten on the target database. For example, suppose you export a
notification rule without marking the Default Values check box. The resend interval
specified for the notification rule has the default value of zero, but this default is not
included in the export file. After you have exported the notification rule to a target
database, you change the resend interval to 60 seconds on the target database. Now, if
you re-export this rule, the resend interval is not overwritten and remains 60 seconds.
On the other hand, if you mark the Default Values check box, the resend interval is
overwritten and reset to zero.
ο Unique IDs: Select this option to include the unique ID of each object in the export.
Its primary purpose is to allow you to rename an existing object. With this option,
you can rename existing notification rules during import to the same database. Unless
renaming is required, it is more efficient to leave this option turned off. It does not
allow Unique IDs to be imported into a new database. However, it can be used by an
external application for getting access to the Unique ID of the object, and it may
allow for faster lookup of objects during import back into the same database than
using either a name or a path—this is particularly true for elements with long paths.
However, exporting Unique IDs when moving objects from one database to another
will slow down both export and import.
Note: Neither the states nor the state groups used in the trigger are exported in this
process. Since a missing state is dynamically added to the target PI System
when the PI Notifications Service runs a notification rule, this is not an issue
as long as the missing state does not belong to a state group. If it does belong
to a state group, create the missing states and groups on the target PI System
manually.
To import notification rules, you must have permission required to create notifications—write
access to the notifications collection.
To import notification rules:
1. Navigate to the database where you want to import notification rules.
2. Navigate to the XML file created by exporting notification rules.
3. Right-click on any notification in the Notifications browser and select Import from the
drop-down menu.
4. Use the Import dialog box to create notifications from the XML file you exported. Select
from the following import options:
ο Allow Create: Select this option to allow new objects to be created during the
import. If you intend to update only existing items, you can turn this option off to
prevent accidental creation of new objects.
ο Allow Update: Select this option to allow existing objects to be updated. If you
intent to add only new items, you can turn this option off to prevent accidental
overwrite of existing objects.
ο Automatic Check In: Select this option to automatically check in objects during the
import. This is strongly recommended if you are importing a large number of objects,
as it reduces the maximum memory requirements of the import operation.
5. Click OK.
6. Use PI System Explorer to access the notifications from the database where you deployed
the notifications.
88
Chapter 6
Delivery Endpoint
• Retry interval: If an attempt to send the notification fails, specifies the amount of time
before resending the notification.
• Maximum Retries: Specifies the maximum number of times to attempt sending the
notification.
Depending on the delivery channel for the endpoint, you might need to specify additional
options. For more information on the configuration of specific delivery channels, see
Configure Delivery Channels (page 95).
The first time you subscribe a linked delivery endpoint to a notification rule, a dialog displays
to prompt you for configuration information. For example, the following dialog displays for
an email delivery endpoint:
If an Active Directory account does not exist for a contact, you need to create a Custom
Contact (page 92).
Group Contact
90
What is a Notification Contact?
Note: A group contact differs from a delivery endpoint that is linked to an Active
Directory (AD) group. You cannot specify multiple or automatic acknowledgments
for a linked AD group, because the AD group is a single delivery endpoint.
Although notifications are sent to all members of the linked AD group, PI
Notifications can receive only one acknowledgement from the group.
Note: To delete a contact from the Contacts box, click the contact and then click Delete
, or right-click the contact and click Remove.
Escalation Team
5. Specify the action to be taken if the notification is not acknowledged after being sent to
all contacts on the escalation:
ο Do nothing sends no further notifications to team members.
ο Repeat N times repeats the escalation process up to N times until the notification is
acknowledged.
ο Repeat while active repeats the escalation process indefinitely until the notification
is acknowledged or the notification rule is inactivated.
6. To add contacts to the escalation team, click to display the Add Contacts dialog,
select the contacts to include, and then click OK. Alternatively, drag contacts from the
Contacts pane onto the Contacts box.
7. Specify the correct order for the escalation chain by ordering the list of contacts in the
Contacts box. Use the Up arrow ( ) and Down arrow ( ) to move the contacts
within the list.
Note: To delete a contact from the Contacts box, click the contact and then click
Delete
92
Search for Contacts
5. Select the delivery channel and configure as appropriate for the delivery channel:
ο Email: See Configure an Email Delivery Channel (page 95)
ο Web service: See Configure a Web Service Delivery Channel (page 97)
Note: Your system administrator might provide additional delivery endpoints for all
contacts in addition to the email endpoint that reads from the contact. You can
change the configuration of these endpoints but cannot delete them.
• Description
• Department
To search for a contact:
1. Click the Search or the New Search node to search for a contact to view.
2. Specify the parameters for your search in the Search Contacts dialog.
If you do not find a contact, you might need to create a custom contact.
94
Configure Delivery Channels
For information on creating delivery channels, see the PI Notifications Programmer's Guide.
PI Notifications sends email messages to normal email boxes as well as to pagers that have
email capabilities. When configuring a subscription that sends a message using the email
delivery channel, you can specify either an address or an exchange server to resolve an email
address.
For the overall configuration of this delivery channel, the SMTP server and port and the
default From Address need to be specified. If Microsoft Exchange Server is being used to
resolve email addresses, the Microsoft Exchange Server needs to be specified.
There is very little involved in configuring the email delivery channel. When a subscriber is
selected from the Contacts palette and the contact’s email method is specified, the email
delivery channel is used automatically. The email delivery channel is configured when you
install PI Notifications. You can change these global settings later in the PI System Explorer.
To configure the global settings of the email delivery channel:
1. In Contacts view, click Tools > Delivery Channel Plugins. Alternatively, click Tools >
Notification Settings in Notifications view.
96
Configure Delivery Channels
For example:
To use this delivery channel you must first obtain a Web service and host it on a Web server
that is available to your PI Notifications Scheduler Service. There are many Web services
commercially available, and many development environments offer templates and other tools
to develop custom Web services.
PI Notifications can call any Web service method available, and can provide any of the
configured standard or custom content, subject to format restrictions. For example, a Web
service might not be able to make use of an attached file.
PI Notifications can call a Web service. When configuring a subscription that calls a Web
service, you can specify the Web service URL, the Web service method to call, and the Web
service method parameters. When a notification is triggered, the Web service is called.
To configure the Web services delivery channel:
1. In Contacts view, create a new delivery endpoint. Give your delivery endpoint a name
that is identifiable as the interface to your Web service.
Note: Each delivery endpoint with a Web service delivery channel is autonomous. There
are no global configuration parameters for this delivery channel.
98
View and Edit Contact or Notification Contact Security
2. Select users and set permissions as needed in the Permissions for Notifications dialog
box.
Note: You need the Admin access to modify the security permission for a custom contact
or notification contact. Security from the drop-down menu is grayed out for an
Active Directory contact.
100
Customize Acknowledgements for a Notification Rule
Note: You cannot exclude content that was derived from the notification template.
You can copy settings from any email subscriber to other email subscribers. To copy settings:
1. In Notifications view, click the Subscriptions tab.
2. Right click the subscriber you want to copy settings from, and then select Copy Settings
to other Subscribers. You see the Copy Delivery Endpoints Settings dialog:
102
Unsubscribe from a Notification Rule
3. Select the check boxes for the subscribers whose settings you want to change. To select
all subscribers, click Select and then click Select All. For example:
4. In the Settings to copy pane, select the group of subscriber settings that you want to
copy. To copy all settings, right-click the pane and select Select All.
Note: In groups of settings that contain multiple settings, all settings in the group are
copied to the target subscribers. In this example, the subscriber Bob Smith_email
has Include Standard Content enabled, while Include Trigger Input and Link
are disabled. All three settings are copied to the subscribers JD Hogg_Email and
Rudy Wells_email.
Note: You can also click the contact, and then click Unsubscribe .
Note: This only works if you are using contacts imported from Active Directory to
subscribe to notifications.
2. Look in the MyPI browser to see a list of the notifications you are subscribed to.
3. Select a notification in the MyPI browser to display its details in the Viewer pane.
Note: When you first log into PI System Explorer and select MyPI, the history for all the
currently running instances of all of your Notifications are displayed in the MyPI
viewer. You can select any notification in the MyPI browser to display the history
for only the selected notification. See View Notification Rule Events (page 105) for
details.
5. Click Go .
The following columns appear in the History view:
ο Start Time: Time the notification instance event began.
ο End Time: Time the notification instance ended. This does not apply to active
events.
106
View Sorted Notification Instances
ο Duration: The total time range that the notification instance was active. Or, total
time the notification event was in the state indicated to the immediate right of the
duration column. This does not apply to events that are still active.
ο State: The state assigned to the notification by the person who configured the
notification.
ο Priority: The priority assigned to the notification by the person who configured the
notification.
ο Acknowledged: Indicates if a notification has been acknowledged by Yes, No, or—
for notifications that are configured to be automatically acknowledged—N/A.
ο Action: Records details about the Acknowledgment or State of the Notification.
ο Contact: Indicates the PI Notification Contact that the Notification was sent to.
Note: The time of day must be entered into the Start Time and End Time boxes
manually. The default start time is *, and the default end time is t.
5. Click Go .
The following columns appear in the History view:
ο Start Time: Time the notification instance event began.
ο End Time: Time the notification instance ended. This does not apply to active
events.
ο Duration: The total time range that the notification instance was active. Or, total
time the notification event was in the state indicated to the immediate right of the
duration column. This does not apply to events that are still active.
ο State: The state assigned to the notification by the person who configured the
notification.
ο Priority: The priority assigned to the notification by the person who configured the
notification.
ο Acknowledged: Indicates if a notification has been acknowledged by Yes, No, or—
for notifications that are configured to be automatically acknowledged—N/A.
ο Action: Records details about the Acknowledgment or State of the Notification.
ο Contact: Indicates the PI Notification Contact that the Notification was sent to.
When you use the History Viewer, you may select from the following options to configure
the History Viewer display:
• Show contact events: Show all contact events.
• Show Search: Decide whether a search control is displayed in the History Viewer.
• Show Timeselector: Determine if you can select the time range you want to look at.
To use these options:
1. Right-click a notification.
2. Select one or more of the options.
In addition, you may expand or collapse the details of each notification instance displayed in
the History Viewer. Select from one of these options:
• Expand All: Open up the tree view to view the details of each notification instance.
• Collapse All: Close the tree view to view only the main information about notification
instances.
Sort History
You can sort the history by any column. For example, you click on the Duration column
header to sort all the instances by the duration.
Search History
You can search for a particular instance by typing a keyword in the search dialog above the
Notification Viewer column headers. For example, if you type Low, only the rows containing
the word Low show up. The search is case-insensitive.
If you do not see the search dialog, right-click and select Show Search to display the dialog
box.
108
Acknowledge and Comment
When you acknowledge a notification instance, you want that no further notification be sent
to subscribers. Escalation is halted. In many cases, you have taken some action as a result of
the notification.
To acknowledge a notification instance:
1. Right-click any of the events within the notification instance and select Acknowledge
Instance from the drop-down menu.
2. Optionally, leave a comment.
3. Click OK.
The option Acknowledge Instance is unavailable if:
• The instance has already been acknowledged, either automatically or manually;
• The instance is closed (that is, not active); or
• You do not have the WriteData access to the notification rule.
Acknowledge a Subscription
Acknowledging a subscription indicates that you have received a notification. Only you can
acknowledge your own notification. Depending on the subscription configuration for the
notification rule, acknowledging a subscription may trigger an acknowledging of the
notification instance.
To acknowledge a subscription (for example, an event sent to a subscriber):
1. Right-click on the subscription event and select Acknowledge Subscription from the
drop-down list.
2. Optionally, include a comment.
3. Click OK.
The option Acknowledge Subscription is not available if:
• The subscription has already been acknowledged;
• The instance is closed (that is, not active); or
• You are not the same Active Directory contact as the one for the subscriber.
You can comment on an active or existing notification instance if you have Write Data access
to the notification rule. You may comment on a notification instance without acknowledging
the notification.
To comment on a notification listed in the History view:
1. Right-click on any event within a notification instance and select Add Comment from
the drop-down menu.
2. Enter a comment.
3. Click OK.
110
Chapter 8
• About Desktop Alert: Displays a dialog box with the version number of PI Desktop
Alert.
• Preferences: Opens the Desktop Alert Preferences dialog box, where you configure
Desktop Alert. For more information, see Configuring Desktop Alert (page 112).
• Exit: Exits the application.
112
Configure Desktop Alert
ο The Enable audible alerts check box is where you enable or disable alerts from
making sounds.
ο Optionally, click on each type of notification event for which you can assign a sound
(for example, New Notification), and browse for a sound file to associate with the
notification event.
ο Under Play new notification sound, specify the number of times the notification
should repeat, or click the Until notification ends button. By default, the New
Notification sound plays either three times or until another notification fires. The
Notification Ended sound plays once.
ο For Repeat delay, specify a number of seconds as the amount of time a sound should
be delayed before it is repeated.
3. Click the Connections tab. On this tab, select and add PI Systems to monitor.
ο If you would like to monitor a listed PI System through Desktop Alerts, check the
box next to its name.
ο To show the properties of a PI System, click the name of the PI System and click the
Show Properties button.
ο To add a new PI System, click the Add button.
ο To delete a PI System from the list, click the name of the PI System and click the
Delete button.
Note: After Desktop Alert is configured, you can right-click the Desktop Alert Normal
icon on your toolbar and select Preferences to access the PI Notifications
Desktop Alert Preferences.
• View in PI System Explorer: Select to launch PI System Explorer and display the
details of this notification.
• Disable alerts for this notification rule: Select to stop receiving alerts for the
notification rule.
• Disable all desktop alerts: Select to disable all desktop alerts.
• Desktop alert settings: Select to open the Desktop Alert Preferences dialog box. For
more information, see Configuring Desktop Alert (page 112).
114
Chapter 9
New notification rules and contact objects created within PI Notifications inherit their
respective default security settings. You may change these default security settings for
notification rules and new contact objects. Such changes apply only to new notification rules
and contact objects; the changes do not apply to existing notifications and contact objects.
You may change security settings for individual notification rules and contact objects.
Summary of Permissions
Notifications View
To see a notification rule in Notifications view, you must have Read access.
Write access gives you the ability to modify configuration data shown in the Overview,
Trigger, and Content tabs. Without Write access, all tabs are read-only.
If you have the Subscribe and Write accesses, you may subscribe or unsubscribe yourself.
SubscribeOthers access grants you permissions to subscribe or unsubscribe others.
Read Data access allows you to view the history on the History tab.
With Write Data access, you can comment on a notification or acknowledge a notification
rule instance.
Contacts View
You cannot modify the security settings for a contact object that derives from an Active
Directory entry. Your ability to view these contacts is determined by the login user and
security setting for the Active Directory entry. You cannot delete it from PI System Explorer.
You must have Read access to view any custom contact, delivery endpoint, individual
notification contact template, group notifications contact template, or escalation notification
contact template.
To modify a contact object you must have Write access; to delete contacts you must have
Delete access.
Note: It is important to understand that some of the events displayed on the History tab
point to contacts. Therefore PI Notifications cannot display information about
deleted contacts.
PI Notifications imports any available Active Directory information upon installation. For
more information about Active Directory, including how to configure an Active Directory,
see Configuring an Active Directory in the PI System Explorer User Guide.
116
Manage Notification and Contact Security
To view and edit the default security for new contact objects, open Contact view and select
Tools > Default Contact Security.
To view and edit the default security for new notification rules, open Notifications view and
select Tools > Default Notification Security.
118
Manage PI Notifications Service
in for the new delivery endpoint. For information on creating and registering these plug-ins,
see PI Notifications Programmer's Guide.
The PI Notifications Service does not necessarily have to run on the same machine that is
running the AF server, the PI server, or client applications. Only one instance of the PI
Notifications Service can run on a single machine at any one time.
Multiple service instances can be started simultaneously on multiple machines to process
notifications on one AF server, each configured to run notification rules on an arbitrary
number of AF databases.
A single instance can run notification rules within an arbitrary number of databases on the
same AF server; the Windows service spawns as many instances of the processor as required
automatically to run the notification rules. If you configure multiple instances to run the same
database, only one of the instances runs the notification rules in the database—the other
instances are in the backup mode.
Note: Since the PI Notifications Service uses the Windows Communication Service and
Windows security for authentication and authorization, it is important to configure
the Windows service to run under a domain account.
Service Behavior
When you start an instance of PIAnalyticsScheduler service, it first determines its role. If a
primary service has not been started, it becomes the primary service. If a primary service has
already been started, it becomes the backup service if the following conditions hold:
• There is currently no backup service.
• This instance can be used as a primary service.
Otherwise, it becomes the secondary service.
After determining its role, it determines a list of notification rules to run. The primary service
determines the list of notification rules each service instance needs to run. The service
instance spawns as many instances of PIAnalyticsProcessor to execute the notification rules.
When starting a notification rule, PIAnalyticsProcessor retrieves its history so that it has the
same states as when it was stopped. However, it does not re-process all the events between
when the notification rule was stopped and the current time. When PIAnalyticsProcessor
receives an event whose timestamp is before the end of last notification instance or the start
of an active notification instance, the event is ignored.
If PI Notifications Service runs on a different machine from that for the AF Service, you
should configure PI Notifications Service to run under a domain account. If PI Notifications
Service runs on the same machine, you may configure it to run under the LocalSystem
account.
The account under which the PI Notifications service runs should have Read, Write, and
Execute rights to all the notification rules it is configured to run.
Edit PIAnalyticsScheduler.exe.config
The relevant portion of the configuration file for PIAnalyticsScheduler.exe and a table of
configurable parameters are shown.
<?xml version=1.0 encoding=utf-8 ?>
<configuration>
<ANCustomSection
TargetSystem=stargate
TargetDatabases=Production", Test
TraceSwitch=Error,Warning,Information
TCPPort=5458
FailoverTime=00:10:00/>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name=PIAnalyticsTcp
maxConnections=10000
portSharingEnabled=false
openTimeout=00:01:00
receiveTimeout=00:10:00
sendTimeout=00:01:00>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
120
Manage PI Notifications Service
Edit PIAnalyticsProcessor.exe.config
The only configurable parameter for PIAnalyticsProcessor is TraceSwitch.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="TraceSwitch" value="Error,Warning,Information"/>
</appSettings>
</configuration>
Note: All instances of PI Notifications Services that connect to the same AF server must
be running the same version of PI Notifications Services.
122
Manage PI Notifications Service
High Availability
You want to configure redundant PI Notifications services to provide a high level of quality
of service. You would need to determine the number of instances you would like to run. Once
you have the PI Notifications installed on these machines, you would specify the same
TargetSystem and TargetDatabases in PIAnalyticsScheduler.exe.config for all instances. For
example, the PI Notifications service runs the notifications configured in AFDatabases
Production and Engineering on the AF server Stargate.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<ANCustomSection
TargetSystem="stargate"
TargetDatabases="Production, Engineering"
TraceSwitch="Error,Warning,Information"
TCPPort="5458"
FailoverTime="00:10:00"/>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="PIAnalyticsTCP"
maxConnections="10000"
portSharingEnabled="false"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00">
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
</configuration>
You can stop and start your test notification rule and/or your service instance at will without
affecting the current operations.
Security Isolation
Notification rules may have different security requirements and in some cases, you may not
want or it may not be possible to run all of them from one machine. In this case, you want to
124
Configure System-Wide Parameters
separate the notification rules with different security requirements into separate AF databases.
You configure different instances to run them according to the different security needs.
Archiving
PI API:
Trust = PIAnalyticsProcessorAPI
AppName = pianE
IPAddr = IP Address for the computer where PI Notifications
NetMask = 255.255.255.255
PIUser = PIAnalyticsUser
The above trusts may be sufficient if PIAnalyticsUser has the privileges to create tags on the
history PI Server.
• Notification states and groups: When you create a new state, it is available to all
databases within the same AF Server.
• History PI Server: The history for all notification rules within one AF Server regardless
the databases they are in is stored in the same history PI Server.
• Acknowledgment Page.
• RtWebParts Server.
• Email Delivery Channel configuration.
You can configure a structure to the notification states that you assign. This gives you the
ability to specify that one state is preferred over another. For instance, if High and Hihi are
both true, use a group to specify that Hihi is more important and should be fired in place of
High. When a notification rule goes from preferred state to a lower priority state, a
notification will not be fired.
1. Click Tools > Notification Settings.
2. In the Notification Settings dialog box, on the State Group Configuration tab,
configure state group settings as desired.
126
Configure System-Wide Parameters
Note: If a state is deleted, it can be restored by adding a new state with the same name
as the deleted state.
If State Groups were not used in this case, another alert would be triggered when you return
to the High State from the Hihi state.
To create and use a new state group named High Group:
1. From the Tools menu, click Notification Settings.
2. In the Notification Settings dialog box, on the State Group Configuration tab, click the
New State Group button. Name the new state High Group and click OK.
3. In the Notification Settings dialog box, on the State Group Configuration tab, click the
New State button. Name the new state High, set the default priority to Normal, and
assign High Group as the state group.
4. Using steps similar to those already used in this procedure, create a new state named Hihi
and add it to the High Group state group.
5. Make sure the states are in the correct order (Hihi above High). Use the up and down
arrows to place them correctly if necessary.
6. Click OK on the Notification Settings dialog box. You can now use these states in a
notification.
128
Configure System-Wide Parameters
7. Create a new notification or open a notification that already exists. Create a comparison
condition that corresponds to the highest test you want to perform. Select High Group for
State Group and Hihi for State.
8. Create another comparison condition for the lower test you want to do. Select High
Group for State Group and High for State.
130
Configure System-Wide Parameters
1. From the Tools menu, click Notification Settings. You see the Notification Settings
dialog:
Troubleshoot PI Notifications
This chapter answers frequently asked questions with regards to installation, running
notification rules (page 134), subscribing to notification rules (page 140), acknowledging and
commenting on notification rule events (page 141), and viewing notification rule events (page
144). It also describes available troubleshooting tools (page 145).
Installation
PI Notifications Service may have been previously configured from another instance of the PI
Notifications Service. During the installation, you cannot change the configuration of the
supporting information for the PI Notifications Service.
Make sure the PI Notifications Service is running and is configured properly. For more
information, see Manage PI Notifications Service (page 119).
134
Run Notification Rules
5. If you are using an IIS SMTP Virtual Server you will need to configure the SMTP server
to allow Relay from the computer that is running the PI Notifications Service. From
Computer Management, right-click the default SMTP Virtual Server and select
Properties. Click the Access tab and click Relay.
Add the computer that is running the PI Notifications Service to the list of allowed
computers.
136
Run Notification Rules
6. Many virus scan programs will block port 25 in order to prevent mailing worms. Make
sure this port is not blocked on the computer running the PI Notifications Service.
7. Your emails could be going into your Junk folder. To fix this in Microsoft Exchange
Server, go to Actions > Junk Email > Junk Email Options. Select the Safe Senders
tab, and add the sender email of PI Notifications.
• Check the Notify on change in status option. When enabled (the default), you are
notified only if the output value changes. See Configure Notification Rule Triggers (page
55).
• Check the Time True evaluation options. If the Time True Evaluation is set to Natural,
the notification will not check the time true parameter until a new event comes in. Use
Clock if you want to re-evaluate when the time true expires.
• Check the non-repetition interval (page 65). Notifications of the same or lower priority
will not be resent if the non-repetition interval has not expired.
• Check the states and groups of the all the conditions. It is possible that the condition you
are firing is in the same state group as the previous state of the notification, but of lower
severity within in the group. In that case, the state of the notification would change, but
no notification is sent.
138
Create or Edit a Notification Rule
Even if the state has not changed, you may get multiple emails under the following scenarios:
• You have the Notify only on change in status box unchecked. When unchecked, you
would receive an email whenever the notification rule receives a trigger event (for
example, an input snapshot for the natural time rule is used). This is independent of
whether you have acknowledged the notification event.
• You have configured a positive value for the resend interval. You would receive an email
for every resend interval until you have acknowledged the notification event.
• The priority has changed. Two notification states are the same only if and only if they
have the same state and priority.
Check if the top level group in the Subscriptions tab is set to auto-acknowledge. If this is the
case, the first level person in an escalation team will be notified, then the notification will be
acknowledged and therefore will not escalate. See Customize Subscriptions to a Notification
Rule (page 101).
You need to have the write access for the default notification security and for the AF
database where you want to create a notification rule.
To change the default notification security:
1. Open PI System Explorer and click Notifications in the browser.
2. Click Tools > Default Notification Security.
3. Edit the security settings in the Permissions for Notifications dialog box, and click OK.
To change the AF Database security:
1. Open PI System Explorer.
2. Click the Database button on the toolbar.
3. In the Select Database dialog box, right-click the name of the database and select
Security > Database.
4. Edit the security settings in the Permissions for Configuration dialog box, and click
OK.
I cannot edit a notification rule even if I have the full access to it.
You need to have the write access to the notification rule and to its AF Database.
If you can't subscribe to a notification, check your security settings. To do this, right-click the
notification that you want to subscribe to, select Security, and verify that you have permission
to Subscribe (if you want to subscribe yourself) or SubscribeOthers (if you want to subscribe
other users).
140
Acknowledge and Comment on Notification Rule Events
Check if the top level group in the Subscriptions tab is set to auto-acknowledge. If this is the
case, no one will ever be notified. See Customize Subscriptions to a Notification Rule (page
101).
There are a few possible problems and solutions to this behavior. Review the following
questions to narrow down the solution to the situation you are experiencing.
142
Acknowledge and Comment on Notification Rule Events
3. Press Enter.
Note: For full details, see the Microsoft article Running 32-bit Applications on 64-bit
Windows (http://technet2.microsoft.com/WindowsServer/en/library/ee52acd2-
84e0-417c-92b3-80b1cb3848281033.mspx?mfr=true).
4. Install ASP.Net (32-bit version) by typing the following in the command window:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -
i
The PI Server where events are archived must have a PI Trust set up to allow data writing via
PI API for each of the PI Notifications service instances. For more information, see the PI
Server System Management Guide.
Security
I accidentally changed the security for a notification rule so that no one can
change the security settings or edit it.
This may involve changing the SQL tables storing the notification rule. Contact our technical
support for guidance.
I see Default Notification Security on the Tools menu and Security >
Notifications on the selected AF Database. What is the difference?
When you change the default notification security, we make sure the notification rules and
their dependent objects share the same security settings. When you modify the security for
notifications from Security > Notifications, the security for their dependent objects is not
modified and may not have the same security settings, resulting in inconsistent behavior.
Thus, it is recommended that you should always change the default security for notifications
from Tools > Default Notification Security.
I see Default Contact Security on Tools menu and Security > Contacts on
the selected PI System. What is the difference?
When you change the default contact security, we make sure the contact objects and their
dependent objects share the same security settings. When you modify the security for
contacts from Security > Contacts, the security for their dependent objects is not modified
and may not have the same security settings, resulting in inconsistent behavior. Thus, it is
recommended that you should always change the default security for contacts from Tools >
Default Contact Security.
144
Tools
followed by
Check the firewall setting for the machine where the AF Service is running. The following
ports needs to be opened: 139 and 445.
By default, PI Notifications uses the port 5458 to communicate among all its applications.
The port is configurable. It communicates with an AF Server via port 5457 and a PI Server
via 5450. To retrieve contact information, the AF Server communicates with Active
Directory. The ports 139 and 445 may also need to be open in some operations.
Tools
Message Logs
By default, PI Notifications applications write messages to the central log file for the PI
Message Subsystem on the machine where the application runs and can be retrieved using the
pigetmsg utility. See the PI Server System Management Guide for details. You can control
the message log levels in two ways: (1) through the application configuration file or (2)
through notification rule settings configured with the Notification add-in to the PI System
Explorer (REF). The latter is useful for troubleshooting an issue for a notification rule.
You can dynamically set the debug level for a notification rule while it is running. Set the
debug level within the PI System Explorer:
2. Select the appropriate message filter(s) in the Test Notification dialog box. Click OK.
Performance Counters
PI Notifications Service creates the following counters for each notification rule:
• Contact Events Acknowledged: Number of events that have been acknowledged since
start.
• Contact Events Escalated: Number of events that have been escalated since start.
• Contact Events Sent: Number of events sent to contacts since start.
• Contact Events Sent With Error: Number of events sent to contacts with error since
start.
• Events Before Last Instance Received: Number of events received with timestamps that
are earlier than the last notification instance.
• Events Received: Number of events received since start.
• Instances Acknowledged: Number of notification instances that have been
acknowledged either manually or automatically since start.
• Instances Generated: Number of notification instances generated since start.
• Number of Notifications: Number of notifications currently running on the computer.
• Queued Instance Events: Number of events currently waiting to be processed.
146
Tools
These counters are under the performance object PI Notifications. You can view it with the
Windows Performance Monitor. On Windows XP and 2003, click Control Panel >
Administrative Tools > Performance. Double-click Console Root to open it, click System
Monitor, and then click the Add button on the System Monitor task pane:
The performance counter object instance list includes all the running notification rules and
_total. The instance name for a notification rule has the format of
AFDatabaseName\NotificationRuleName. The _total instance totalizes a counter for
notification rules. For example, the counter Instances Generated for the _Total instance
gives the total number of instances that have been generated since the PI Notifications
Service started for all notifications.
Migrate to PI Notifications
PI Notifications unifies all existing alarm, alert, and notification packages and expands
functionalities significantly. However, you can choose to run PI Notifications and other tools
in parallel and migrate according to your own needs.
In this release, PI Notifications allows you to migrate from the following products:
• RtAlerts: RtAlerts will be continuously supported. There is a migration tool to convert
all RtAlerts rules to notifications within PI Notifications. The Web configuration
interface is replaced by the PI System Explorer.
• PI Alarm/PI SQC Alarm: PI Alarm will be continuously supported. There is a
migration tool to convert all alarm configuration to notifications within PI Notifications.
PI SQC Alarm (also known as PI RtSQC) will be continuously supported. There is a
migration tool to convert all SQC alarm configurations to notifications within PI
Notifications. These notifications will be viewable within the PI System Explorer.
However, the PI SQC Alarm Add-In to ProcessBook is not able to view these
notifications.
• PI AlarmView: PI AlarmView will be continuously supported. The basic functionality of
AlarmView is covered in PI System Explorer within the view of notifications in MyPI.
These functionalities include searching history, acknowledgment, and adding comments.
See the document Migrate to PI Notifications, available from the OSIsoft Technical Support
site, for information on using the migration tool.
You can contact OSIsoft Technical Support 24 hours a day. Use the numbers in the table
below to find the most appropriate number for your area. Dialing any of these numbers will
route your call into our global support queue to be answered by engineers stationed around
the world.
Office Location Access Number Local Language Options
San Leandro, CA, USA 1 510 297 5828 English
Philadelphia, PA, USA 1 215 606 0705 English
Johnson City, TN, USA 1 423 610 3800 English
Montreal, QC, Canada 1 514 493 0663 English, French
São Paulo, Brazil 55 11 3053 5040 English, Portuguese
Altenstadt, Germany 49 6047 9890 English, German
Manama, Bahrain 973 1758 4429 English, Arabic
Singapore 65 6391 1811 English, Mandarin
86 021 2327 8686 Mandarin
Perth, WA, Australia 61 8 9282 9220 English
Support may be provided in languages other than English in certain centers (listed above)
based on availability of attendants. If you select a local language option, we will make best
efforts to connect you with an available Technical Support Engineer (TSE) with that language
skill. If no local language TSE is available to assist you, you will be routed to the first
available attendant.
If all available TSEs are busy assisting other customers when you call, you will be prompted
to remain on the line to wait for the next available TSE or else leave a voicemail message. If
you choose to leave a message, you will not lose your place in the queue. Your voicemail
will be treated as a regular phone call and will be directed to the first TSE who becomes
available.
If you are calling about an ongoing case, be sure to reference your case number when you call
so we can connect you to the engineer currently assigned to your case. If that engineer is not
available, another engineer will attempt to assist you.
Search Support
From the OSIsoft Technical Support Web site, click Search Support.
Quickly and easily search the OSIsoft Technical Support Web site's Support Solutions,
Documentation, and Support Bulletins using the advanced MS SharePoint search engine.
[email protected]
When contacting OSIsoft Technical Support by email, it is helpful to send the following
information:
• Description of issue: Short description of issue, symptoms, informational or error
messages, history of issue
• Message logs: See documentation for your PI System for information on obtaining
message logs pertinent to the situation.
From the OSIsoft Technical Support Web site, click Contact us > My Support > My Calls.
Using OSIsoft's Online Technical Support, you can:
• Enter a new call directly into OSIsoft's database (monitored 24 hours a day)
• View or edit existing OSIsoft calls that you entered
• View any of the calls entered by your organization or site, if enabled
• See your licensed software and dates of your Service Reliance Program agreements
152
Remote Access
From the OSIsoft Technical Support Web site, click Contact Us > Remote Support
Options.
OSIsoft Support Engineers may remotely access your server in order to provide hands-on
troubleshooting and assistance. See the Remote Access page for details on the various
methods you can use.
On-site service
From the OSIsoft Technical Support Web site, click Contact Us > On-site Field Service
Visit.
OSIsoft provides on-site service for a fee. Visit our On-site Field Service Visit page for more
information.
Knowledge Center
From the OSIsoft Technical Support Web site, click Knowledge Center.
The Knowledge Center provides a searchable library of documentation and technical data, as
well as a special collection of resources for system managers. For these options, click
Knowledge Center on the Technical Support Web site.
• The Search feature allows you to search Support Solutions, Bulletins, Support Pages,
Known Issues, Enhancements, and Documentation (including user manuals, release
notes, and white papers).
• System Manager Resources include tools and instructions that help you manage: Archive
sizing, backup scripts, daily health checks, daylight savings time configuration, PI Server
security, PI System sizing and configuration, PI trusts for Interface Nodes, and more.
Upgrades
From the OSIsoft Technical Support Web site, click Contact Us > Obtaining Upgrades.
You are eligible to download or order any available version of a product for which you have
an active Service Reliance Program (SRP), formerly known as Tech Support Agreement
(TSA). To verify or change your SRP status, contact your Sales Representative or Technical
Support (http://techsupport.osisoft.com/) for assistance.
C G
Category • 78 Glossary • 3
Check In • 50 Group Contact
Clock time true setting • 3 configure • 90
Comment • 109, 110 definition • 3
Components • 2 groups • 90
or • 64 Groups • 126
performance equation • 61
SQC • 59 H
Condition High Availability • 4, 122
and • 62 configuring • 122
comparison • 56 definition • 123
configuring • 56 upgrading PI Notifications Services • 8, 12, 13
Contacts • 2
browser • 49 I
configuring • 98
definition • 3 Installation • 8
search for • 93
view • 49 M
Content Migration to PI Notifications • 149
custom • 3 Model • 3
definition • 3 MyPI • 2
Custom Content MyPI Alert • 111
constant value • 68
file • 77 N
file link • 77
Natural time true setting • 3
RtReports Link • 74
Navigator panel • 48
RtWebParts link • 76
P
Palette • 48
PI Alarm • 149
PI AlarmView • 149
PI Clients
interaction with • 4
PI System Explorer
components • 48
launch • 47
R
RtAlerts • 149
S
Security • 5
edit contact • 117
edit notification • 85
States • 126
Subscription
add to notification rule • 100
copy settings to another subscription • 102
customize contact configuration • 102
156