-
Sub-task
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
None
-
Documentation backlog, S2401-1, S2401-2
-
2
Start active node and standby node, each should have own SNMP trap file.
Active node file should have records:
2024-01-11T15:28:47+0200 ZBXTRAP 127.0.0.1
PDU INFO:
requestid 1195137066
messageid 0
transactionid 3
errorindex 0
receivedfrom UDP: [127.0.0.1]:57259->[127.0.0.1]:162
errorstatus 0
version 1
community public
notificationtype TRAP
VARBINDS:
DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (894080) 2:29:00.80
SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0
Standby node should have records:
2024-01-10T11:56:14+0300 ZBXTRAP 127.0.0.1 PDU INFO: errorstatus 0 transactionid 1 requestid 454450018 receivedfrom UDP: [127.0.0.1]:38624->[127.0.0.1]:162 version 1 community public messageid 0 errorindex 0 notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (12966349) 1 day, 12:01:03.49 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T14:55:11+0200 ZBXTRAP 127.0.0.1 PDU INFO: community public version 1 notificationtype TRAP errorindex 0 receivedfrom UDP: [127.0.0.1]:51129->[127.0.0.1]:162 errorstatus 0 requestid 354293299 transactionid 1 messageid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (692506) 1:55:25.06 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:21:17+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 1091093174 messageid 0 transactionid 2 receivedfrom UDP: [127.0.0.1]:50671->[127.0.0.1]:162 errorstatus 0 errorindex 0 version 1 community public notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (849125) 2:21:31.25 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:28:47+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 1195137066 messageid 0 transactionid 3 errorindex 0 receivedfrom UDP: [127.0.0.1]:57269->[127.0.0.1]:162 errorstatus 0 version 1 community public notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (894080) 2:29:00.80 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:30:40+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 197230214 messageid 0 transactionid 4 receivedfrom UDP: [127.0.0.1]:39609->[127.0.0.1]:162 errorstatus 0 errorindex 0 community public version 1 notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (905459) 2:30:54.59 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0
Expected:
Shut down active node and notice that standby node correctly continues and reads trap with timestamp "2024-01-11T15:30:40+0200" and does not re-read records.
Also would be nice to add test with other way around for example
Active node:
2024-01-11T14:55:11+0200 ZBXTRAP 127.0.0.1 PDU INFO: community public version 1 notificationtype TRAP errorindex 0 receivedfrom UDP: [127.0.0.1]:51129->[127.0.0.1]:162 errorstatus 0 requestid 354293299 transactionid 1 messageid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (692506) 1:55:25.06 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:21:17+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 1091093174 messageid 0 transactionid 2 receivedfrom UDP: [127.0.0.1]:50671->[127.0.0.1]:162 errorstatus 0 errorindex 0 version 1 community public notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (849125) 2:21:31.25 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:28:47+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 1195137066 messageid 0 transactionid 3 errorindex 0 receivedfrom UDP: [127.0.0.1]:57259->[127.0.0.1]:162 errorstatus 0 version 1 community public notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (894080) 2:29:00.80 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0
Standby
2024-01-11T15:28:47+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 1195137067 messageid 0 transactionid 3 errorindex 0 receivedfrom UDP: [127.0.0.1]:57260->[127.0.0.1]:162 errorstatus 0 version 1 community public notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (894080) 2:29:00.80 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0 2024-01-11T15:30:40+0200 ZBXTRAP 127.0.0.1 PDU INFO: requestid 197230214 messageid 0 transactionid 4 receivedfrom UDP: [127.0.0.1]:39609->[127.0.0.1]:162 errorstatus 0 errorindex 0 community public version 1 notificationtype TRAP VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (905459) 2:30:54.59 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: IF-MIB::linkUp.0
Expected:
When standby node is tarted it reads only one additional record with timestamp 2024-01-11T15:30:40+0200