Hi,
Running Ubuntu 16.04, it looks like there is a bug in the ram part of the rtm script (https://docs.ovh.com/gb/en/dedicated/install-rtm/)
Here is the output of free:
>total used free shared buff/cache available
>Mem: 16198832 3225488 3522340 253672 9451004 12327944
>Swap: 523260 4 523256
The script gives me -114% as a result for ram consumption.
Looking at the script
> $mem_swap_usage{'mem_total'} = $1;
> $mem_swap_usage{'mem_used'} = $2;
> $mem_swap_usage{'mem_free'} = $3;
> $mem_swap_usage{'mem_shared'} = $4;
> $mem_swap_usage{'mem_buffers'} = $5;
> $mem_swap_usage{'mem_cached'} = $6;
> $mem_swap_usage{'mem_used_pr'} = sprintf("%d", (($2-$5-$6)/$1*100));
mem_cached is actually "available" from free, so it does used - cached - available / total, which doesn't make sense.
Maybe the script assume a different "free" format, or was based upon "/proc/meminfo", but I think the proper value should be:
> $mem_swap_usage{'mem_used_pr'} = sprintf("%d", (($1-$6)/$1*100));
Blockquote
Real-time montoring script RAM bug
Related questions
- Installing Operating System from custom image on OVH VPS ( CentOS 8 Tutorial)
56736
11.01.2020 21:11
- SMTP server on VPS and port 25 opening
47639
10.12.2025 13:59
- Mumbai VPS data-center availability
45141
23.12.2025 04:48
- Nameserver for my vps
44534
07.08.2018 11:35
- Remote access to MySQL database
43433
16.01.2018 15:29
- VPS stuck in “Saving…” for over 24 hours – No SSH, No KVM, No Rescue
41796
10.01.2026 22:36
- Advice on products to run a simple website + CMS.
38869
07.01.2026 14:58
- VPS login and password not accepted. Reboot in Rescue Mode results in root and temp password not being accepted
36760
15.01.2026 20:04
- Change server location
36084
06.11.2020 10:16
- Redirect domain to vps
35974
03.01.2018 22:32