Ad Widget

Collapse

I cannot create a trigger to monitor avg5 CPU user utilization

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dave2dave
    Junior Member
    • Oct 2018
    • 1

    #1

    I cannot create a trigger to monitor avg5 CPU user utilization

    Hi there,
    I'm trying to create a trigger to monitor 5 minute average of CPU user utilization.

    This is what I have:
    {Template OS Linux:system.cpu.util[,user].avg(5m)}>{$CPU_UTIL_USER_THRESHOLD}

    The problem of this expression is that it always trigger for new hosts with initial cpu peaks. I suppose this is because .avg(5) does averaging of first minutes only if the host is fresh.
    I would rather like to use the last value of avg5, but the following expression is throwing an error when being saved:
    {Template OS Linux:system.cpu.util[all,user,avg5].last(0)}>{$CPU_UTIL_USER_THRESHOLD}

    The error is:
    Incorrect item key "system.cpu.util[all,user,avg5]" provided for trigger expression on "Template OS Linux".

    My question is: What is wrong with the second expression that I can't save it?
    Bonus question: How can I specify to ignore the trigger if the host was started in the last 5 minutes?

    Thanks for any suggestions.
Working...