Skip to content

Enhance sap_hana_instance_status to use instance user - #959

Open
gradecke wants to merge 2 commits into
Checkmk:masterfrom
svalabs:fix_mk_sap_hana_find_sapctrl_from_path
Open

gradecke wants to merge 2 commits into
Checkmk:masterfrom
svalabs:fix_mk_sap_hana_find_sapctrl_from_path

Conversation

@gradecke

@gradecke gradecke commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

sapctrl tools don't have to be installed, however, the HANA instance user has a sapcontrol binary installed, try to use that first before trying the global absolut path which might not exist.

General information

Bug reports

On some SAP HANA systems, the SAP hostctrl tools aren't installed for the root user - however, the instance runs completely fine and SAP is fine with that. mk_sap_hana however has the absolute path of the sapcontrol binary hard coded and the sap_hana_instance_status section fails because of this.

Proposed changes

Pass the instance user to the function and let it verify first if a sapcontrol binary exists in the path of the sidadm (i.e. instance_user) and use that if it's present.

The output of the plugin does not change at all. (Except of course, it starts working like intented while it just returned a 127 exit code before)

sapctrl tools don't have to be installed, however, the HANA instance user has a sapcontrol binary installed, try to use that first before trying the global absolut path which might not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants