zabbix 3.4.15
@f02-srv-mon01:/var/log/zabbix# uname -a
Linux f02-srv-mon01 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
mibs отключены
Настраиваю snmp TRAP до этого не пользовался.
заббикс сегодня обновлял до этого такая же ошибка была в другой версии.
snmptt trap ловит отлично вот лог его:
дальше идем в логи zabbix и видим
и трап не подхватывается хостом... через snmptrap.fallback
при этом если делать тествый трап
он спокойно проходит
ну машина личная в заббикс не заводил, в логах заббикса:
@f02-srv-mon01:/var/log/zabbix# uname -a
Linux f02-srv-mon01 4.4.0-134-generic #160-Ubuntu SMP Wed Aug 15 14:58:00 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
mibs отключены
Настраиваю snmp TRAP до этого не пользовался.
заббикс сегодня обновлял до этого такая же ошибка была в другой версии.
snmptt trap ловит отлично вот лог его:
Code:
@f02-srv-mon01:/var/log/zabbix# cat snmptt.log 23:53:02 2019/03/01 .1.3.6.1.6.3.1.1.5.2 Normal "Status Events" 10.202.250.156 - Device reinitialized (warmStart) 23:53:02 2019/03/01 .1.3.6.1.6.3.1.1.5.2 Normal "Status Events" 10.202.250.155 - Device reinitialized (warmStart)
Code:
14171:20190301:235303.779 invalid trap data found "23:53:02 2019/03/01 .1.3.6.1.6.3.1.1.5.2 Normal "Status Events" 10.202.250.156 - Device reinitialized (warmStart) 23:53:02 2019/03/01 .1.3.6.1.6.3.1.1.5.2 Normal "Status Events" 10.202.250.155 - Device reinitialized (warmStart)
при этом если делать тествый трап
Code:
snmptrap -v 1 -c public 10.202.100.150 '1.2.3.4.5.6' '192.193.194.195' 6 99 '55' 1.11.12.13.14.15 s "teststring"
Code:
cat snmptt.log 23:52:49 2019/03/01 .1.2.3.4.5.6.0.99 Normal "General event" 192.193.194.195 - ZBXTRAP 192.193.194.195 10.202.10.124
Code:
14171:20190301:235238.771 unmatched trap received from "192.193.194.195": 23:52:36 2019/03/01 .1.2.3.4.5.6.0.99 Normal "General event" 192.193.194.195 - 10.202.10.124
Code:
@f02-srv-mon01:/etc/snmp# cat snmptrapd.conf # # EXAMPLE-trap.conf: # An example configuration file for configuring the Net-SNMP snmptrapd agent. # ############################################################################### # # This file is intended to only be an example. # When the snmptrapd agent starts up, this is where it will look for it. # # All lines beginning with a '#' are comments and are intended for you # to read. All other lines are configuration commands for the agent. # # PLEASE: read the snmptrapd.conf(5) manual page as well! # #authCommunity log,execute,net private authCommunity log,execute,net public disableAuthorization yes # ## send mail when get any events #traphandle default /usr/bin/traptoemail -s smtp.example.org [email protected] #traphandle default snmptt traphandle default snmptt #traphandle default /usr/sbin/snmptthandler #traphandle perl do "/usr/bin/zabbix_trap_receiver.pl"; # ## send mail when get linkDown #traphandle .1.3.6.1.6.3.1.1.5.3 /usr/bin/traptoemail -s smtp.example.org [email protected]
Code:
@f02-srv-mon01:/etc/snmp# cat snmptrapd.conf # # EXAMPLE-trap.conf: # An example configuration file for configuring the Net-SNMP snmptrapd agent. # ############################################################################### # # This file is intended to only be an example. # When the snmptrapd agent starts up, this is where it will look for it. # # All lines beginning with a '#' are comments and are intended for you # to read. All other lines are configuration commands for the agent. # # PLEASE: read the snmptrapd.conf(5) manual page as well! # #authCommunity log,execute,net private authCommunity log,execute,net public #authCommunity log,execute,net 'HITACHI DF800' disableAuthorization yes # ## send mail when get any events #traphandle default /usr/bin/traptoemail -s smtp.example.org [email protected] #traphandle default snmptt traphandle default snmptt #traphandle default /usr/sbin/snmptthandler #traphandle perl do "/usr/bin/zabbix_trap_receiver.pl"; # ## send mail when get linkDown #traphandle .1.3.6.1.6.3.1.1.5.3 /usr/bin/traptoemail -s smtp.example.org [email protected] @f02-srv-mon01:/etc/snmp# cat snmptt.conf EVENT general .* "General event" Normal FORMAT ZBXTRAP $aA $ar # # # EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal FORMAT Device reinitialized (coldStart) #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)" SDESC A coldStart trap signifies that the SNMPv2 entity, acting in an agent role, is reinitializing itself and that its configuration may have been altered. EDESC # # # EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal FORMAT Device reinitialized (warmStart) #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)" SDESC A warmStart trap signifies that the SNMPv2 entity, acting in an agent role, is reinitializing itself such that its configuration is unaltered. EDESC # # # EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal FORMAT Link down on interface $1. Admin state: $2. Operational state: $3 #EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3" SDESC A linkDown trap signifies that the SNMP entity, acting in an agent role, has detected that the ifOperStatus object for one of its communication links is about to enter the down state from some other state (but not from the notPresent state). This other state is indicated by the included value of ifOperStatus. EDESC # # # EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal FORMAT Link up on interface $1. Admin state: $2. Operational state: $3 #EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3" SDESC A linkUp trap signifies that the SNMP entity, acting in an agent role, has detected that the ifOperStatus object for one of its communication links left the down state and transitioned into some other state (but not into the notPresent state). This other state is indicated by the included value of ifOperStatus. EDESC # # # EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal FORMAT SNMP athentication failure #EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure" SDESC An authenticationFailure trap signifies that the SNMPv2 entity, acting in an agent role, has received a protocol message that is not properly authenticated. While all implementations of the SNMPv2 must be capable of generating this trap, the snmpEnableAuthenTraps object indicates whether this trap will be generated. EDESC # #EVENT general .* "General event" Normal #FORMAT ZBXTRAP $aA $1 $2 $3 @f02-srv-mon01:/etc/snmp#

Comment