Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cacti 0.8 Network Monitoring

You're reading from   Cacti 0.8 Network Monitoring Monitor your network with ease!

Arrow left icon
Product type Paperback
Published in Jul 2009
Publisher Packt
ISBN-13 9781847195968
Length 132 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Dinangkur Kundu Dinangkur Kundu
Author Profile Icon Dinangkur Kundu
Dinangkur Kundu
S.M. Ibrahim Lavlu S.M. Ibrahim Lavlu
Author Profile Icon S.M. Ibrahim Lavlu
S.M. Ibrahim Lavlu
Arrow right icon
View More author details
Toc

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. 1. add_device.php: This script is to add a device.

  2. 2. add_graphs.php: This script is to add graphs.

  3. 3. add_perms.php: This script is to add permissions to tree items.

  4. 4. add_tree.php: This script is to add objects to a tree.

  5. 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. 6. poller_graphs_reapply_names.php: This script is to rename a existing graph.

  7. 7. poller_reindex_hosts.php: This...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image