Command Line Interface
Though Cacti's frontend is web-based, you can still do some task like rebuild poller cache, add new devices, add graphs, and so on, from the console. Here, I am showing you some basic syntax to maintain Cacti from command line. If you are not an advanced user, just skip this section. To see all the available command line PHP scripts, open the terminal and give this command:
$ ls /path/to/cacti/cli
You will get some PHP scripts. Some of them are described below:
1.
add_device.php:
This script is to add a device.2.
add_graphs.php:
This script is to add graphs.3.
add_perms.php:
This script is to add permissions to tree items.4.
add_tree.php:
This script is to add objects to a tree.5.
copy_user.php:
This is a Cacti user copy utility. It is highly recommended that you use the web interface to copy users as this script will only copy local Cacti users.6.
poller_graphs_reapply_names.php:
This script is to rename a existing graph.7.
poller_reindex_hosts.php:
This...