A
A
Andrey2022-01-18 10:13:54
Android
Andrey, 2022-01-18 10:13:54

Zabbix trigger firing after a certain time?

Hey! tell a not very experienced
one - the template works according to the API, there is a trigger that works when the CPU load is above 80% looks like this
Problem expression-

{Proxmox VE by HTTP from Cloud-P:pve.nodes.cpu[{#NODE}].last()}>80

recovery expression-
{Proxmox VE by HTTP from Cloud-P:pve.nodes.cpu[{#NODE}].last()}<70


I need the trigger to work only after a certain time, i.e. when the download lasts more than 10 minutes, I found
here how it should look like this -
{www.zabbix.com:system.cpu.load[all,avg1].last()}>5 or {www.zabbix.com:system.cpu.load[all,avg1].min(10m)}>2


I have no experience in this matter, I will be grateful for the help.

Solution - in the comments below, they thought that you can take a ready-made trigger from the default template for Linux, as a result, corrected the existing one on
{Proxmox VE by HTTP from Cloud-P:pve.nodes.cpu[{#NODE}].min(30m)}>97

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Puma Thailand, 2022-01-18
@MoscowStyle

So in the default templates there, the CPU is monitored over time, just change it to how much you need

K
ky0, 2022-01-18
@ky0

This is done not through a trigger expression, but through Actions - send alarms about triggers of a certain severity (or filtered by some other parameters), for example, not immediately, but after a certain period of time.

K
kuzmi4_s, 2022-01-18
@kuzmi4_s

For time approximations, use the max/min functions depending on which side you have the threshold.
The trigger expression {www.zabbix.com:system.cpu.load[all,avg1].min(10m)}>5 will sound like this: minimum value in 10 minutes > 5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question