Hi,

By default free -b command output is used. Awk script just calculates it by next way:

total = <column 2>
used = <column 3> + <column 5>
pused = (<column 3> + <column 5>) * 100 / <column 2>
free = <column 4>
pfree = <column 4> * 100 / <column 2>
shared = <column 5>
buffers = <column 6>
available = <column 6> + <column 7>
pavailable = (<column 6> + <column 7>) * 100 / <column 2>

Can you check or provide your free -b output?

We can move this discussion into github issue tracker:

https://github.com/kvaps/zabbix-linux-container-template

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store