C
C
CanisLupusMSK2021-06-10 20:21:29
Zabbix
CanisLupusMSK, 2021-06-10 20:21:29

How to write forumula in zabbix?

You need to write a formula that sums up two parameters (the number of write operations and read operations), the formula:
last("perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Writes/sec",60]]")+last("perf_counter_en ["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]") gives an error -

Invalid parameter "/1/params": incorrect calculated item formula starting from "last("
perf_counter_en["\PhysicalDisk({ #DEVNAME})\Disk Writes/sec",60]]")+last("perf_counter_en["\PhysicalDisk({#DEVNAME})\Disk Reads/sec",60]")".

The items themselves are taken from the standard windows template.

Most likely the wrong syntax, but still.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grishin, 2021-06-11
@CanisLupusMSK

I ate like this (5.0):
last("perf_counter_en[\"\PhysicalDisk(0 C:)\Disk Writes/sec\",60]")+last("perf_counter_en[\"\PhysicalDisk(0 C :)\Disk Reads/sec\",60]"
) I escaped the inner quotes with backslash \ eat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question