So in our earlier post we told you how to get cacti up and running now lets talk about setting up some host to get some use of it.
The first thing you will need to do is login to your cacti web gui.
Once you do you will see this screen.
Once at this screen click on ‘Create Devices for your network’

Add host screen
On this screen you will want to click the ‘Add’ Button.

Now you will see the template for adding a host. We are going to add our Nagios box so we can keep track of the traffic we are sending out.
Once you input the fields it will look like this. You can use an IP or a dns name, we are going to be using snmp for graphing because it allows us to get he most out of our data.
This is our filled out template ready for the next step.

You will notice in the top left that we were successful and we are now getting snmp data from our host.
Now we are going to add a graph to this host. In the upper right hand corner click on ‘ Create graph for this host’
Here you will need to pick the interface you will want to collect data on, for us it is Eth0 the one with the ip address. Check the box next to the interface and choose what you type of graph to create. We chose in/out Bytes with total bandwidth. When you click create you should get a confirmation that the graph was created.
Now we can go into graph management and click on our host to see that everything is working.
Next thing we want to do is add this graph to our tree. to do this you will want to go into ‘Graph management’ check the box next your corresponding host go into the drop down at the bottom of the screen choose ‘ Place on tree (default tree)’ and press go.

You will get a confirmation the host was added, and now if you click on the ‘Graphs’ button at the top let. You should be able to see not only the local machine graphs but your new host.

Hope this helps you out and gets you started graphing your host with cacti.
Tags:
Cacti,
How to,
linux,
open source