Ad Widget

Collapse

Traceroute in Alert Email

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Traceroute in Alert Email

    Hi

    We are using Zabbix 2.2.1 on Centos to monitor our about 90 servers hosted with different companies/data centers. One of the items we have is icmpping and a trigger to alert if ping to a host fails. We already get an email from this trigger in that case. Is it possible that the email can include the output of traceroute to the server also. Many times we directly send the email to our vendors when their provided server is not accessible. The traceroute will help much fixing the issue.

    Zulqarnain

    #2
    Help

    Any help please?

    Comment


      #3
      1) create external script
      the simplest one:
      Code:
      #!/bin/sh
      sudo /bin/traceroute $1
      2) create Item Trace
      type: external script
      key: {name_of_your_trace_script}["{HOST.CONN}"]
      type of information: text

      3) add into Action Default/recovery message your new Item Trace

      It is just the first, raw copy of the correct procedure.
      I completely sure that you can improve it as mush as you need
      Sincerely yours,
      Aleksey

      Comment


        #4
        Items in Action

        Hi aib

        Thanks for your help. I have completed 1st and 2nd steps as you directed. I have confusion on step 3 as the items who have triggered the notification will be ping and we want to include the value of another item (traceroute) in the email message (action). How can I referrer the value of some other item in the action ? The item which triggered the action can be referred as {ITEM.NAME1} but how can some other items be referenced?

        Will be really thankful for your help.

        Zulqarnain

        Comment


          #5
          Try to create a trigger like:
          (no ping for last 5 minute) & (traceroute is not empty)

          after that you can use :
          - {ITEM.NAME1} = ping
          - {ITEM.NAME2} = traceroute information
          Sincerely yours,
          Aleksey

          Comment


            #6
            Thanks

            Thanks you so much. It worked.

            Comment


              #7
              A little more help

              Is it possible to get traceroute soon after the ping has failed and include that one only in the email? The reason is doing trace root every few minutes is not a very useful activity and to ensure the trace root sent in the email is the one taken AFTER the ping failed.

              Many thanks for the help you have already provided.

              Zulqarnain

              Comment

              Announcement

              Collapse
              No announcement yet.
              Working...
              X