Setup and Configuration of BHCS Notifications

You must be a member of the local Administrators group to configure the BHCS Notifications module.

Installing SQL Server Express

This information is provided as useful tips. SQL Server Express is a Microsoft product and is not supported by Barr Systems Support. Please consult with your Database Administrator or IT Support if you need further assistance.

  1. SQL Server Express is available for download at no cost from Microsoft.  You will need to create a profile, so that you can login to download the software. The Download Site is: http://www.microsoft.com/en-us/server-cloud/products/sql-server-editions/sql-server-express.aspx

 

  1. Select the SQL Server edition that includes Tools in either 32 or 64 bit, depending on the OS platform you are installing on. The Tools edition includes Management Studio Express, which provides a graphical user interface to the SQL database.

 

Configuration Settings for SQL Server

  1. To configure BHCS Notifications you will need to know:

a) The Server/ Instance (e.g. <servername>/SQLEXPRESS)

b) The Database Name  (e.g. BHCSMessages)

c) Authorized SQL account that can read/write to the Database

 

  1. If you are running SQL Server on the BHCS Server, first create the database:

a) Start Microsoft SQL Server Management Studio

b) From the Object Explorer pane, right-click on the Databases Folder and select New Database...

c) Fill in the Database name field with the name for the BHCS Notifications database (e.g. BHCSMessages)

d) Click the OK button

 

  1. Run the SQL script to create the BhcsMessage table:

a) The SQL script is located at C:\BHCS\Notifications\Create Bhcs Messages Table.sql on the BHCS Server.  If the SQL Server is on a different computer, then copy the SQL script to the SQL Server.

b) Open the script file (Create Bhcs Messages Table.sql) using Microsoft SQL Server Management Studio.

c) On the Toolbar change the Available Databases drop down from master to the database you are using for BHCS Notifications (e.g. BHCSMessages).

d) Highlight the open script tab which will allow you to click on the !Execute icon to run the script.

 

  1. Verify that the Commands completed successfully then expand the BHCSMessages database and verify that you created a table named dbo.BhcsMessage (note, you may need to right click on the database name and click refresh to see the newly added table).

 

  1. Proceed to Step 2 - Notifications Configuration below.


 

 

Groups and Notifications

The Addresses and Groups section defines what type of alert notifications are sent and to which users or groups they are sent. The options are to Add, Modify, and Remove.

 

You must select the Enable Notifications checkbox in order to actively use the Notifications module.

 

  1. Add: To define a new address or group of addresses, click Add.

a) From the General area, fill in Group Name, Email Address(s), and select Alerts, then click OK.

 

 

  1. Modify: To modify an existing address, select the specific address and click Modify.

a) From the General area, modify Group Name, Email Address(s), and/or Alerts, then click OK.

 

  1. Remove: To remove an existing address, select the specific address and click Remove.

 

The Custom Notifications section is where configuration of non-critical Operator Console messages occur. A notification is sent when a document is received, when a document prints, or when a specific message is logged. View the Operator Console log to help determine the type of notification and parameter values that are needed.

  1. From the BHCS Spool Window, select Tools | Operator Console.

 

 

  1. From the Operator Console message log, choose the information needed to create a custom notification (e.g. MessageID = 5806, Job name = MPSUSPI, when a job has printed)

 

 

  1. Add: To define a custom notification, click Add.

a) From the Notification Type area, choose a specific notify statement.

b) From the Parameters area, fill in any applicable fields (Template Name, Job Mask, and/or Message ID), then click OK.

 

 

  1. Modify: To modify an existing custom notification, select a specific notification, then click Modify.

a) From the Notification Type area, change a notify statement.

b) From the Parameters area, change any applicable fields (Template Name, Job Mask, and/or Message ID), then click OK.

 

  1. Remove: To remove an existing custom notification, select a specific notification, then click Remove.

 

Settings                                                                                                                                                                                                                  

The Settings Tab consists of four sections, Sender Settings, Email Templates, Excessive Alert Prevention, and SQL Database.

Click an option you want to learn more about.

 

 

  1. Sender Settings: The parameters required for sending email.

      a) SMTP Host Address (e.g. smtp.gmail.com)

      b) From Address

      c) Sender User Name

      d) Sender Password

      e) Port Number

      f) If using an SSL Secure Connection, select it

      g) Enter a valid email address into the Test Email Address field. Once all settings are completed, click Test.  

 

  1. Email Templates:Email templates provide the descriptive information that is sent in the email notification.

a) Email Template Folder field displays the default folder location. To browse the directory click Select Folder; click Open Folder to open the default location.

b) Use the Template drop-down to choose a specific template. To edit the template use the appropriate buttons, click Edit Subject and/or Edit Body.

 

 

  1. Excessive Alert Prevention: This section allows you to configure how to handle multiple occurring events.

a) Select Send all individual alerts if every single alert needs to be sent individually.

b) Select Combine all alerts if alerts need to be held and released after a specific time period.

 

  1. SQL Database: Enter the parameters for the SQL database server and database being used to log Operator Console events. Also, it is important to remember that BHCS expects the database table name to be BHCSMessage.  

      a) If SQL Express is installed on the BHCS server, choose the default setting localhost\sqlexpress as the SQL Server Name

      b) Choose a Database Name or use the default setting BHCSMessages

      c) Choosing Use Windows Authentication setting requires additional configuration:

  1. Launch the services manager (from the search bar type Services.msc, right-click and select Run as Administrator)

  2. From the BHCS Message service, right-click and select Properties

  3. From the LogOn tab, choose This Account then enter user (e.g. \Barr_Systems\Quality) and password then OK

  4. From the BHCS Message service, right-click Restart (for changes to take effect)

  5. Note: Restarting this service will stop and restart all BHCS services that are not set to disabled. Also, be sure to close the BHCS Spool Window prior to restarting the BHCS Message service. If you don’t, this service will not restart, because the Spool Window will automatically restart the BHCS Spool Core service before the BHCS Message service can restart.

  1. Launch the services manager (from the search bar type Services.msc, right-click and select Run as Administrator)

  2. From the BHCS Notifications service, right-click and select Properties

  3. From the LogOn tab, choose This Account then enter user (e.g. \Barr_Systems\Quality) and password then OK

  4. From the BHCS Notifications service, right-click Restart (for changes to take effect)

 

 

      d) SQL Server Authentication should be used only when Windows Authentication is not possible.

      e) Choose a specific number of days for purging messages... or use the default setting of 7 days

      f) Once all settings are completed, click Test SQL Connection to test database connectivity  

 

Troubleshooting

The notifications.log file in the C:\BHCS\Log folder is where information about the notifications service is recorded. If there are problems accessing the database, or sending emails, open this log with notepad.exe, or an editor of your choice, to review messages pertaining to the BHCS Notifications service. You can rename or delete this log at any time and the service will automatically create a new notifications.log file if it cannot find one.