CloudLinux Statistics showing API connection errors? Print

  • CloudLinux Statistics showing API connection errors?
  • 0

 

First of all, run the following command to get the result, if your server is able to connect with CloudLinux servers:

cloudlinux-summary get-remote

If the output is like this:

[root@srv3 ~]# cloudlinux-summary get-remote
{"result": "HTTPSConnectionPool(host='stat-api.imunify360.com', port=443): Max retries exceeded with url: /api/clos-stat?system_id=ID-292278598&security_token=e4YXGQUeXnHN5YCWk16JVqbNwBIDqP1wJ5j4AFN2MTxm8z9f74P7JxP7LVb2Ngul (Causedby NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1538c2062450>: Failed to establish a new connection: [Errno -2] Name or service not known'))", "timestamp": 1659363564.2624013}
[root@srv3 ~]#

Check the LVE utils binary version run below command:

rpm -q --whatprovides /opt/alt/python37/lib/python3.7/site-packages/clsummary/summary.py

Output may like:

[root@srv3 ~]# rpm -q --whatprovides /opt/alt/python37/lib/python3.7/site-packages/clsummary/summary.py
lve-utils-6.3.7-1.el7.cloudlinux.x86_64
[root@srv3 ~]#

If an old version of lve-utils is installed on your server, update it, else, reinstall: run below command :

yum reinstall lve-utils -y

Once it will be reinstalled, run the first command again to verify the connection once more. If you get the output like this:

[root@srv3 ~]# cloudlinux-summary get-remote
{"data": {"multiple_servers": false, "result": null}, "result": "success", "statistic_enabled": true, "timestamp": 1659363674.2935371}
[root@srv3 ~]#

Now run this command:

cloudlinux-summary --send --json

That's all. The occurred problem should be fixed now.

 

 

 


Was this answer helpful?

« Back

Join us on Telegram channel

Telegram

Send Message