Setting up the "sherlock" service
Purpose: You wish to capture service reports from the field via e-mail or JIRA.
Introduction: The OpenIZ disconnected client allows users to file bug reports complete with log file and diagnostic information attached. This service is provided by the AMI's "sherlock" service. By default, the data submitted to this service is persisted through the IDataPersistenceService<DiagnosticReport> interface. OpenIZ ships with two implementations of this service:
Atlassian JIRA - A web-based bug tracking and ticketing system
E-Mail - Which e-mails diagnostic reports via SMTP.
Applies To:
OpenIZ Immunization Management Server
Steps:
If you wish to setup the Atlassian JIRA target:
Open C:\Program Files (x86)\Mohawk College\OpenIZ\openiz.exe.config in a text editor
Register the JIRA configuration section in the header of the file under <configSections>
<section name="openiz.persistence.diagnostics.jira" type="OpenIZ.Persistence.Diagnostics.Jira.Configuration.ConfigurationSectionHandler, OpenIZ.Persistence.Diagnostics.Jira, Version=0.6.0.0"/>
Add the <openiz.persistence.diagnostics.jira> configuration section to your configuration file:
url = The endpoint for the REST services on JIRA (note: you must enable this on the JIRA server)
project = The project in the JIRA service where you want new tickets to be created
username = The user under which new tickets should be created
password = The password for the user
Add the JIRA service to the <serviceProviders> section of the configuration file
<add type="OpenIZ.Persistence.Diagnostics.Jira.DiagnosticReportPersistenceService, OpenIZ.Persistence.Diagnostics.Jira, Version=0.6.0.0"/>
Restart the OpenIZ host process: 1. net stop openiz 2. net start openiz
If you wish to setup the e-mail target:
Open C:\Program Files (x86)\Mohawk College\OpenIZ\openiz.exe.config in a text editor
Register the JIRA configuration section in the header of the file under <configSections>
<section name="openiz.persistence.diagnostics.email" type="OpenIZ.Persistence.Diagnostics.Email.Configuration.ConfigurationSectionHandler, OpenIZ.Persistence.Diagnostics.Email, Version=0.6.0.0" />
Add the <openiz.persistence.diagnostics.jira> configuration section to your configuration file:
server = The SMTP server through which mail should be routed
ssl = Whether the SMTP server requires SSL
username = The username to use when logging into the SMTP server (or empty if open relay)
password = The password to use when logging into the SMTP server (or empty if open relay)
from = The address which appears in the FROM: header
recipient/add = Adds a recipient to which diagnostic reports should be sent.
Add the EMAIL service to the <serviceProviders> section of the configuration file
<add type="OpenIZ.Persistence.Diagnostics.Email.DiagnosticReportPersistenceService, OpenIZ.Persistence.Diagnostics.Email, Version=0.6.0.0" />
Restart the OpenIZ host process: 1. net stop openiz 2. net start openiz
Last updated