Follow the steps below to reconfigure EventSentry to store all future data in the new PostgreSQL v9.6 database and retain all existing data inside the legacy PostgreSQL v9.1 instance.
Instructions
- Open the EventSentry Management Console
- Note down the eventsentry_svc password from the database action's connection string
- Note down the eventsentry_web password from the C:\Program Files (x86)\EventSentry\WebReports\conf\configuration.xml file (<dbPassword>)
- If using collector, stop all local EventSentry services (under Services). If not using the collector then also stop all remote agents.
- Stop the EventSentry Database service
- Stop the EventSentry Database v9.6 service
- Open regedit.exe
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventsentrydatabase
- In the ImagePath value, change 5432 to 5433
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\eventsentrydatabase96
- In the ImagePath value, change 5433 to 5432
- Start the EventSentry Database v9.6 service
- Start the EventSentry Database service
- Select the Primary Database action and click the Initialize or Update Database button
- When prompted, specify the passwords for the eventsentry_web and eventsentry_svc
- The configuration assistant should process the database without errors
- Click the Test button in the action to verify that connectivity to the database is successful
- Select Services and start all local services that were previously running. If not using the collector then also start all remote agents
- Stop the EventSentry Web Reports services
- Open a text editor like notepad as administrator
- Open the file C:\Program Files (x86)\EventSentry\WebReports\conf\configuration.xml
- Copy the <webprofiles id="1"> ... </webprofiles> section into the clipboard and paste it between </webprofiles> and </configuration>
- In the newly pasted section, make the following changes:
- Replace <webprofiles id="1"> with <webprofiles id="2">
- Replace <dbPort>5432</dbPort> with <dbPort>5433</dbPort>
- Replace <title>EventSentry</title> with <title>EventSentry Archive</title>
- Replace <name>DEFAULT</name> with <name>EventSentry Archive</name>
- Start the EventSentry Web Reports services
- Navigate to the EventSentry Web Reports to ensure that both the DEFAULT and the EventSentry Archive profiles are accessible