Does StorageGRID support the use of SNMP test traps?
Applies to
Answer
No, StorageGRID does not support the use of SNMP test traps.
Additional Information
To test a SNMP connection use one of the following workarounds, both using the SNMPv2-MIB:coldStart trap:
- Use
snmptrap
to quickly test a SNMP connection. Example:snmptrap -v1 -c (community string) (Destination address) 1.3.6.1.6.3.1.1.5 "" 0 0 ""
If the SNMP management station receives the SNMP coldStart trap we can conclude that the network and the SNMP management station are configured correctly.
Note: If SNMP trap is configured using UDP port, there is no acknowledgement given to the StorageGRID if the trap has been received by the SNMP station until the admin of SNMP station acknowledges.
In certain cases, to confirm that the snmptrap has sent UDP packets to the network successfully, snmptrap
can be used with -D 'netsnmp_udp'
option for verbose debug output for UDP protocol.
Example: snmptrap -v1 -c (community string) -D 'netsnmp_udp' (Destination address) 1.3.6.1.6.3.1.1.5 "" 0 0 ""
registered debug token netsnmp_udp, 1
netsnmp_udpbase: open remote UDP: [x.x.x.x]:162->[0.0.0.0]:0
netsnmp_udpbase: client open UDP: [x.x.x.x]:162->[0.0.0.0]:0
netsnmp_udp: send 45 bytes from 0x55ecaa861743 to UDP: [x.x.x.x]:162->[0.0.0.0]:0 on fd 3
- Restart the SNMP service using
service snmpd restart
if the current configured connection is working.
If step 2 works the SNMP configuration is a working one.
If problem persists, please check the SNMP Configuration and also consult this KB with known SNMP issues