Skip to content

Commit 274062b

Browse files
omrozowicz-splunksemantic-release-botRyan Fairclothuoboda-splunkweliasz
authored
fix: increase rabbitmq timeout, fix trap mib loading, add mongo indexers (#398)
* fix: increase rabbitmq timeout to 40 minutes (#390) * chore(release): 1.5.7-beta.1 ## [1.5.7-beta.1](v1.5.6...v1.5.7-beta.1) (2022-02-09) ### Bug Fixes * increase rabbitmq timeout to 40 minutes ([#390](#390)) ([4ed1ba0](4ed1ba0)) * fix: traps values translation (#392) * fix: add loading mib for trap values * fix: apply pre-commit * chore(release): 1.5.7-beta.2 ## [1.5.7-beta.2](v1.5.7-beta.1...v1.5.7-beta.2) (2022-02-09) ### Bug Fixes * traps values translation ([#392](#392)) ([a459d1d](a459d1d)) * fix: Support sharing IP for traps (#393) * fix: Support sharing IP for traps * fix: This fix allows the service to share its IP with other services such as sc4s (syslog) * triggering int tests [run-int-tests] Co-authored-by: omrozowicz-splunk <[email protected]> Co-authored-by: Lukasz Loboda <[email protected]> * chore(release): 1.5.7-beta.3 ## [1.5.7-beta.3](v1.5.7-beta.2...v1.5.7-beta.3) (2022-02-10) ### Bug Fixes * Support sharing IP for traps ([#393](#393)) ([33cbb87](33cbb87)) * fix: handle error during mib loading (#391) * fix: handle error during mib loading * fix: handle error during mib loading * fix: handle error during mib loading * chore(release): 1.5.7-beta.4 ## [1.5.7-beta.4](v1.5.7-beta.3...v1.5.7-beta.4) (2022-02-10) ### Bug Fixes * handle error during mib loading ([#391](#391)) ([4a3aaea](4a3aaea)) * ci: trigger int tests fix (#394) * test: [run-int-tests] * triggering int tests [run-int-tests] * Update ci-main.yaml * test: [run-int-tests] * doc: pdate README.md * ci: pdate ci-main.yaml Co-authored-by: omrozowicz-splunk <[email protected]> * doc: document way of requesting MIBs (#396) * doc: document way of requesting MIBs * doc: document way of MIBs submission and add mkdocs.yml * fix: remove unused clusterName (#395) * fix: remove unused clusterName * fix: remove unused clusterName * chore(release): 1.5.7-beta.5 ## [1.5.7-beta.5](v1.5.7-beta.4...v1.5.7-beta.5) (2022-02-11) ### Bug Fixes * remove unused clusterName ([#395](#395)) ([9db4f82](9db4f82)) * fix: add index creation (#397) * fix: add index creation * chore(release): 1.5.7-beta.6 ## [1.5.7-beta.6](v1.5.7-beta.5...v1.5.7-beta.6) (2022-02-11) ### Bug Fixes * add index creation ([#397](#397)) ([490f54d](490f54d)) Co-authored-by: semantic-release-bot <[email protected]> Co-authored-by: Ryan Faircloth <[email protected]> Co-authored-by: Lukasz Loboda <[email protected]> Co-authored-by: weliasz <[email protected]>
1 parent c682a68 commit 274062b

File tree

17 files changed

+105
-14
lines changed

17 files changed

+105
-14
lines changed

.github/workflows/ci-main.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,33 @@ jobs:
8484
with:
8585
name: test-results-unit-python_${{ matrix.python-version }}
8686
path: test-results/*
87+
88+
integration-tests-check:
89+
name: Check if run integration tests
90+
runs-on: ubuntu-latest
91+
steps:
92+
- name: Checkout Project
93+
uses: actions/checkout@v2
94+
with:
95+
fetch-depth: 2
96+
- name: Get commit message
97+
id: get_commit_message
98+
run: |
99+
if [[ '${{ github.event_name }}' == 'push' ]]; then
100+
echo ::set-output name=commit_message::$(git log --format=%B -n 1 HEAD)
101+
elif [[ '${{ github.event_name }}' == 'pull_request' ]]; then
102+
echo ::set-output name=commit_message::$(git log --format=%B -n 1 HEAD^2)
103+
fi
104+
outputs:
105+
commit_message:
106+
echo "${{ steps.get_commit_message.outputs.commit_message }}"
87107

88108
test-integration:
89109
name: Run integration tests
110+
needs:
111+
- integration-tests-check
90112
runs-on: ubuntu-latest
91-
if: "contains(github.event.head_commit.message, '[run-int-tests]')"
113+
if: "contains(needs.integration-tests-check.outputs.commit_message, '[run-int-tests]')"
92114
steps:
93115
- uses: actions/checkout@v2
94116
- name: Archieve repository

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ of components.
1212
For deployment and user documentation [see](https://splunk-connect-for-snmp.readthedocs.io/)
1313

1414
#
15-
#
15+
#

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

Lines changed: 2 additions & 2 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.5.6
17+
version: 1.5.7-beta.6
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.5.6"
22+
appVersion: "1.5.7-beta.6"
2323
#
2424
dependencies:
2525
- name: mongodb

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ metadata:
55
labels:
66
{{- include "splunk-connect-for-snmp.traps.labels" . | nindent 4 }}
77
annotations:
8-
metallb.universe.tf/allow-shared-ip: "true"
8+
{{- if .Values.traps.service.usemetallb }}
9+
metallb.universe.tf/allow-shared-ip: {{ .Values.traps.service.metallbsharingkey | default "splunk-connect" | quote }}
10+
{{- end }}
11+
912
spec:
1013
type: {{ .Values.traps.service.type }}
1114
externalTrafficPolicy: Local

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ traps:
224224
runAsGroup: 10001
225225

226226
service:
227+
usemetallb: true
228+
metallbsharingkey: "splunk-connect"
227229
type: LoadBalancer
228230
port: 162
229231

@@ -327,6 +329,8 @@ mongodb:
327329
prometheus.io/scrape: "true"
328330
prometheus.io/port: "9216"
329331
rabbitmq:
332+
extraConfiguration: |
333+
consumer_timeout = 2400000
330334
replicaCount: 1
331335
pdb:
332336
create: true

docs/gettingstarted/sc4snmp-installation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ splunk:
2929
token: ###SPLUNK_TOKEN###
3030
insecureSSL: "false"
3131
port: "###SPLUNK_PORT###"
32-
clusterName: my-cluster
3332
image:
3433
pullPolicy: "Always"
3534
traps:
@@ -111,7 +110,6 @@ Other optional variables can be configured:
111110
| --- | --- | --- |
112111
| splunk.protocol | port of splunk instance| https |
113112
| splunk.insecure_ssl| is insecure ssl allowed | "true" |
114-
| splunk.cluster_name | name of the cluster | "foo" |
115113
| splunk.eventIndex | name of the events index | "netops" |
116114
| splunk.metricsIndex | name of the metrics index | "netmetrics" |
117115

docs/mib-request.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#MIB submission process
2+
3+
In order to achieve human-readable OIDs,the corresponding MIB files are necessary.
4+
They are being stored in one of the components of SC4SNMP - the MIB server.
5+
6+
The lis of currently available MIBs is here:
7+
[https://pysnmp.github.io/mibs/index.csv](https://pysnmp.github.io/mibs/index.csv)
8+
9+
An alternative way to check if the MIB you're interested in is being served is to check the link:
10+
`https://pysnmp.github.io/mibs/asn1/@mib@` where `@mib@` is the name of MIB (for example `IF-MIB`). If the file
11+
is downloading, that means the MIB file exists in the mib server.
12+
13+
## Submit a new MIB file
14+
15+
In case you want to add a new MIB file to the MIB server, follow the steps:
16+
17+
1. Create a fork of the [https://github.com/pysnmp/mibs](https://github.com/pysnmp/mibs) repository
18+
19+
2. Put MIB file/s under `src/vendor/@vendor_name@` where `@vendor_name@` is the name of the MIB file's vendor (in case
20+
there is no directory of vendor you need, create it by yourself)
21+
22+
3. Create a pull request to a `main` branch
23+
24+
4. Name the pull request the following way: `feat: add @vendor_name@ MIB files`
25+
26+
27+
An alternative way of adding MIBs to MIB server is to create an issue on
28+
[https://github.com/pysnmp/mibs](https://github.com/pysnmp/mibs) repository, attaching the files and information about
29+
the vendor.

integration_tests/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ splunk:
55
token: ###SPLUNK_TOKEN###
66
insecureSSL: "true"
77
port: "8088"
8-
clusterName: my-cluster
98
image:
109
repository: "snmp-local"
1110
tag: "latest"

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ nav:
4040
- Splunk Infrastructure Monitoring: "configuration/sim-configuration.md"
4141
- Planning: "planning.md"
4242
- Security: "security.md"
43+
- Request MIB: "mib-request.md"
4344
- Troubleshooting : "bestpractices.md"
4445
- Releases: "releases.md"
4546

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "splunk-connect-for-snmp"
3-
version = "1.5.6"
3+
version = "1.5.7-beta.6"
44
description = ""
55
authors = ["rfaircloth-splunk <[email protected]>"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)