The following steps are for setting up monitoring on one Linux computer or server at a time.
> Click here to log into Monro Cloud Monitoring.
> Log in with either your mobile number or email address.
> Open a text editor and change the ONE highlighted section only:
if [ -f /usr/bin/apt ]; then sudo apt update && sudo apt install -y zabbix-agent2; else sudo dnf install -y zabbix-agent2 || sudo yum install -y zabbix-agent2; fi && sudo sed -i "s/^Server=127.0.0.1/Server=116.202.20.198/" /etc/zabbix/zabbix_agent2.conf && sudo sed -i "s/^ServerActive=127.0.0.1/ServerActive=116.202.20.198/" /etc/zabbix/zabbix_agent2.conf && sudo sed -i "s/^Hostname=Zabbix server/Hostname=$(hostname)/" /etc/zabbix/zabbix_agent2.conf && sudo sed -i "s/^# HostMetadata=/HostMetadata=COMPANY-NAME, Linux/" /etc/zabbix/zabbix_agent2.conf && echo -e "TLSConnect=psk\nTLSAccept=psk\nTLSPSKIdentity=PSK_001\nTLSPSKFile=/etc/zabbix/zabbix_agent_psk.key" | sudo tee -a /etc/zabbix/zabbix_agent2.conf && echo "1234567890abcdef1234567890abcdef" | sudo tee /etc/zabbix/zabbix_agent_psk.key && sudo systemctl restart zabbix-agent2 && sudo systemctl enable zabbix-agent2 && echo -e "\n\nDONE!"
> Change the one highlighted section to the company name (case sensitive).
> If you don't remember the exact company name you chose, open the Monro Cloud dashboard.
> Navigate to: "Data collection" - "Hosts" - "Create Host" - "Select" (next to Host Group) to see the Host Group name (this is the value you need to add in the highlighted section above).
> Run script from the previous step.
> Wait at least 5 minutes.
> Navigate to Data Collection > Hosts
> Confirm you can see your new Linux host.
Your Linux device is now connected using a generic secret key - change this for improved security.
> Run the following command on your Linux server:
sudo nano /etc/zabbix/zabbix_agent_psk.key
> Change the key to a secure 32-character key (save this somewhere secure like a password safe).
> Once changed, press CTRL + O
> Press enter.
> Open the Monro Cloud dashboard.
> Navigate to Data Collection > Hosts.
> Click your Linux host.
> Click Encryption.
> Click Change PSK.
> Enter PSK_001 as the PSK Identity
> Enter the same secret key you created in the previous step as the PSK value.
> Click Update.
> Select Dashboards to see active information about your server.