Collectd on Arista EOS

In a high performance network infrastructures you need correct and detailed monitoring data. Ofcourse you can use Cacti and SNMP, but in most cases that is just not good enough.

At Schuberg Philis we use a Prometheus time series database, the Grafana visualisation platform and a number of other software tools surrounding the graphite metrics protocol.

Running collectd on the switches has a lot of advantages: it is an industry standard community package, you can automate the distribution and it's fast.

With custom queries you can create graphs for all the interface statistics (Tx/Rx packets, errors, etc) but also for cpu details and display them in a dashboard.

In order to get started the switch needs to have the necessary RPMs.
You can configure the switch to access the web or copy the files to the switch.
Below is the the Yum download version.


Edit /etc/yum.conf and add proxy=https://[your proxy server]:8080

Repo access

Create and edit /etc/yum.repos.d/fedorea_updates.repo to get to the Fedora 14 release.

Install Collectd


Starting Collectd

The Collectd agent will not start out of the box, you will need to add the following line in the startup file /etc/rc.d/init.d/collectd: LD_PRELOAD=/usr/lib/

Edit and create the config files to load the Plugins, the Grafana server and the Carbonwriter to send the data.

Download the Carbon writer from Github and put /usr/lib/collectd/ in /usr/lib/collectd.

Create the /etc/collectd.d/carbon_writer.conf and add the Grafana receiver host.

Create the /etc/collectd.d/write_graphite.conf

Start the collectd daemon: service collectd start after you made sure the 2013 port is open to your collector host.
Verify the /var/log/messages file if the daemon is started.


Using the swix

Another (and better) way of installing Collectd is using a .swix file.
For this you still need the Repo access:

In order to build the swix file you will need yum-utils to get all the dependencies.

Create a folder in /mnt/flash/collectd to hold all the needed files.

Generate the hashes for the manifest file and create the manifast file.

Now you can build the swix file and use it as an extension in EOS.

Now you can install the extension from cli or distribute the file to other switches for installation.



Not Published

0/1000 characters
Go Top