Ad Widget

Collapse

Generate SNMP notification to monitoring server from zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anujan92
    Junior Member
    • Mar 2022
    • 1

    #1

    Generate SNMP notification to monitoring server from zabbix

    Hello Everyone,

    I have installed zabbix to monitor server performances and other applications in rhel 7 enviornment.
    Currently, for all server level and application level issues, zabbix generate alams and also send email notification.

    We have a requirement to send alert to other monitoring entity like fms through snmp.
    So, basically our requirement is generate snmp notification for all the alarms.
    I have gone through the documentations, but most of them are receiving snmp traps in zabbix not for generating snmp traps from zabbix.

    Is that possible to generate snmp trap when an alarm occurs. If it possible please help me to configure this [step by step procedures]. like actions and triggers.

    Thnaks in advance,

    anujan.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Yes, it should be possible. I've not tried what you're attempting to do, and I'm not surprised that there's no real documentation on what you're trying to do. It's a pretty rare use case.

    If I were in your situation and I had to try set this up, I would look through many of the new integrations that Zabbix offers, for feeding alert data from Zabbix to external software packages like Service Now, Slack, etc. Many of those integrations will probably be via a web "push" (possibly a POST), but you might be able to find some integrations that use non-web methods or even ones that use custom scripts. Those can serve as an example to you for how to take data from an event and pass it via an external command (like the "snmptrap" command that's part of Linux's net-snmp packages, for sending snmp traps).

    My guess is that you will have to write some kind of a wrapper script in your favorite scripting or even compiled programming language, and that script will collect the data received from the Zabbix event and feed it in an appropriate manner to the snmptrap command. Alternately, many scripting (or compiled) languages have bindings, modules, or libraries that allow you to generate SNMP traps directly in your program, rather than having to call an external utility like snmptrap. It's possible that it might be easier to generate the traps directly in your program, rather than having to feed them to snmptrap, but you may have to do quite a bit of experimentation to come to a knowledgeable decision about which approach works best for your needs.

    Comment

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

      #3
      look at this: https://git.zabbix.com/projects/ZT/r...owse/README.md
      https://www.zabbix.com/documentation/6.0/en/manual/introduction/whatsnew600?hl=SNMP%2Cgateway#extended-snmp-gateway-functionality

      Comment


      • tim.mooney
        tim.mooney commented
        Editing a comment
        Thanks for following up and providing this link Hamardaban! There's so much stuff that's new in 6.0 that I apparently missed this new functionality when I was reading about 6.0. This "extendted gateway" functionality should provide a much easier solution for Anujan than my answer.
    Working...