Ad Widget

Collapse

Advanced trigger availability report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zetho
    Junior Member
    • Jul 2009
    • 9

    #1

    Advanced trigger availability report

    Generally trigger reports are generated per daily/percentage basis in the It services section.

    Is there any possiblity to monitor complicated triggers (that are not monitorable with "show triggers" on item graph) in more detailed manner ? I mean that I would like to achieve a trigger graph very similiar to item graph .

    Thank You
  • zetho
    Junior Member
    • Jul 2009
    • 9

    #2
    Actually I will answer myself

    It can be done with "calculated item" (see doc)

    regards

    Comment

    • danrog
      Senior Member
      • Sep 2009
      • 164

      #3
      I'd be curious to see this. Do you have an example of this calculated item?

      Comment

      • zetho
        Junior Member
        • Jul 2009
        • 9

        #4
        Sure,

        This is the item :

        last("apache-ap-01:web.test.fail[Query ap01]") / (last("apache-ap-01:web.test.fail[Ap-01 balancer2 status check]")+last("a[apache-ap-01:web.test.fail[Ap-01 balancer1 status check]")+1)

        It works like this . Normally Query ap01 returns 0 and balancer1 and balancer2 query returns 1 . This item is easily triggered with following trigger (item values chart is on the bottom ) :

        (({apache-ap-01:web.test.fail[Query
        ap01].last(0)})/({apache-ap-01:web.test.fail[Ap-01 balancer1 status
        check].last(0)}+{apache-ap-01:web.test.fail[Ap-01 balancer2 status
        check].last(0)}+1)#0)&(({apache-ap-01:web.test.fail[Query
        ap01].last(0)})/({apache-ap-01:web.test.fail[Ap-01 balancer1 status
        check].last(0)}+{apache-ap-01:web.test.fail[Ap-01 balancer2 status
        check].last(0)}+1)#1)


        Item values chart :

        apache balancer 1 balancer 2 Trigger final value

        0 1 1 = 0 -> OK
        0 1 0 = 0 -> OK
        0 0 0 = 0 -> OK
        1 1 1 = 1/3 -> Error
        1 1 0 = 1/2 -> Error
        1 0 0 = 1 -> Ok


        so the above trigger triggers only when final calculated value is not equal 1 or 0 . Formula for calculation is following :

        (Apache value ) / (balancer_1_value + balancer_2_value +
        1 )

        This '1' is used for purpose to avoid dividing by zero.

        regards

        Comment

        Working...