[BUG] Incorrect CPU/RAM/SWAP usage #6

Closed
opened 2026-01-15 11:33:40 +08:00 by yan · 6 comments
Owner

Originally created by @thistehneisen on GitHub (Jan 14, 2019).

Originally assigned to: @kmvan on GitHub.

  • OS: Linux ilze 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • PHP version: 7.0.33

** Report content **
https://www.nils.digital/x.php

Originally created by @thistehneisen on GitHub (Jan 14, 2019). Originally assigned to: @kmvan on GitHub. - OS: Linux ilze 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux - PHP version: 7.0.33 ** Report content ** https://www.nils.digital/x.php
yan added the question label 2026-01-15 11:33:40 +08:00
yan closed this issue 2026-01-15 11:33:41 +08:00
Author
Owner

@kmvan commented on GitHub (Jan 14, 2019):

Thanks your report.
Is it cPanel virtual host?

@kmvan commented on GitHub (Jan 14, 2019): Thanks your report. Is it cPanel virtual host?
Author
Owner

@thistehneisen commented on GitHub (Jan 14, 2019):

It's Plesk on a dedicated server

@thistehneisen commented on GitHub (Jan 14, 2019): It's Plesk on a dedicated server
Author
Owner

@kmvan commented on GitHub (Jan 14, 2019):

Thanks, I got the reason.

Plesk's open_basedir setting is: /var/www/vhosts/nils.digital/:/tmp/.
The CPU/memory/network stats information requires that the dir /proc/ should be read.
Like /var/www/vhosts/nils.digital:/tmp/:/proc/.
So you can add :/proc/ to open_basedir in php.ini and works fine.

@kmvan commented on GitHub (Jan 14, 2019): Thanks, I got the reason. Plesk's `open_basedir` setting is: `/var/www/vhosts/nils.digital/:/tmp/`. The CPU/memory/network stats information requires that the dir `/proc/` should be read. Like `/var/www/vhosts/nils.digital:/tmp/:/proc/`. So you can add `:/proc/` to `open_basedir` in php.ini and works fine.
Author
Owner

@thistehneisen commented on GitHub (Jan 14, 2019):

True, that did work (you can see it live). The disk usage is unavailable, I guess that's permissions also?

@thistehneisen commented on GitHub (Jan 14, 2019): True, that did work (you can see it live). The disk usage is unavailable, I guess that's permissions also?
Author
Owner

@kmvan commented on GitHub (Jan 14, 2019):

The disk usage information calls by disk_total_space('/') function, you can comment the open_basedir config if you want to show disk usage info. But not recommend, it is dangerous permission.

@kmvan commented on GitHub (Jan 14, 2019): The disk usage information calls by `disk_total_space('/')` function, you can comment the `open_basedir` config if you want to show disk usage info. But not recommend, it is dangerous permission.
Author
Owner

@kmvan commented on GitHub (Jan 14, 2019):

Can be talking continue after closed the issue.

@kmvan commented on GitHub (Jan 14, 2019): Can be talking continue after closed the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yan/archived-x-prober#6