Ad Widget

Collapse

Change trigger treshold between some hours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dexit
    Junior Member
    • Sep 2018
    • 2

    #1

    Change trigger treshold between some hours

    Hello

    I have quite a few servers which work 24/7. They work normally along the day but there is database backup running between 4:00AM and 6:00AM. This causes disk IO delay about 40% and there is HIGH trigger raised. Not funny

    So I came up with editing trigger expression by adding time() function to it. Unfortunately now the trigger is not working at all because probably I'm an idiot. There is no error or something. Zabbix just never raise trigger with no difference what time and IO delay is.

    There is my original expression:
    Code:
    {MyHost:system.cpu.util[,iowait].avg(15m)} > {$IO_WAIT}
    And this is my gorgeous modification:
    Code:
    {MyHost:system.cpu.util[,iowait].avg(15m)} > {$IO_WAIT} and ({MyHost:system.cpu.util[,iowait].time(0)} < 040000 or {MyHost:system.cpu.util[,iowait].time(0)} > 060000)
    This thing:
    Code:
    {$IO_WAIT}
    is my macro which works perfectly in first expression (is set to 20 in this host).

    Can anybody spot an error in my syntax?
    Last edited by dexit; 21-01-2019, 18:11.
Working...