Skip to content

Commit b487e9c

Browse files
committed
17631 FIX sap_hana_status: Always discover the Status service
Minimal fix for SUP-22109. Consolidation of these services would be desirable. Change-Id: I2602590ff4654b58dbb064aeb665041896ff78a6
1 parent 64f7f46 commit b487e9c

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Diff for: .werks/17631

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Title: sap_hana_status: Always discover the Status service
2+
Class: fix
3+
Compatible: compat
4+
Component: checks
5+
Date: 1742555639
6+
Edition: cre
7+
Level: 1
8+
Version: 2.2.0p41
9+
10+
The service "SAP HANA Status <instance>" was not always discovered.
11+
This would lead to cases where the service was not discovered while
12+
OK, but only once it turned into a CRIT state.
13+
We now always discover it.

Diff for: cmk/base/plugins/agent_based/sap_hana_status.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ def parse_sap_hana_status(string_table: StringTable) -> sap_hana.ParsedSection:
3434
"instance": sid_instance,
3535
"version": line[2],
3636
}
37-
section["%s %s" % (item_name, sid_instance)] = item_data
37+
# always discover "Status", even if we don't have an error now
38+
section[f"Status {sid_instance}"] = item_data
39+
section[f"{item_name} {sid_instance}"] = item_data
3840

3941
return section
4042

0 commit comments

Comments
 (0)