-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not all traps was imported from MIB to XML #20
Comments
I can imagine one of two problems happening here:
Try adding some logging to the script to see if your trap is being processed and what is happening to it. Also, try grepping the MIB files for |
From my first post, we can see in "snmptt" output, that FCMGMT-MIB file parsed correctly and translated to human readable format. Unfortunately, i'm not perl developer, i was try debug your script, but it isn't easy for me. Bash or python i can (on user-level), but not perl. |
Understood. I'll take a look to try understanding what is going wrong. For reference, can you please provide the exact commands you are using to generate the Zabbix templates? |
I use this command
And some examples, that show if MIB in the right location:
|
Disregard this. I found that it's all ok
|
Hi Ryan,
I've receive snmp trap from my devices, and after research i tried to convert mib file to zabbix xml, but not all trap entry was imported to xml file.
Example trap messages (from snmptt.log):
13:39:05 2018/06/04 FCMGMT-MIB::connUnitPortStatusChange Normal "General event" 10.1.1.232 - ZBXTRAP 10.1.1.232 general failure offline
13:39:05 2018/06/04 FCMGMT-MIB::connUnitPortStatusChange Normal "General event" 10.1.1.233 - ZBXTRAP 10.1.1.233 general failure offline
13:42:10 2018/06/04 FCMGMT-MIB::connUnitPortStatusChange Normal "General event" 10.1.1.233 - ZBXTRAP 10.1.1.233 general failure offline
13:42:10 2018/06/04 FCMGMT-MIB::connUnitPortStatusChange Normal "General event" 10.1.1.232 - ZBXTRAP 10.1.1.232 general failure offline
Example trap messages (from snmptrapd.log):
2018-06-04 13:31:51 10.1.1.232(via UDP: [10.1.1.232]:57541->[172.1.1.1]:162) TRAP, SNMP v1, community public
experimental.94 Enterprise Specific Trap (6) Uptime: 359 days, 7:39:40.55
experimental.94.1.10.1.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.369098964 = INTEGER: 1 experimental.94.1.10.1.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.369098964 = INTEGER: 3
2018-06-04 13:31:51 10.1.1.233(via UDP: [10.1.1.233]:18726->[172.1.1.1]:162) TRAP, SNMP v1, community public
experimental.94 Enterprise Specific Trap (6) Uptime: 359 days, 5:42:48.85
experimental.94.1.10.1.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.369098964 = INTEGER: 1 experimental.94.1.10.1.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.369098964 = INTEGER: 3
2018-06-04 13:35:02 10.1.1.232(via UDP: [10.1.1.232]:57541->[172.1.1.1]:162) TRAP, SNMP v1, community public
experimental.94 Enterprise Specific Trap (6) Uptime: 359 days, 7:42:51.49
experimental.94.1.10.1.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.527958784 = INTEGER: 5 experimental.94.1.10.1.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.527958784 = INTEGER: 3
2018-06-04 13:35:02 10.1.1.233(via UDP: [10.1.1.233]:18726->[172.1.1.1]:162) TRAP, SNMP v1, community public
experimental.94 Enterprise Specific Trap (6) Uptime: 359 days, 5:45:58.93
experimental.94.1.10.1.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.528024320 = INTEGER: 5 experimental.94.1.10.1.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.528024320 = INTEGER: 3
Mib file:
http://www.oidview.com/mibs/0/FCMGMT-MIB.html
And after converting, no any mentions about connUnitPortStatusChange in XML file.
Could you help me?
Thanks
The text was updated successfully, but these errors were encountered: