-
Book Overview & Buying
-
Table Of Contents
Cacti 0.8 Beginner's Guide
By :
Logon to your Cacti system.
Change to the Cacti CLI directory:
cd /var/www/html/cacti/cli
Execute the following command:
php add_tree.php
You will see the different options for this command:

As you
can see you can add trees, hosts, or even single graphs to a tree or sub-tree. Let's add the localhost device to a tree. Use the following command to retrieve a list of hosts:
php add_tree.php --list-hosts
Use the following command to get a list of existing trees:
php add_tree.php --list-trees
Now get a list of the nodes from a tree:
php add_tree.php --tree-id=2 --list-nodes
You will see a list of the existing nodes for that tree as shown in the following screenshot:

Now let's
add the localhost device to Site
A
:
php add_tree.php --type=node --node-type=host --tree-id=2 --parent-node=9 --host-id=1
This will add the localhost device (--host-id=1) to the Site A node ( --parent-node=9) under the Customer A tree (--tree-id=2).
You will see a confirmation once...
Change the font size
Change margin width
Change background colour