Ad Widget

Collapse

Alert supression for different Timezones

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbixisfun
    Junior Member
    • Apr 2019
    • 9

    #1

    Alert supression for different Timezones

    I am monitoring 'Host groups in different time zones :
    New York, USA.
    Washington DC, USA.
    California, USA
    Australia
    London
    Ireland

    We have computers that turn off during the night and alerts are not needed. Whats the best way to disable alerts in all the different zones during a set period.

    I am currently using maintenance mode which requires timezone difference calculation from the USA server.

    There must be a better way -- thanks
  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hello zabbixisfun,

    One approach can be to add additional "time()" conditions to trigger expression:
    Code:
    {Template App Zabbix Agent:agent.ping.nodata(5m)}=1 and {Template App Zabbix Agent:agent.ping.time()}>{$FROM} and {Template App Zabbix Agent:agent.ping.time()}<{$TILL}
    After that, we must define a separate template per each region containing macro values:
    Code:
    {$FROM} = 080000
    {$TILL} = 170000
    This means to fire up trigger from 8:00 AM till 5:00 PM. Must use 24h format for sure.

    I believe for some occasions will have to cross the midnight in the master server, but it will still work:
    Code:
    {$FROM} = 220000
    {$TILL} = 050000
    From 10:00 PM till 5:00 AM

    More about this approach (linking one template for configuration and second to adjust dynamics) at https://www.youtube.com/watch?v=1omyJXYqsiI

    Comment

    Working...