Time for action – adding a Cacti tree
- 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 ...
Get Cacti 0.8 Beginner's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.