Skip to content

Commit f089955

Browse files
Ryan Fairclothomrozowicz-splunkweliaszsemantic-release-bot
authored
Release (#345)
* fix: poller username secrets (#336) * fix: usernameSecrets nil pointer issue * fix: update usernameSecrets structure Co-authored-by: weliasz <[email protected]> Co-authored-by: weliasz <[email protected]> * fix: add option to change indexes names (#337) * fix: add way to configure events and metrics index name and the documentation * fix: add index names to splunk if clause * chore(release): 1.3.1-beta.1 * add option to change indexes names ([#337](#337)) ([6cef754](6cef754)) * poller username secrets ([#336](#336)) ([7a3cae2](7a3cae2)) * fix: rework of enricher mongo data model (#334) * fix: handle big enrichment objects * feat: migration of shema * feat: migration of schema * feat: migration of schema * feat: migration of schema * tests: unit tests + refactoring * tests: unit tests * tests: fix to unit tests * tests: fix to unit tests * tests: fix to unit tests * refactor: PR comments * feat: more hosts per address (#333) * chore: completed tests for inventory module * feat: add a way to have more than one host per ip address * test: add unit tests * chore(release): 1.4.0-beta.1 # [1.4.0-beta.1](v1.3.1-beta.1...v1.4.0-beta.1) (2022-01-13) ### Bug Fixes * rework of enricher mongo data model ([#334](#334)) ([bca5fb9](bca5fb9)) ### Features * more hosts per address ([#333](#333)) ([840815f](840815f)) * tests: more tests for custom task manager (#338) * fix: correct if syntax * chore: update lock for poetry * fix: handle short varbind tables Address issue with "No more variables left in this MIB View" appearing as attributes * Update manager.py * chore: bump minimum mib server * feat: Load all standard mibs When doing first walks or interacting with devices from new workers a substantial amount of time can be spent identifying and loading the standard mibs. This chance has each worker load standard mibs by default. * chore: keep list of standard mibs * chore: reset file * Update pyproject.toml * chore: reset versions * chore(release): 1.4.0-beta.1 # [1.4.0-beta.1](v1.3.3...v1.4.0-beta.1) (2022-01-16) ### Bug Fixes * add option to change indexes names ([#337](#337)) ([d2413bf](d2413bf)) * correct if syntax ([a0a4576](a0a4576)) * handle short varbind tables ([813f662](813f662)) * poller username secrets ([#336](#336)) ([6207c6f](6207c6f)) * rework of enricher mongo data model ([#334](#334)) ([41129cf](41129cf)) ### Features * Load all standard mibs ([5b6600c](5b6600c)) * more hosts per address ([#333](#333)) ([3d45c6a](3d45c6a)) * fix: bump * feat: bump docs * Revert "chore(release): 1.4.0-beta.1" This reverts commit 447b427. * chore(release): 1.4.0-beta.1 # [1.4.0-beta.1](v1.3.3...v1.4.0-beta.1) (2022-01-16) ### Bug Fixes * add option to change indexes names ([#337](#337)) ([d2413bf](d2413bf)) * bump ([5ddab14](5ddab14)) * correct if syntax ([a0a4576](a0a4576)) * handle short varbind tables ([813f662](813f662)) * poller username secrets ([#336](#336)) ([6207c6f](6207c6f)) * rework of enricher mongo data model ([#334](#334)) ([41129cf](41129cf)) ### Features * bump docs ([021ad01](021ad01)) * Load all standard mibs ([5b6600c](5b6600c)) * more hosts per address ([#333](#333)) ([3d45c6a](3d45c6a)) * fix: bump * Revert "chore(release): 1.4.0-beta.1" This reverts commit f825bfb. * chore(release): 1.4.0-beta.1 # [1.4.0-beta.1](v1.3.3...v1.4.0-beta.1) (2022-01-16) ### Bug Fixes * add option to change indexes names ([#337](#337)) ([d2413bf](d2413bf)) * bump ([c6a94c5](c6a94c5)) * bump ([5ddab14](5ddab14)) * correct if syntax ([a0a4576](a0a4576)) * handle short varbind tables ([813f662](813f662)) * poller username secrets ([#336](#336)) ([6207c6f](6207c6f)) * rework of enricher mongo data model ([#334](#334)) ([41129cf](41129cf)) ### Features * bump docs ([021ad01](021ad01)) * Load all standard mibs ([5b6600c](5b6600c)) * more hosts per address ([#333](#333)) ([3d45c6a](3d45c6a)) ### Reverts * Revert "chore(release): 1.4.0-beta.1" ([8821a96](8821a96)) Co-authored-by: omrozowicz-splunk <[email protected]> Co-authored-by: weliasz <[email protected]> Co-authored-by: weliasz <[email protected]> Co-authored-by: semantic-release-bot <[email protected]>
2 parents 3a9322b + 312dc2c commit f089955

File tree

27 files changed

+488
-147
lines changed

27 files changed

+488
-147
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ of components.
1010
# Documentation
1111

1212
For deployment and user documentation [see](https://splunk-connect-for-snmp.readthedocs.io/)
13+
14+
#
15+
#

charts/splunk-connect-for-snmp/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ dependencies:
77
version: 8.24.13
88
- name: mibserver
99
repository: https://pysnmp.github.io/mibs/charts/
10-
version: 1.8.4
11-
digest: sha256:5eb0a97b13cf886ea4f19f3c6137c8907267266e0732cb0869d850bfaf84e763
12-
generated: "2022-01-15T21:12:33.542079-05:00"
10+
version: 1.12.0
11+
digest: sha256:57c98330200019983930a73d12d21f627bbe8fde43d4a5ecb51b48165403326c
12+
generated: "2022-01-16T11:13:47.618842-05:00"

charts/splunk-connect-for-snmp/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ type: application
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
1616

17-
version: 1.3.3
17+
version: 1.4.0-beta.1
1818
# This is the version number of the application being deployed. This version number should be
1919
# incremented each time you make changes to the application. Versions are not expected to
2020
# follow Semantic Versioning. They should reflect the version the application is using.
2121
# It is recommended to use it with quotes.
22-
appVersion: "1.3.3"
22+
appVersion: "1.4.0-beta.1"
2323
#
2424
dependencies:
2525
- name: mongodb
@@ -29,7 +29,7 @@ dependencies:
2929
version: ~8.24
3030
repository: https://charts.bitnami.com/bitnami
3131
- name: mibserver
32-
version: ~1.8.1
32+
version: ~1.12.0
3333
repository: https://pysnmp.github.io/mibs/charts/
3434
# condition: (optional) A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )
3535
# tags: # (optional)

charts/splunk-connect-for-snmp/templates/common/scheduler-inventory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
{{- include "splunk-connect-for-snmp.scheduler.labels" . | nindent 4 }}
77
data:
8-
{{- with .Values.poller.inventory}}
8+
{{- with (.Values.poller).inventory}}
99
inventory.csv: |-
1010
{{ . | indent 4}}
1111
{{- end }}

charts/splunk-connect-for-snmp/templates/inventory/job.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ spec:
3939
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/asn1/@mib@"
4040
- name: MIB_INDEX
4141
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/index.csv"
42+
- name: MIB_STANDARD
43+
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/standard.txt"
4244
- name: LOG_LEVEL
4345
value: {{ .Values.scheduler.logLevel | default "INFO" }}
4446
volumeMounts:
@@ -54,7 +56,7 @@ spec:
5456
- name: tmp
5557
mountPath: "/tmp/"
5658
readOnly: false
57-
{{- if .Values.poller.usernameSecrets }}
59+
{{- if (.Values.poller).usernameSecrets }}
5860
- name: snmpv3-secrets
5961
mountPath: "/app/secrets/snmpv3"
6062
readOnly: true
@@ -70,7 +72,7 @@ spec:
7072
items:
7173
- key: "config.yaml"
7274
path: "config.yaml"
73-
{{- if .Values.poller.usernameSecrets }}
75+
{{- if (.Values.poller).usernameSecrets }}
7476
- name: snmpv3-secrets
7577
projected:
7678
sources:

charts/splunk-connect-for-snmp/templates/scheduler/deployment.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ spec:
4848
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/asn1/@mib@"
4949
- name: MIB_INDEX
5050
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/index.csv"
51+
- name: MIB_STANDARD
52+
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/standard.txt"
5153
- name: LOG_LEVEL
5254
value: {{ .Values.scheduler.logLevel | default "INFO" }}
5355
- name: INVENTORY_REFRESH_RATE
@@ -62,7 +64,7 @@ spec:
6264
- name: tmp
6365
mountPath: "/tmp/"
6466
readOnly: false
65-
{{- if .Values.poller.usernameSecrets }}
67+
{{- if (.Values.poller).usernameSecrets }}
6668
- name: snmpv3-secrets
6769
mountPath: "/app/secrets/snmpv3"
6870
readOnly: true
@@ -106,7 +108,7 @@ spec:
106108
items:
107109
- key: "config.yaml"
108110
path: "config.yaml"
109-
{{- if .Values.poller.usernameSecrets }}
111+
{{- if (.Values.poller).usernameSecrets }}
110112
- name: snmpv3-secrets
111113
projected:
112114
sources:

charts/splunk-connect-for-snmp/templates/traps/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ spec:
4848
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/asn1/@mib@"
4949
- name: MIB_INDEX
5050
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/index.csv"
51+
- name: MIB_STANDARD
52+
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/standard.txt"
5153
- name: LOG_LEVEL
5254
value: {{ .Values.traps.logLevel | default "INFO" }}
5355
{{- if .Values.splunk.protocol }}

charts/splunk-connect-for-snmp/templates/worker/deployment.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ spec:
5858
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/asn1/@mib@"
5959
- name: MIB_INDEX
6060
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/index.csv"
61+
- name: MIB_STANDARD
62+
value: "http://{{ printf "%s-%s" .Release.Name "mibserver" }}/standard.txt"
6163
{{- if .Values.splunk.enabled }}
6264
{{- if .Values.splunk.protocol }}
6365
- name: SPLUNK_HEC_SCHEME
@@ -82,6 +84,14 @@ spec:
8284
secretKeyRef:
8385
name: {{ include "splunk-connect-for-snmp.name" . }}-splunk
8486
key: hec_token
87+
{{- if .Values.splunk.eventIndex }}
88+
- name: SPLUNK_HEC_INDEX_EVENTS
89+
value: {{ .Values.splunk.eventIndex | default "netops" }}
90+
{{- end}}
91+
{{- if .Values.splunk.metricsIndex }}
92+
- name: SPLUNK_HEC_INDEX_METRICS
93+
value: {{ .Values.splunk.metricsIndex | default "netmetrics" }}
94+
{{- end}}
8595
{{- end}}
8696
volumeMounts:
8797
- name: config
@@ -93,7 +103,7 @@ spec:
93103
- name: tmp
94104
mountPath: "/tmp/"
95105
readOnly: false
96-
{{- if .Values.poller.usernameSecrets }}
106+
{{- if (.Values.poller).usernameSecrets }}
97107
- name: snmpv3-secrets
98108
mountPath: "/app/secrets/snmpv3"
99109
readOnly: true
@@ -137,7 +147,7 @@ spec:
137147
items:
138148
- key: "config.yaml"
139149
path: "config.yaml"
140-
{{- if .Values.poller.usernameSecrets }}
150+
{{- if (.Values.poller).usernameSecrets }}
141151
- name: snmpv3-secrets
142152
projected:
143153
sources:

docs/configuration/deployment-configuration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ All of the components have the `resources` field for adjusting memory resources:
3030
More information about the concept of `resources` can be found in the [kuberentes documentation](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/).
3131

3232
### Update Inventory and Profile
33-
Inventory and profiles in `valuses.yaml` is quite expensive from Splunk Connect for SNMP perspective.
33+
Inventory and profiles in `values.yaml` is quite expensive from Splunk Connect for SNMP perspective.
3434
It required several checks before applying changes. SC4SNMP was designed to prevent changes in inventory and profiles
3535
task more often than every 5 min.
3636

37-
When changing inventory or profile need to be apply in `valuses.yaml` following steps need to be done:
37+
When changing inventory or profile need to be apply in `values.yaml` following steps need to be done:
3838

3939
1. Apply changes in `values.yaml`
4040
2. Check is inventory pod is still running by execute command
4141
```shell script
42-
microk8s kubectl -n sc4snmp get pods |grep inventory
42+
microk8s kubectl -n sc4snmp get pods | grep inventory
4343
```
4444
If command do not return any pods than follow next step in other case wait and execute command again till moment
4545
when inventory job finish.

docs/configuration/poller-configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ poller:
2424
10.202.4.202,,2c,public,,,2000,,,
2525
```
2626
27+
NOTE: header's line (`address,port,version,community`) is necessary for the correct execution of SC4SNMP. Do not remove it.
28+
2729
### Define log level
2830
Log level for trap can be set by changing value for key `logLevel`. Allowed value are: `DEBUG`, `INFO`, `WARNING`, `ERROR`.
2931
Default value is `WARNING`

0 commit comments

Comments
 (0)