Time for action – adding a Cacti tree

  1. Logon to your Cacti system.
  2. Change to the Cacti CLI directory:
    cd /var/www/html/cacti/cli
    
  3. Execute the following command:
    php  add_tree.php
    
  4. You will see the different options for this command:
    Time for action – adding a Cacti tree
  5. 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
    
  6. Use the following command to get a list of existing trees:
    php add_tree.php --list-trees
    
  7. Now get a list of the nodes from a tree:
    php add_tree.php --tree-id=2 --list-nodes
    
  8. 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.