Skip to content

Commit 5fa9733

Browse files
fix: have local mib directory by default
1 parent 4129b25 commit 5fa9733

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docker_compose/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ SCHEDULER_CONFIG_FILE_ABSOLUTE_PATH=
55
TRAPS_CONFIG_FILE_ABSOLUTE_PATH=
66
INVENTORY_FILE_ABSOLUTE_PATH=
77
COREFILE_ABS_PATH=
8+
LOCAL_MIBS_PATH="./local_mibs"
89
SC4SNMP_VERSION="1.14.2-beta.6"
9-
PATH_TO_LOCAL_MIBS=
1010

1111
# Network configuration
1212
COREDNS_ADDRESS=172.28.0.255

docker_compose/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ services:
9999
NGINX_ENTRYPOINT_QUIET_LOGS: ${NGINX_ENTRYPOINT_QUIET_LOGS:-1}
100100
volumes:
101101
- snmp-mibserver-tmp:/tmp/
102-
- ${PATH_TO_LOCAL_MIBS}:/app/new_mibs/src/vendor
102+
- ${LOCAL_MIBS_PATH}:/app/new_mibs/src/vendor
103103
redis:
104104
<<: [*dns_and_networks, *dependend_on_core_dns]
105105
image: ${REDIS_IMAGE}:${REDIS_TAG:-latest}

docs/dockercompose/6-env-file-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Inside the directory with the docker compose files, there is a `.env`. Variables
6262
| `SPLUNK_METRIC_NAME_HYPHEN_TO_UNDERSCORE` | Replaces hyphens with underscores in generated metric names to ensure compatibility with Splunk's metric schema |
6363
| `IGNORE_EMPTY_VARBINDS` | Details can be found in [empty snmp response message issue](../troubleshooting/polling-issues.md#empty-snmp-response-message-problem) |
6464
| `SPLUNK_LOG_INDEX` | Event index in Splunk where logs from docker containers would be sent |
65-
| `PATH_TO_LOCAL_MIBS` | Path to the directory containing [local MIB files](../mib-request.md#configuring-path-to-local-mibs-for-docker-compose-installation). |
65+
| `LOCAL_MIBS_PATH` | Path to the directory containing [local MIB files](../mib-request.md#configuring-path-to-local-mibs-for-docker-compose-installation). |
6666

6767
## Workers
6868

docs/mib-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ when the Node with the mapped hostPath fails, you will have to access the MIB fi
102102
Add the following to the `.env`:
103103

104104
```
105-
PATH_TO_LOCAL_MIBS=/home/user/local_mibs
105+
LOCAL_MIBS_PATH=/home/user/local_mibs
106106
```
107107

108108
Whenever you add new MIB files, restart MIB service to compile them again, using the following command:

0 commit comments

Comments
 (0)