Ad Widget

Collapse

How to send an SNMP trap from ZABBIX server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shima
    Junior Member
    • Jan 2007
    • 4

    #1

    How to send an SNMP trap from ZABBIX server?

    Hi,

    I'm now trying to implement zabbix for a network. The network already has an SNMP server but zabbix is going to be installed to another server.
    I know zabbix has the message (e-mail) notification but I would like to know whether zabbix also has a function to send SNMP trap notifications to an external server when any trigger status changes.

    Would somebody give me any idea of this?
  • sbadger
    Member
    • Dec 2005
    • 81

    #2
    You can also have Zabbix run a script as an option. In that script you could generate your trap to the other SNMP server

    Comment

    • shima
      Junior Member
      • Jan 2007
      • 4

      #3
      Thank you for the reply but I don't still get it...

      Does "script" mean "Remote Command" in "Configuration of Actions"?
      If so, I tried to set it up but it did't work.

      My configuration like this;

      Action type: Remote Command
      Source: Trigger
      Conditions: Trigger severity >= "Average"
      Remote command:
      nmsblae: 172.16.2.156:161
      nmsblae: {TRIGGER.SEVERITY}: {HOSTNAME}: {IPADDRESS}
      nmsblae: {TRIGGER.NAME}: {TRIGGER.STATUS}

      'nmsblae' is the SNMP server host name and '172.16.2.156' is the server's IP address.
      'nmsblae' is also configured as a zabbix host.

      Could you show an example how to set the script?

      Fyi, ZABBIX version is 1.1.4.

      Comment

      • shima
        Junior Member
        • Jan 2007
        • 4

        #4
        I got "script" doesn't mean "Remote command",,,

        I now made a test script to send an SNMP trap to SNMP mananger and configured an Media types, however it looks zabbix doesn't execute the script even though "Monitoring>>Actions" logs 'sent' successfully.

        Anything find what happend there?

        Another thing, I would like to know how "Actions" setting associate with the script, especially would like to know how to configure Subject and Message column.

        Please let me know how logically works between them.

        thx,

        Comment

        • ifoyil
          Junior Member
          • Jan 2019
          • 2

          #5
          Hello shima did you succeed in the subject mentioned above? I have same subject as you wrote if you have any details or scripts could you share it please;

          Comment

          Working...