Ad Widget

Collapse

Flexible intervals

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renx123
    Junior Member
    • Mar 2011
    • 1

    #1

    Flexible intervals

    Hello!

    I hope sb. can help, I am running out of options here.
    Situation is like this: I want to monitor a retail store customer counter system through zabbix. I have a bash script that makes a mysql query and reports back the result with number of visitors. So from zabbix I am looking for information when there is 0 data from mysql or there is no data change between 2 last checks (about 2-3hour intervals)
    I am doing a External check to the script like this:
    counter.sh[-shop 1]

    Problem is that it's not possible to use flexible intervals. I need to exclude hours that are not working time because the counters report 0 data in the nights and make triggers go off.

    I have tried:
    Interval 3600sec
    0, 1-7,21:00-12:00

    or

    Interval 0sec
    3600,1-7, 12:00-21:00

    nothing works, it still checks during the offline hours. From the forums I found that it is not possible to do this with flexible intervals. Is there any other suggestion how to deal with this situation? Using UserParameters or zabbix_sender is not very good idea. I'd like that it would be easy to add a new shop so that there is no need to connect to shell and edit configs.



    Rene
  • tiagosoares
    Member
    Zabbix Certified Specialist
    • Jul 2010
    • 35

    #2
    Hey,

    You need to use Maintenance (under Configuration - Maintenance).

    Just put the host in maintenance mode during the off hours.

    T.

    Comment

    • Tractorboy
      Member
      • Oct 2010
      • 98

      #3
      Maintenance??

      I have tried maintenance, but found

      1) Alerts still fire.
      2) Maintenance is on a server, but I need to only stop collecting specific items.

      Any further thoughts?

      Comment

      • untergeek
        Senior Member
        Zabbix Certified Specialist
        • Jun 2009
        • 512

        #4
        Did you change your action to recognize Maintenance status = Not in or in maintenance?

        Did you specify with or without data collection in your maintenance window?

        Comment

        • trikke
          Senior Member
          • Aug 2007
          • 140

          #5
          in your triggers use: trigger.last()=0 & (trigger.time() < 120000 | trigger.time() < 21000)

          You see what I mean? if the Time "calculation" is FALSE Your trigger will never fire during this timeperiod


          Greets
          Patrick

          Comment

          Working...