Werk #14043: mk_oracle.ps1: Fix crash if registry key isn't present

Component Checks & agents
Title mk_oracle.ps1: Fix crash if registry key isn't present
Date Apr 25, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.2.0i1 2.1.0b7 2.0.0p24
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

In some environments "HKLM:\SYSTEM\CurrentControlSet\services\OracleService{ORACLE_SID}" registry key was missing which caused the agent to crash. Now, if this key isn't present we use "HKLM:\SYSTEM\CurrentControlSet\services\OracleASMService{ORACLE_SID}" registry key instead.

To the list of all Werks