Compare commits
No commits in common. "7fc4e0c7d72f63cb8830b9f8132012b2dbafdc33" and "d7a427bd7fb48b52e1fd9008eefaacc11de23456" have entirely different histories.
7fc4e0c7d7
...
d7a427bd7f
|
@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [6.8.3] - 2021-02-15
|
||||
## [6.8.3] - 2021-02-08
|
||||
|
||||
### Added
|
||||
|
||||
|
@ -16,8 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
### Fixed
|
||||
|
||||
- Fix the check_mem command in the NRPE role, precising the percentage sign for it not to check the memory in MB.
|
||||
- Fix the check_mem script in the NRPE role, adding cached RAM as free RAM
|
||||
- Fix the check_mem in the NRPE role, precising the percentage sign for it not to check the memory in MB.
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ tot_mem=$(( `/sbin/sysctl -n hw.physmem` / BYTES_IN_MB))
|
|||
{% if ansible_distribution_version is version_compare("6.2",'<') %}
|
||||
free_mem=$(( `/usr/bin/vmstat | /usr/bin/tail -1 | /usr/bin/awk '{ print $5 }'` / KB_IN_MB ))
|
||||
{% else %}
|
||||
free_mem=$(($(/usr/bin/vmstat | /usr/bin/tail -1 | /usr/bin/awk '{ print $4 }' | tr -d 'M') + $(top -n | grep Memory | awk '{print $8}' | tr -d 'M')))
|
||||
free_mem=$(/usr/bin/vmstat | /usr/bin/tail -1 | /usr/bin/awk '{ print $4 }' | tr -d 'M')
|
||||
{% endif %}
|
||||
# Free memory size (in percentage)
|
||||
free_mem_perc=$(( free_mem * 100 / tot_mem ))
|
||||
|
|
Loading…
Reference in a new issue