Symptoms
After installing the 360 monitoring software on the server, you may find that it doesn't load any information, and temporarily, the response below will appear in a dialogue box:
Error: [POST] "https://api.monitoring360.io/metrics/get-metrics-data": 404
Additionally, you may find that the "Sign up" button for 360 monitoring does not complete the sign-in, and after completing the sign-in process in it loops back to the initial "Sign up" page.
Description
This can occur if the 360 monitoring application is missing configuration information necessary for the cPanel version of the plugin. This can occur if the plugin was installed incorrectly. For cPanel, we have created an initialization script to handle installation.
Workaround
Remove any invalid agent360 data and use the initialization script to install and initialize the monitoring plugin:
1. Access your server using SSH as the root user.
2. Move the invalid token file:
mv -v /etc/agent360-token.ini{,.$( date +%Y%m%d )}
3. Move the data directory:
mv -v /root/.360monitoring{,.$( date +%Y%m%d )}
4. Move the systemd service file:
mv -v /etc/systemd/system/agent360.service{,.$( date +%Y%m%d )}
5. Reload systemd's configuration:
systemctl daemon-reload
6. Re-install the cpanel-monitoring-plugin package:
dnf reinstall cpanel-monitoring-plugin
7. Run the script to install and initialize the agent360 monitoring plugin:
/scripts/initialize_360monitoring
8. Restart the monitoring service:
systemctl restart agent360.service
9. Restart the monitoring service:
systemctl restart agent360.service