Documentation/Agent

Auto copy templates

David Mytton
posted this on Jan 28 17:24

When working within a cloud/virtualised environment, it is common to use a single standardised disk image for all your servers to boot from. Server Density allows you to use the same config file and agent for every server and it will detect when the server is actually different. It will automatically create a copy of the original server (which the agent key actually belongs to) along with its alerts so you don't need to do anything.

Recommended setup

  1. Create a new server within Server Density and configure any alerts you want for that server. These settings will be copied to any new server.
  2. Be sure to tick the Enable Auto Copy box when creating the server. You can also edit an existing server to enable this.
  3. Install the agent onto your server using our OS packages for Red Hat/Fedora or Debian/Ubuntu. These include init scripts so the agent starts on boot.
  4. Configure the agent using the agent key (and any other settings you want) from the server you created in step 1.
  5. Create your OS image.

Magic

When you launch a new instance from your image, the agent will automatically start and register itself as a copy of the server created in step 1. This will include any alerts and will start monitoring immediately.

Notes

  • The server in Server Density will be named the same as the hostname for the new server, although you can change this once the server has been added.
  • Detection of a new server with the same agent key is based on the hostname of the new server - it must be different from the old server.