-
Book Overview & Buying
-
Table Of Contents
Cacti 0.8 Beginner's Guide
By :
Now that you have created the import file, let's import it.
Logon to the command line of your Cacti server.
Go to the cli subdirectory under the Cacti directory:
cd /Var/www/html/cact/cli
Place the import_user.php script in this directory.
Put the user_list.txt file in the /tmp directory.
Run the following command to add the users to the Local Realm with the _CustomerA_user as the template user:
php import_user.php /tmp/users_list.txt _CustomerA_user 0

You just imported all users from the import file to your Cacti installation. The users now also have the same permissions as the Template User. Go to the User Management section of Cacti and you will see the users listed there:

Let's take a closer look at the CLI script import_user.php. Besides reading the command line options and several print statements, it consists of three major parts. The first part deals with some input validation for the Realm ID, the second part reads the...
Change the font size
Change margin width
Change background colour