Automatic (v1) agent installation - Shell script / API

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

  1. Log in to your Server Density account.
  2. Click your name in the top left, then click Preferences.
  3. 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. "".
  4. 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 >
chmod +x

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: 

./ -a -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.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.