Ad Widget

Collapse

Experssion for triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sauron
    Senior Member
    • Jan 2005
    • 215

    #1

    Experssion for triggers

    Hello i'm setting ifInOctets1 & ifOutOctets1 with custom multiplier 8 and units Bps and delta (speed per seconds) Yes i'm need monitor speed on interface How write expression for trigger enable on ifOutOctets1 delta up to 5Mbps ?
  • cooper
    Senior Member
    • Sep 2004
    • 110

    #2
    The easiest way would be to store the delta of ifInOctets1 instead of the real value. This is done on the item configuration screen. The option "Store Value". It defaults to 'As is', you would need to change it to 'Delta'

    Then all you need to do is:
    server.your.net:ifInOctets1.last(0)}>5000000

    That would check the last value comited to the database and alarm if it is greater than 5Mb.

    HTH

    cooper

    Comment

    • sauron
      Senior Member
      • Jan 2005
      • 215

      #3
      No-no i'm need Mbs

      Comment

      • sauron
        Senior Member
        • Jan 2005
        • 215

        #4
        Originally posted by cooper
        The easiest way would be to store the delta of ifInOctets1 instead of the real value. This is done on the item configuration screen. The option "Store Value". It defaults to 'As is', you would need to change it to 'Delta'
        I'm can do this. But in history tables it's saves as right i'e 1500000 eq 1.5 Mbps
        Why i'm can't got real value by function ?

        Originally posted by cooper
        Then all you need to do is:
        server.your.net:ifInOctets1.last(0)}>5000000
        Very well why i'm need got dublicate values from 48 port used only by triggers ? It's uselless.

        Originally posted by cooper
        That would check the last value comited to the database and alarm if it is greater than 5Mb.
        See below. This uselless. If i'm planning use this for one port this realy cool. But for 48 ports this nightmare

        Comment

        • cooper
          Senior Member
          • Sep 2004
          • 110

          #5
          Hard linked trigger templates are just around the corner. That should help some with getting it to all you hosts.

          cooper

          Comment

          • sauron
            Senior Member
            • Jan 2005
            • 215

            #6
            Hmm... I'm thinking creating small patch for example

            {HOSTNAME}:last(0) return 12Mbps

            and

            {HOSTNAME}:last(0,n) return 12000000

            What do you think ?

            Comment

            • sauron
              Senior Member
              • Jan 2005
              • 215

              #7
              Hey what you calculate functions for alerts text body and functions in triggers separate ? On more research code i'm finding expression in triggers calculate at native value. Thanks you for i'm creating useless code.
              Last edited by sauron; 11-03-2005, 11:42. Reason: More reseach code

              Comment

              Working...