Symptoms
-
The following error is shown in the output of
agent360 test
command:CONFIG_TEXT: 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:
CONFIG_TEXT: 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
-
Connect to the server via SSH.
-
Re-install
psutil
Python module:# pip3 uninstall psutil
# pip3 install --upgrade psutil
-
Restart agent360 service:
# systemctl restart agent360
Comments
0 comments
Please sign in to leave a comment.