Symptoms
-
The installation of the 360 Monitoring agent fails with the error on Ubuntu 16.04:
agent360.sh: line 722: [: Installer exited with error code 0. See agent360.log for details.: integer expression expected
The log
/var/log/agent360.log
contains the line:agent360.sh: line 170: apt-get upgrade returned error code 100. Please see agent360.log for details.: command not found
-
On CentOS 6, the installation fails with the following messages:
Searching for agent360
Reading https://pypi.python.org/simple/agent360/
Couldn't find index page for 'agent360' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for agent360
error: Could not find suitable distribution for Requirement.parse('agent360')
Searching for netifaces
Reading https://pypi.python.org/simple/netifaces/
Couldn't find index page for 'netifaces' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for netifaces
error: Could not find suitable distribution for Requirement.parse('netifaces')
Searching for psutil
Reading https://pypi.python.org/simple/psutil/
Couldn't find index page for 'psutil' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for psutil
error: Could not find suitable distribution for Requirement.parse('psutil')
Generating a server id ...
agent360.sh: line 920: hello360: command not found
which: no agent360 in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/bin/)
Cause
The OS installed on the server reached its End-Of-Life period so the vendor stopped providing updates for it.
Resolution
Upgrade the OS (e.g. by using this guide on a Plesk server) or move the data to a server with a newer OS (migration guide for Plesk might be found here).