Articles in this section

360 Monitoring does not handle server's data with CPU shown as 100%

Plesk 360 Platform 360

Symptoms

  • The following error is shown in the output of agent360 test command:

    network:
    cpu:
    Execution error: module 'psutil' has no attribute 'cpu_stats'
    swap:
    Execution error: module 'psutil' has no attribute 'swap_memory'

  • 360 Monitoring log file has the following:

    AttributeError: module 'psutil' has no attribute 'cpu_stats'
    2025-01-07 12:11:42,045 ERROR plugin_exception
    Traceback (most recent call last):
    File "/usr/local/lib/python3.6/site-packages/agent360/agent360.py", line 503, in _execution
    payload = plugin.run(self.config)
    File "/usr/local/lib/python3.6/site-packages/agent360/plugins/network.py", line 27, in run
    interfaces = psutil.net_io_counters(pernic=True)

  • Only "Load Average" graph shows data when the other is empty.

Cause

Outdated/corrupted psutil Python module.

Resolution

  1. Connect to the server via SSH.

  2. Re-install psutil Python module:

    # pip3 uninstall psutil

    # pip3 install --upgrade psutil

  3. Restart agent360 service:

    # systemctl restart agent360

Note: waiting up to 30 minutes after the resolution may be required to make it work.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.