Ad Widget

Collapse

Is it possible to use many snmp trap translators

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heba
    Member
    • Jan 2020
    • 40

    #1

    Is it possible to use many snmp trap translators

    Dear All

    I am using the zabbix perl script zabbix_trap_receiver.pl as an snmp trap translator
    but now... I want to use palo alto template and it uses snmptt translator

    is it possible to use both as below ?

    # 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
    disableAuthorization yes
    perl do "/home/zabbix/bin/zabbix_trap_receiver.pl";
    perl do "/usr/sbin/snmptthandler-embedded";


    Thanks
    Heba
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Take look at https://linux.die.net/man/5/snmptrapd.conf and http://net-snmp.sourceforge.net/wiki...ring_snmptrapd and https://metacpan.org/pod/NetSNMP::TrapReceiver

    shortly: you may use a lot of traphandle but with different oid.
    .....
    traphandle SNMPv2-MIB::coldStart /usr/bin/bin/my_great_script cold
    traphandle SNMPv2-MIB::BlaBla2 /usr/bin/bin/my_great_script shit_happens
    .....
    .....
    I'm not sure about using the perl derectives multiple times - but you can always try!

    Comment

    Working...