Skip to content

Commit

Permalink
fix: fix formatting of Debug Splunk Connect for SNMP documentation (#988
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wojtekzyla authored Mar 27, 2024
1 parent cd2ddee commit 5a944e4
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions docs/bestpractices.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,32 @@ If 64-bit counter is not supported on your device, you can write your own Splunk
the maximum integer value and the current state. The same works for values large enough that they don't fit into a 64-bit value.
An example for an appropriate Splunk query would be the following:

```
| streamstats current=f last(ifInOctets) as p_ifInOctets last(ifOutOctets) as p_ifOutOctets by ifAlias
| eval in_delta=(ifInOctets - p_ifInOctets)
| eval out_delta=(ifOutOctets - p_ifOutOctets)
| eval max=pow(2,64)
| eval out = if(out_delta<0,((max+out_delta)*8/(5*60*1000*1000*1000)),(out_delta)*8/(5*60*1000*1000*1000))
| timechart span=5m avg(in) AS in, avg(out) AS out by ifAlias
```

### Polling authentication errors

### Unknown USM user
#### Unknown USM user
In case of polling SNMPv3 devices, `Unknown USM user` error suggests wrong username. Verify
that the kubernetes secret with the correct username has been created ([SNMPv3 configuration](configuration/snmpv3-configuration.md)).

### Wrong SNMP PDU digest
#### Wrong SNMP PDU digest
In case of polling SNMPv3 devices, `Wrong SNMP PDU digest` error suggests wrong authentication key. Verify
that the kubernetes secret with the correct authentication key has been created ([SNMPv3 configuration](configuration/snmpv3-configuration.md)).

### No SNMP response received before timeout
#### No SNMP response received before timeout
`No SNMP response received before timeout` error might have several root causes. Some of them are:

- wrong device IP or port
- SNMPv2c wrong community string
- SNMPv3 wrong privacy key

```
| streamstats current=f last(ifInOctets) as p_ifInOctets last(ifOutOctets) as p_ifOutOctets by ifAlias
| eval in_delta=(ifInOctets - p_ifInOctets)
| eval out_delta=(ifOutOctets - p_ifOutOctets)
| eval max=pow(2,64)
| eval out = if(out_delta<0,((max+out_delta)*8/(5*60*1000*1000*1000)),(out_delta)*8/(5*60*1000*1000*1000))
| timechart span=5m avg(in) AS in, avg(out) AS out by ifAlias
```
### "Field is immutable" error during helm upgrade

```
Expand Down

0 comments on commit 5a944e4

Please sign in to comment.