CentOS / Red Hat servers

The Server Density agent is delivered as an RPM package for current RHEL based distros including CentOS, CloudLinux, Oracle, Red Hat and Scientific Linux. The core agent is required for monitoring key metrics, with plugins installed as an additional package. The agent and plugins will be kept up to date in-line with your own policy (nightly, weekly, manually etc).

Upgrading from agent v1? View the upgrade instructions.

Please note there are separate instructions for 32 bit CentOS/RHEL 6 in this article

Automatic installation

You can install the agent automatically using our shell script, or with our Puppet, Chef, Ansible and Salt modules. See automatically scaling and deploying the agent.

Prerequisites

  • A device created in your Server Density account (find out how to create a device in the UI)
  • sudo (root access) is required but the agent runs as its own user (sd-agent) once installed.
  • The agent requires sysstat to be installed to collect some key metrics. This will be installed as a dependency during installation.

 

64 bit CentOS/RHEL installs:

Add repository to yum

Prepare your server for the agent by adding the repo and update the package lists.

sudo nano /etc/yum.repos.d/serverdensity.repo

Paste in the following then press Ctrl+X to save:

[server-density]
name=Server Density Repository for Enterprise Linux $releasever - $basearch
baseurl=https://archive.serverdensity.com/el/$releasever
failovermethod=priority
enabled=1
gpgcheck=1

Install the Repository Key

rpm --import https://archive.serverdensity.com/sd-packaging-public.key

Install the IUS repo 

curl https://setup.ius.io | bash

Install the agent 

sudo yum install sd-agent

 

Configure the agent

sudo nano -w /etc/sd-agent/config.cfg

Enter the following values. Other settings are optional.

[Main]
sd_account:
agent_key:

Restart the agent after any config changes:

sudo /etc/init.d/sd-agent restart

You should now see data posting back to Server Density. If you're having trouble and need assistance, check out agent troubleshooting or get in touch.

Plugins

The agent can use a number of additional plugins, read information about plugins or check our plugin directory

CentOS/RHEL 6 32 bit installs:

Add repository to yum

Prepare your server for the agent by adding the repo and update the package lists.

sudo nano /etc/yum.repos.d/serverdensity.repo

Paste in the following then press Ctrl+X to save:

[server-density]
name=Server Density Repository for Enterprise Linux $releasever - $basearch
baseurl=https://archive.serverdensity.com/el/$releasever
failovermethod=priority
enabled=1
gpgcheck=1

Install the Repository Key

rpm --import https://archive.serverdensity.com/sd-packaging-public.key

Install IUS repo

yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
yum -y install https://{CentOS/RHEL}6.iuscommunity.org/ius-release.rpm

Replace the {} in the above command with your distribution

sed -i "s/\$basearch/i686/" /etc/yum.repos.d/ius-archive.repo

Install the agent

yum install sd-agent --enablerepo=ius-archive --disablerepo=ius

Manual installation instructions are available from ius if you prefer

Configure the agent

sudo nano -w /etc/sd-agent/config.cfg

Enter the following values. Other settings are optional.

[Main]
sd_account:
agent_key:

Restart the agent after any config changes:

sudo /etc/init.d/sd-agent restart

You should now see data posting back to Server Density. If you're having trouble and need assistance, check out agent troubleshooting or get in touch.

Plugins

The agent can use a number of additional plugins, read information about plugins or check our plugin directory

 

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

Comments

Monday  —  Friday.

10am  —  6pm UK.

Dedicated Support.