Skip to content

Commit 0b13d34

Browse files
20253 innovaphone(licenses): fix lower boundary
The perfdata tuple only supplied 5 of its 6 positional fields (name, value, warn, crit, min_), so total ended up in the min_ slot while max_ silently defaulted to None. The used-licenses metric was graphed with a lower boundary of total and no upper boundary at all, instead of ranging from 0 to total. CMK-37821 Change-Id: Ifdfb20ea33be326c5c41b0e2065ca11c01d8e456
1 parent c0d3f35 commit 0b13d34

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.werks/20253.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[//]: # (werk v3)
2+
# innovaphone_licenses: fix metric lower boundary
3+
4+
key | value
5+
---------- | ---
6+
date | 2026-08-06T18:57:02.124193+00:00
7+
version | 2.5.0p12
8+
class | fix
9+
edition | community
10+
component | checks
11+
level | 1
12+
compatible | yes
13+
14+
The _Licenses_ service on Innovaphone devices graphed the used-licenses metric
15+
with a lower boundary equal to the total license count and no upper boundary,
16+
instead of ranging from 0 to the total.
17+
18+
The metric now correctly ranges from 0 to the total license count. This is only
19+
a graphing concern, so the metric history should not be affected.

cmk/base/legacy_checks/innovaphone_licenses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def check_innovaphone_licenses(_no_item, params, info):
3838
warn, crit = params["levels"]
3939
message = f"Used {used:.0f}/{total:.0f} Licences ({perc_used:.0f}%)"
4040
levels = f"Warning/ Critical at ({warn}/{crit})"
41-
perf = [("licenses", used, None, None, total)]
41+
perf = [("licenses", used, None, None, 0, total)]
4242
if perc_used > crit:
4343
return 2, message + levels, perf
4444
if perc_used > warn:

0 commit comments

Comments
 (0)