Ad Widget

Collapse

How to find out whether nodata or not during specific times in trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EarthCrash
    Junior Member
    • Mar 2019
    • 1

    #1

    How to find out whether nodata or not during specific times in trigger

    Hello. Here is some problem for swap monitoring in my company.

    It's need some criteria like below:
    (1) basically, evaluate last 1 hour average swap usage and yesterday's one's. then must be fire if last 1 hour average swap usage is x2 higher than yesterday's.
    (2) but must be not too low current usage.(about 50%)
    (3) for prevent miscalculation, there must be not 'no data' in yesterday's collected data during some time(about 5m?) in same time of moment.(for example, if current time is 13:00, there must be not 'no data' at yesterday's 12:55~13:00)

    I can think trigger for first and second criteria but can't third. just like this:
    {LINUX:system.swap.size[,pused].avg(1h)}/{LINUX:system.swap.size[,pused].avg(1h,1d)}>2 and {LINUX:system.swap.size[,pused].last()}>50

    For achieve third criteria, need something like 'nodata' trigger function but 'nodata' trigger function isn't support timeshift argument. So other solution is needed. If any expression for 'no data' is exist, it will be solve like below:
    {LINUX:system.swap.size[,pused].avg(5m,1d)}=SOMETHING_EXPRESSION_FOR_NO_DATA

    Any tips?
Working...