Symptoms
Unable to install 360 Monitoring agent on a Plesk server:
PleskExtMonitoringTaskInstallCloudAgentTask::setupServiceConfig(): Argument #1 ($mysqlUserPassword) must be of type string, null given, called in /opt/psa/admin/plib/modules/monitoring/library/Task/InstallCloudAgentTask.php on line 61
Cause
File /etc/agent360.ini
has [mysql]
section without the line password =
.
This behavior is a confirmed bug with ID EXTPLESK-4861.
Resolution
Note: In some cases it is required to put MySQL password into quotes like password =`some&password`.
- Connect to the server via SSH.
- Adjust
/etc/agent360.ini
file by adding the linepassword =
under[mysql]
section using any text editor like vi.
If the file is absent run this command to re-create it:
# wget -qO /etc/agent360.ini https://monitoring.platform360.io/agent360.ini && sed -i 's/^;//g' /etc/agent360.ini