Units

We previously configured units for some items, using values such as B or ms. While the effect was visible in the monitoring section quite easily, there are some subtle differences in the handling of different units.

Units is a free-form field. You can type anything in there, but some units will change their behavior when data is displayed:

  • B/Bps: By default, when applying K, M, G, T and other unit prefixes, Zabbix will use a multiplier of 1,000. If the unit is set to B or Bps, the multiplier used will be changed to 1,024.
  • s: An incoming value in seconds will be translated to a human-readable format.
  • uptime: An incoming value in seconds will be translated to a human-readable format.
  • unixtime: An incoming Unix timestamp will be translated to a human-readable format.

Interestingly, for our ICMP ping item, we did not use any of these; we used ms instead. The reason is that in certain cases of a very small roundtrip, a value in seconds might be too small to properly store in the Zabbix database schema. By applying the multiplier of 1,000 in the item configuration, we converted the incoming value in seconds into milliseconds, which should never exceed the limits of the database schema. One downside would be that, if a ping takes a long time, the value will not be displayed in secondswe will have to figure it out from the millisecond value.

Units do not affect the stored values, only what gets displayed. We may safely change them back and forth until we get them right.
With older versions of Zabbix, there was a fixed blacklist for certain units, such as rpm and % so that we would not get anything crazy such as 5KRPM or 1K%. With Zabbix 4, this blacklist has been removed and replaced with a new feature that allows us to blacklist any unit we like just by adding an ! in front of the unit: https://www.zabbix.com/documentation/4.0/manual/config/items/item#unit_blacklisting.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.19.251