Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions docs/cloudlinuxos/command-line_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,8 @@ lveinfo [OPTIONS]
|<span class="notranslate">`--period PERIOD`</span>|time period; specify minutes with <span class="notranslate">`m`</span>, hours with <span class="notranslate">`h`</span>, days with <span class="notranslate">`d`</span> and values: <span class="notranslate">`today`, `yesterday`; `5m`</span> - last 5 minutes, <span class="notranslate">`4h`</span> - last four hours, <span class="notranslate">`2d`</span> - last 2 days, as well as <span class="notranslate">`today`</span>|


<a name="dbgovchart-2"></a>

#### dbgovchart


Expand Down Expand Up @@ -2911,6 +2913,7 @@ These manage [CloudLinux Isolates](/cloudlinuxos/isolates/#lve-per-domain) — r
| | |
|--|--|
| <span class="notranslate"> `list-domains <uid>` </span> |list the domain LVEs inside the user LVP of the account with the given numeric <span class="notranslate">UID</span>. Reports <span class="notranslate">`UID ... does not exist`</span> for an unknown account and <span class="notranslate">`No domain limits configured for UID ...`</span> for a known one that has none|
| <span class="notranslate"> `list-domain-limits <user\|uid>` </span> |show, as JSON (<span class="notranslate">`{"data": [...]}`</span>), the kernel limits of every registered domain of the account given by user name or numeric <span class="notranslate">UID</span>. Each row holds <span class="notranslate">`domain`</span>, <span class="notranslate">`docroot`</span>, <span class="notranslate">`lve_id`</span>, <span class="notranslate">`in_kernel`</span> and <span class="notranslate">`limits`</span> (<span class="notranslate">`cpu`</span> in hundredths of a percent, <span class="notranslate">`pmem`</span> and <span class="notranslate">`vmem`</span> in bytes, <span class="notranslate">`io`</span> in KB/s, <span class="notranslate">`ep`</span> and <span class="notranslate">`nproc`</span> as counts, <span class="notranslate">`iops`</span> in operations per second). <span class="notranslate">`domain`</span> is `null` for a registered document root that the control panel no longer assigns to the account. <span class="notranslate">`in_kernel`</span> `false` with <span class="notranslate">`limits`</span> `null` means the domain LVE does not exist yet and the site runs within the account's limits. Reports <span class="notranslate">`unknown user: ...`</span> for an unknown account|
| <span class="notranslate"> `allow-domain-limits <user>` </span> |create the user LVP and allow per-domain limits for the named user (idempotent)|
| <span class="notranslate"> `deny-domain-limits <user>` </span> |remove the user LVP and disallow per-domain limits for the named user|
| <span class="notranslate"> `enable-domain-limits <domain>` </span> |register a domain LVE under its owner's LVP. The owner and document root are resolved from the control panel, so only the domain name is given|
Expand Down Expand Up @@ -3152,7 +3155,7 @@ For example:
```
cldiag --symlinksifowner --json

{"total_errors": 0, "Check fs.enforce_symlinksifowner is correctly enabled in /etc/sysctl.conf": {"res": "OK", "msg": "fs.enforce_symlinksifowner = 1"}}
{"total_errors": 0, "Check fs.enforce_symlinksifowner is correctly enabled in sysctl conf": {"res": "OK", "msg": "fs.enforce_symlinksifowner = 1"}}
```
</div>

Expand All @@ -3163,7 +3166,7 @@ For example:
<div class="notranslate">

```
Check fs.enforce_symlinksifowner is correctly enabled in /etc/sysctl.conf:
Check fs.enforce_symlinksifowner is correctly enabled in sysctl conf:

OK: fs.enforce_symlinksifowner = 1

Expand Down Expand Up @@ -3194,11 +3197,17 @@ Fails if <span class="notranslate">`/usr/local/directadmin/custombuild/options.c

#### symlinksifowner

Checks fs.enforce_symlinksifowner is correctly enabled in <span class="notranslate">`/etc/sysctl.conf`</span>.
Checks fs.enforce_symlinksifowner is correctly enabled in the sysctl configuration.

Applying the sysctl configuration and displaying the current value of the kernel setting described in [this docs section](/cloudlinuxos/cloudlinux_os_kernel/#symlink-owner-match-protection). Every value the kernel accepts (`0`, `1` or `2`) is reported as <span class="notranslate">`OK`</span>. Value `2` is the strictest mode: it also applies the protection to processes inside an LVE.

Fails if the sysctl configuration cannot be applied because some parameter in it is configured incorrectly. Run <span class="notranslate">`/sbin/sysctl --system`</span> to see the full error.

Checking specified kernel setup described in [this docs section](/cloudlinuxos/cloudlinux_os_kernel/#symlink-owner-match-protection) for deprecated value and displaying its current value.
The check is skipped in the OpenVZ environment and on servers without LVE support.

Fails if <span class="notranslate">`/proc/sys/fs/enforce_symlinksifowner`</span> contains value `2` (it is deprecated and can cause issues for the system operation).
::: tip Note
Starting from <span class="notranslate">**lve-utils 6.6.52-1**</span>, value `2` is reported as <span class="notranslate">`OK`</span>. Earlier versions reported it as <span class="notranslate">`FAILED`</span>.
:::


#### check-suexec
Expand Down Expand Up @@ -3363,19 +3372,24 @@ Checks the things on a server of client which are required for correct work of c
Performs diagnostic checks from the list:

* check_cp_diag
* check_kernel_lve
* check_symlinksifowner
* check_suexec
* check_suphp
* check_use_pam
* check_symlinkowngid
* check_existence_of_all_users_packages
* check_da_resellers_packages_files
* check_phpselector
* check_defaults_cfg
* check_php_conf
* check_lve_limits
* check_hidepid
* check_cagefs_partition_disk_quota
* fake_cagefs_checker
* check_low_pmem_limits
* check_mysql_version_mismatch
* check_manager_packages
* CageFS sanity checks (see [check-cagefs](./#check-cagefs)), if CageFS is installed

#### generate-email

Expand All @@ -3391,14 +3405,20 @@ Performs diagnostic checks from the list:
* check_use_pam
* check_symlinkowngid
* check_existence_of_all_users_packages
* check_da_resellers_packages_files
* check_lve_limits
* check_hidepid
* check_cagefs_partition_disk_quota
* check_low_pmem_limits
* check_mysql_version_mismatch
* check_jwt_token
* check_cl_plus_sender_service
* check_node_exporter_service
* check_cmt_packages
* check_lvestats_service
* CageFS sanity checks (see [check-cagefs](./#check-cagefs)), if CageFS is installed. The MultiPHP system default check and the mount points check are not run by cron.

The <span class="notranslate">`cldiag --help`</span> command prints the full list of cron checker names that the <span class="notranslate">`--disable-cron-checkers`</span> key accepts. When CageFS is installed, the list includes the CageFS checkers.

#### doctor

Expand Down