Manually installing the agent
If you have difficulties installing the agent with UI, you can install it manually on the device
Method 1: Installing the agent with the provided shell script
git clone https://github.com/SquirrelCorporation/SquirrelServersManager-Agent
cd ./SquirrelServersManager-Agent
Replace below MASTER_NODE_URL by the URL to SSM
./install.sh -a -u MASTER_NODE_URL
Please note that this method will create a device in SSM. If the device has already been added or a device with the same IP already exists, the agent will fail to start. If the device already exists in SSM, use
./install.sh -a -u MASTER_NODE_URL -s DEVICE_ID
and replace DEVICE_ID by the uuid of the device in SSM (Inventory, click on the IP and copy the UUID showed in the right drawer)
Method 2: Building & Installing the agent manually
git clone https://github.com/SquirrelCorporation/SquirrelServersManager-Agent
cd ./SquirrelServersManager-Agent
vim .env
Edit the API_URL_MASTER value by the URL of SSM
npm install
npm build
Please note that this method will create a device in SSM. If the device has already been added or a device with the same IP already exists, the agent will fail to start. If the device already exists in SSM, create a hostid.txt file containing the UUID of the device in SSM.
You can start manually the agent from now one
node ./build/agent.js
However, you will need some kind of services scheduler so the agent is watchdoged and started at startup. We recommend using PM2
pm2 start -f ./build/agent.js
pm2 startup
pm2 save