A
A
adlukashin2017-05-03 17:43:32
Zabbix
adlukashin, 2017-05-03 17:43:32

Can't return macro from zabbix to email in gigabytes?

Trigger { My pc: vfs.fs.size
[C:,free].last()}<100G - below 100 then notification severity: {TRIGGER.SEVERITY} Trigger URL: {TRIGGER.URL} Last value: {{HOSTNAME}:{TRIGGER.KEY}.last(0)} MAX in 15 minutes: {{HOSTNAME}:{TRIGGER.KEY}. max(900)} MIN for 15 minutes: {{HOSTNAME}:{TRIGGER.KEY}.min(900)} All values ​​are given, the size is in megabytes, but how to do it in GB? ###### The report comes like this Trigger: vfs.fs.size[fs,free] Trigger status: PROBLEM Trigger severity: Disaster Trigger URL: Last value: 96144666624
MAX in 15 minutes: 236146003968
MIN in 15 minutes: 96142012416
Item values:
####
Last value: 96144666624 % (FreeDiskSpace MByte)"
MAX in 15 minutes: 236146003968% (FreeDiskSpace MByte)
" )"
####

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
adlukashin, 2017-05-04
@adlukashin

It turned out that everything is elementary, in the trigger, in units of measurement, you need to put the Latin B, the account will come not in kilobytes but in GB.
==============
Clipping of the one who helped.
=====================

In fact, Zabbix is ​​a smart thing and familiar with information units. If you do not enter your own units of measurement and your multipliers, then it will send data in the form "28456234", meaning bytes. In this case, you can specify the unit of measure "B", and the data will be displayed as "27 MB", without any multipliers. If you specify "B" (Latin B), then the units will change to "MB, GB", respectively. And triggers are even easier to write: we specify not a static abstract number "20", but a very specific "20G" (even if you specified "B" as units of measurement, you still enter "G" in the trigger - such unification). And if you need a 20 MB trigger - specify "20M". Despite the absence of multipliers and the number "19341258" in the latest data,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question