Reader small image

You're reading from  Cacti 0.8 Beginner's Guide

Product typeBook
Published inMar 2011
Reading LevelBeginner
PublisherPackt
ISBN-139781849513920
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Thomas Urban
Thomas Urban
author image
Thomas Urban

Thomas Urban is the owner of Urban-Software.de, a software and consulting services company providing add-ons, plugins, and services for the Cacti Performance Monitoring systems. He has been in the consulting business for more than 5 years and has been creating web applications for over 20 years building reporting interfaces, network management software, asset management sites, and much more. He is a part of the Cacti community and is known as Phalek in the Cacti forums, where he is among the Top 10 contributors. He started writing the first Cacti Beginners Guide for Cacti 0.8 back in 2011. The second edition is his second official effort.
Read more about Thomas Urban

Right arrow

Managing users with the Cacti CLI


Users can not only be managed using the web interface, but can also be created using the Cacti CLI scripts. In Cacti version 0.8.7g, the only script which exists is one which copies an existing user in order to create a new one out of it. An equivalent to the Batch Copy functionality is not available for the command line interface.

Let's assume that you need to add a large number of users to your Cacti system. You have two options for doing so:

  • Use the web-based user management page to create each user

  • Use the Copy functionality to copy an existing user as a new user

Both options involve quite a few manual steps.

Importing a list of users

In order to reduce the manual work needed to create a large group of users within Cacti, you are going to create a small PHP-based script that takes a list of users as input and creates the users based on a Template User within Cacti.

First, create a file called user_list.txt with the following content:

user1;User Name1
user2...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Cacti 0.8 Beginner's Guide
Published in: Mar 2011Publisher: PacktISBN-13: 9781849513920

Author (1)

author image
Thomas Urban

Thomas Urban is the owner of Urban-Software.de, a software and consulting services company providing add-ons, plugins, and services for the Cacti Performance Monitoring systems. He has been in the consulting business for more than 5 years and has been creating web applications for over 20 years building reporting interfaces, network management software, asset management sites, and much more. He is a part of the Cacti community and is known as Phalek in the Cacti forums, where he is among the Top 10 contributors. He started writing the first Cacti Beginners Guide for Cacti 0.8 back in 2011. The second edition is his second official effort.
Read more about Thomas Urban