I have my SNMP interfaces defined on my hosts in Zabbix with both the name and IP and DNS set as primary for it to go out and do SNMP based checks. This works. When hosts generate traps, many of them are not making it into the snmptrap.fallback. Any help on figuring out why this is would be greatly appreciated.
When I look at /var/log/zabbix/zabbix_server.log I see things like this for hosts defined as mentioned above (ip address slightly redacted):
The same entry shows up in /var/log/snmp/zabbix_traps.log as:
Here is my /etc/snmp/snmptrapd.conf:
When I look at /var/log/zabbix/zabbix_server.log I see things like this for hosts defined as mentioned above (ip address slightly redacted):
Code:
7133:20130604:230337.943 unmatched trap received from [x.10.205.44]: 23:03:37 2013/06/04 PDU INFO: notificationtype TRAP version 0 receivedfrom UDP: [x.10.205.44]:54576->[x.10.2.10] errorstatus 0 messageid 0 community public transactionid 34125 errorindex 0 requestid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (178358828) 20 days, 15:26:28.28 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: PowerNet-MIB::upsOnBattery PowerNet-MIB::mtrapargsString.0 type=4 value=STRING: "UPS: Switched to battery backup power." SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: x.10.205.44 SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public" SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: PowerNet-MIB::apc 6937:20130604:230337.991 Zabbix agent item [system.cpu.load[,avg5]] on host [UWG-DC10] failed: first network error, wait for 15 seconds 6940:20130604:230338.779 Zabbix agent item [perf_counter["\SQLServer:Memory Manager\Total Server Memory (KB)"]] on host [upd-apps01.uwg.westga.edu] failed: first network error, wait for 15 seconds
Code:
23:03:37 2013/06/04 ZBXTRAP x.10.205.44 PDU INFO: notificationtype TRAP version 0 receivedfrom UDP: [x.10.205.44]:54576->[x.10.2.10] errorstatus 0 messageid 0 community public transactionid 34125 errorindex 0 requestid 0 VARBINDS: DISMAN-EVENT-MIB::sysUpTimeInstance type=67 value=Timeticks: (178358828) 20 days, 15:26:28.28 SNMPv2-MIB::snmpTrapOID.0 type=6 value=OID: PowerNet-MIB::upsOnBattery PowerNet-MIB::mtrapargsString.0 type=4 value=STRING: "UPS: Switched to battery backup power." SNMP-COMMUNITY-MIB::snmpTrapAddress.0 type=64 value=IpAddress: x.10.205.44 SNMP-COMMUNITY-MIB::snmpTrapCommunity.0 type=4 value=STRING: "public" SNMPv2-MIB::snmpTrapEnterprise.0 type=6 value=OID: PowerNet-MIB::apc
Code:
# Example configuration file for snmptrapd # # No traps are handled by default, you must edit this file! # # authCommunity log,execute,net public # traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold ## Let all traps from all community strings come in disableAuthorization yes ## Zabbix trap script perl do "/usr/local/bin/zabbix_trap_receiver.pl";
Comment