Using our official installer shell script connected to our API, you can automatically install the agent and have it create the device in your account. You can also specify a group to automatically inherit group alerts.
This article is outdated and will eventually be removed. See v2 agent shell script installer
Set up the API
- Log in to your Server Density account.
- Click your name in the top left, then click Preferences.
- Go to the Security tab then in the bottom right, enter a name for the API application you're building so you can easily recognise it in the future e.g. "install.sh".
- Press Enter and your API token will be shown as a 32 character ID.
Execute the script
Download the installer script and make it executable:
curl -Lk https://www.serverdensity.com/downloads/agent-install.sh > install.sh chmod +x install.sh
The script is then executed with your account URL, the API token you created above and, optionally, a group name to create the device in:
./install.sh -a https://example.serverdensity.io -t f9ce01e1e962b59798d6350eb8cfce4b -g GroupName -T "Tag Name"
This will install the agent and create the device in your account named after the hostname, put it in the GroupName
group with the tag Tag Name
.
Comments