Skip to content

Commit e4b095f

Browse files
committed
Increase default PerfdataLabelMaxLength to 64
1 parent a2d01ad commit e4b095f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## next
2+
### Change
3+
- Increase default PerfdataLabelMaxLength to 64
4+
15
## v0.5.7 - 12.03.2026
26
### Feature
37
- add length based anomaly detection when parsing perfdata fields

config.gcfg.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
Folder = "/var/spool/nagios"
6969
# This option takes predence over Main.NagiosSpoolfileWorker if set
7070
WorkerCount = 1
71-
PerfdataLabelMaxLength = 32
71+
PerfdataLabelMaxLength = 64
7272
PerfdataUOMMaxLength = 16
7373
PerfdataNumericValuesMaxLength = 32
7474
PerfdataThresholdsMaxLength = 64

pkg/collector/spoolfile/nagiosSpoolfileCollector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
IntervalToCheckDirectory = 1500 * time.Millisecond
2323

2424
// PerfdataLabelMaxLengthDefault: If a perfdata label is longer than this, it will be logged as an anomaly and skipped
25-
PerfdataLabelMaxLengthDefault = int(32)
25+
PerfdataLabelMaxLengthDefault = int(64)
2626

2727
// PerfdataUOMMaxLengthDefault: If a perfdata UOM is longer than this, it will be logged as an anomaly and skipped
2828
PerfdataUOMMaxLengthDefault = int(16)

0 commit comments

Comments
 (0)