Ad Widget

Collapse

zabbix trigger based on one week old data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivek
    Junior Member
    • Jul 2015
    • 1

    #1

    zabbix trigger based on one week old data

    Iam very much new to Zabbix. i have tried my hands on triggers. what i was able to make out was it can set triggers on some constant threshold. what i need is that it should compare with the data which i exactly one week old for that exact time and if the change is above some particular % threshold then trigger an alert.

    i had tried some steps like keeping the current data and one week old data in and external database and then querying that data with zabbix ODBC drivers but then i was stuck when i was not able to compare two items.

    if i may be confusing stating my issue. let me know and i will be more clear with my problem
  • ArtemK
    Senior Member
    • May 2013
    • 232

    #2
    you could use <time_shift> parameter in trigger functions. No need for any external database, zabbix will keep item's history for defined "History storage period" in item settings by default.

    check docs
    Code:
    avg(3600)       → average value for an hour
    avg(3600,86400) → average value for an hour one day ago.
    exampe, fire trigger, if avg cpu load for 1 hour now is 2 times bigger, that week ago:
    Code:
    {server:system.cpu.load.avg(1h)} > 2 * {server:system.cpu.load.avg(1h,7d)}
    Last edited by ArtemK; 21-07-2015, 12:36.

    Comment

    Working...