Configuring CACTI

The installation of CACTI is beyond the scope of this document and I'll assume you already have it setup and running, there are many guides our there to show you how to install this product. I will however show how I did it.

Installing Cacti on CentOS6

For CentOS6.x installing is a snap

If you don't already have the EPEL repository installed into /etc/yum.repos.d/ then do this first.

We can verify that the script it working correctly and that the LUA xAP caching applet it working by running a simple test. I'm assuming here that you have a 1wire temperature sensor connected. Adjust this test for a suitable endpoint if you don't.
The arguments are <TARGET> <SECTION> <KEY>

Create external xAP data template

First we need to register this external script by adding a new Collection Method

Once we have select the ADD hyperlink complete the following form, this sets up the external script and configures 1 output value and 3 input values.

Now we need to create a DATA Template - you can see we will add a xAPQuery item here.

Give the data template a name - I've called my simply xAPQuery and attached the “DATA INPUT METHOD” we created earlier.

Creating a data source

Now the template is in PLACE we can create a DATA SOURCE, this is the thing that collects data about some xAP endpoint we define. You can see I've already created some early and they appear as listed items in the table below.

For each xAP data value you want to collect data on repeat this process. You will perform this action for each Filter you created in the xAP LUA data cache.

To create the data source to we use the xAPQuery template we defined earlier.

Want we are going to collect is the outside temperature reading from the 1wire device. Complete the form and press CREATE. Here we supply the xAP TARGET, SECTION and KEY.

One the create button has been pressed we can provide addition data to the xAPQuery script that collect this data.

Creating a GRAPH

Now the exciting bit we create graph to plot the information gathered. You can delete and create new graph without affecting the data that is being collected, so feel free to experience in this section on your own. The image below shows the graphs that I have registered.

Use the ADD hyperlink to create a new graph

We don't have any predefined graph template or host we need to attached this data to.

Give your graph a TITLE

Now press ADD so that we can attach the DATA SOURCES to this graph

Now we attach the DATA SOURCE we created early as a graph data item.

Putting it on the Graph Console Tab

That's all there is to it!

Polling faster

I like to poll every minute instead of the default 5 mins.

Then make an adjustment to your cron file to fire the poller every minute.