Debug Splunk Connect for SNMP¶
Pieces of Advice¶
Check when SNMP WALK was executed last time for device¶
- Configure Splunk OpenTelemetry Collector for Kubernetes
- Go to your Splunk and execute search:
index="em_logs" "Sending due task" "sc4snmp;<IP_ADDRESS>;walk"
and replaceby IP Address which you are interested.
Uninstall Splunk Connect for SNMP¶
To uninstall SC4SNMP run the following commands:
microk8s helm3 uninstall snmp -n sc4snmp
microk8s kubectl delete pvc --all -n sc4snmp
Installing Splunk Connect for SNMP on Linux RedHat¶
Installation of RedHat may be blocking ports required by microk8s. Installing microk8s on RedHat required checking if the firewall is not blocking any of required microk8s ports.
Issues¶
“Empty SNMP response message” problem¶
In case you see the following line in worker’s logs:
[2022-01-04 11:44:22,553: INFO/ForkPoolWorker-1] Task splunk_connect_for_snmp.snmp.tasks.walk[8e62fc62-569c-473f-a765-ff92577774e5] retry: Retry in 3489s: SnmpActionError('An error of SNMP isWalk=True for a host 192.168.10.20 occurred: Empty SNMP response message')
that causes infinite retry of walk operation, add worker.ignoreEmptyVarbinds
parameter to values.yaml
and set it to true.
An example configuration for a worker in values.yaml
is:
worker:
ignoreEmptyVarbinds: true
“OID not increasing” problem¶
In case you see the following line in worker’s logs:
[2022-01-04 11:44:22,553: INFO/ForkPoolWorker-1] Task splunk_connect_for_snmp.snmp.tasks.walk[8e62fc62-569c-473f-a765-ff92577774e5] retry: Retry in 3489s: SnmpActionError('An error of SNMP isWalk=True for a host 192.168.10.20 occurred: OID not increasing')
that causes infinite retry of walk operation, add worker.ignoreNotIncreasingOid
array to values.yaml
and fill with the addresses of hosts where the problem appears.
An example configuration for a worker in values.yaml
is:
worker:
ignoreNotIncreasingOid:
- "127.0.0.1:164"
- "127.0.0.6"
If you put only IP address (ex. 127.0.0.1
), then errors will be ignored for all of its devices (like 127.0.0.1:161
,
127.0.0.1:163
…). If you put IP address and host structured as {host}:{port}
that means the error will be ignored only for this device.
Walking a device takes too much time¶
Enable small walk functionality with the following instruction: Configure small walk profile.