Ad Widget

Collapse

Showing Triggers in Graphs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbix_is_my_homeboy
    Junior Member
    • Jan 2015
    • 3

    #1

    Showing Triggers in Graphs

    Hello,

    I have done some searching on this forum and the greater internet and have not been able to find help for my problem. I am using Zabbix 2.2.3 and I am attempting to show a trigger by default in graphs.

    I have the trigger and the graph setup in the same template. Below is trigger expression:
    {Template_Calls:calls.carrier.last(0)}>3155 & {Template_Calls:calls.carrier.prev(0)}>3155

    On the graph config I have "Show triggers" checked. Basically I am just looking to have a solid line shown at 3155 displayed on the graph along with the call data. Can anybody provide any guidance on this or does anybody know if this is possible? Thanks in advance.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    In the previous versions of Zabbix (I am on 2.0.9), your graph has to have a height of at least 125 to show the trigger threshold at the bottom of the graph where the legend is. However, you will not see the dotted line unless your data is near the threshold. (Dotted line is Zabbix default for showing trigger threshold on a graph)

    By default, graph height is 100.

    So if you look at these 2 graphs, the larger one showing CPU usage, you can see the trigger (dotted line) at the 99% threshold because we show the full range of that scale. Now if you look at the smaller graph, you don't see the dotted line because the graph scales dynamically and we have not approached close enough to the threshold to see it. But at the bottom of that smaller graph you can see what the trigger is.
    Attached Files

    Comment

    • zabbix_is_my_homeboy
      Junior Member
      • Jan 2015
      • 3

      #3
      @tchjts1, Thank you very much for your reply. Our issue was not with the pixel height but your screenshots pointed us in the right direction. It appears the issue was due to us not having a simple trigger. Our original expression was:
      {Template_Calls:calls.carrier.last(0)}>3155 & {Template_Calls:calls.carrier.prev(0)}>3155

      We broke this down into two separate triggers and made the .last depend on the .prev.
      {Template_Calls:calls.carrier.last(0)}>3155
      depends on
      {Template_Calls:calls.carrier.prev(0)}>3155

      Also taking into consideration the dynamic nature of the graph, we had to lower the threshold values in order to make them appear on the graph. After doing that we got what we were looking for.

      One drawback to doing this is that it was generated two emails for the two triggers instead of just one. We got around this by setting the .prev alarm to a "Not Classified" severity, and then unchecking alerts for "Not Classified" for all our users.
      Administration > Users > Select User > Media > Edit (for type email) > Uncheck "Not Classified" > Save > Save

      (make sure to save twice, once is not good enough)

      Anyways, I think we are good to go. I have attached a screenshot (edited the threshold values so that it would show) to prove the success. Thanks again for the help!
      Attached Files

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Glad it is working for you.

        If you really didn't want to lower your threshold just so you could see the trigger line on the graph, you could edit the properties of the graph and set a fixed Y Axis max value as seen in the below screenshot. Here as an example, I set it to "fixed" and put the fixed value at 10,000

        The issue with doing it this way is that since you now have a large value for the Y axis, the display of data may appear to be very minimal due to the large nature of the Y axis. The graph scale will not dynamically adjust if it is set to a fixed amount.

        Just wanted to point it out as an option though if your threshold was important to keep it as was and you needed to see the threshold line on the graph
        Attached Files

        Comment

        • zabbix_is_my_homeboy
          Junior Member
          • Jan 2015
          • 3

          #5
          That is definitely useful information. I will have to talk to a few other people on our side to see if it what we are looking for as far as displaying our graphs. Thanks again for all the help and support on this issue!

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            Sure. You can play with those values. You can always put them back the way they were if you don't like them.

            Comment

            Working...