Ad Widget

Collapse

Alarm after a special timeperiod

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hawky
    Junior Member
    • Apr 2009
    • 15

    #1

    Alarm after a special timeperiod

    Hi,

    I'm playing around with zabbix at the moment, its a great tool, but I looking for some features.

    I want to monitor the CPU Treshold, and if the load is over 90% for 60min I want to send an alert.

    Is this possible to configure zabbix that way? That it send alarms after a time period?

    Thanks,

    regards,
    Hawky
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    I would use something like that:

    {host:system.cpu.util[,idle,avg1].max(3600)}<10


    Trigger is true if over the past hour, idle percentage has never been above 10% (that is: CPU usage has never been below 90%).

    Comment

    • Hawky
      Junior Member
      • Apr 2009
      • 15

      #3
      Nice! Thank you

      Comment

      • Hawky
        Junior Member
        • Apr 2009
        • 15

        #4
        Hi,

        i played aound a bit with that trigger but I have one strange problem.

        I monitor the bandwithusage of my server, in bit/s, te server is connected with a 100Mbit link, that means I've a maximum capacity of 100 000 000bit/s so I created following trigger:

        {{HOSTNAME}:net.if.out[eth0].max(3600)}&gt;80000000</expression>

        Anything wrong? I don't think so?

        regards,
        Florian

        Comment

        • Calimero
          Senior Member
          • Nov 2006
          • 481

          #5
          net.if.out[eth0] actually means net.if.out[eth0,bytes]. So you get the amount of incoming data (in bytes).

          So if you want traffic as bits per second, you have to:
          - set type to float
          - set multiplier to 8 to go from bytes to bits
          - set storage as delta (speed per second)

          Comment

          • Hawky
            Junior Member
            • Apr 2009
            • 15

            #6
            thanks for your answer, but I think you got me wrong, how to get the bandwith in bits is clear, it works already, but my trigger doesn't work.

            I always get an mail when the usage is over 80Mbit but I only wants a message if the usage is over 80Mbit for 1hour, i think zabbix ignores the max(3600) in my trigger.

            regards
            florian

            Comment

            • Calimero
              Senior Member
              • Nov 2006
              • 481

              #7
              Originally posted by Hawky
              I always get an mail when the usage is over 80Mbit but I only wants a message if the usage is over 80Mbit for 1hour, i think zabbix ignores the max(3600) in my trigger.
              .max(3600)>80M will be true if over the last hour there was traffic above 80M over even a single minute.

              What you want is: .min(3600)>80M

              "Trigger is true if over the last hour traffic as never been lower than 80M", that is to say "Minimum traffic over the last hour as always been above 80M".

              Comment

              • Hawky
                Junior Member
                • Apr 2009
                • 15

                #8
                oh ok thanks, I'll try it tomorrow

                bye,
                Florian

                Comment

                Working...