Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Cacti 0.8 Beginner's Guide

You're reading from  Cacti 0.8 Beginner's Guide

Product type Book
Published in Mar 2011
Publisher Packt
ISBN-13 9781849513920
Pages 348 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Thomas Urban Thomas Urban
Profile icon Thomas Urban

Table of Contents (23) Chapters

Cacti 0.8Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing Cacti 2. Using Graphs to Monitor Networks and Devices 3. Creating and Using Templates 4. User Management 5. Data Management 6. Cacti Maintenance 7. Network and Server Monitoring 8. Plugin Architecture 9. Plugins 10. Threshold Monitoring with Thold 11. Enterprise Reporting 12. Cacti Automation for NOC Mobile Access / Administration Online Resources Further Information Pop Quiz Answers
Index

Time for action – adding the realm permission functions


You're going to register two realms, one realm allows the viewing of the enhanced information, the other one allows the creation of this information. You're going to use the files from Example 1 for this part.

  1. Open the setup.php from the cbEnhancedInfo directory.

  2. Go to the end of the first function named plugin_cbEnhancedInfo_install.

  3. There's a comment displayed:

       /* The realm permissions are missing here --->*/
       /* <--- */
  4. Between these two errors, enter the following line:

        api_plugin_register_realm('cbEnhancedInfo',
                   '',
                   'Plugin - cbEnhancedInfo - View Information',
                   2701);
  5. This line will register the permission realm which allows a user to view the enhanced information on the tree-view page.

  6. After the code you just entered, add the following lines:

    api_plugin_register_realm('cbEnhancedInfo',
    'cbEnhancedInfo_listInformation.php,cbEnhancedInfo_addInformation.php',
    'Plugin - cbEnhancedInfo...
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 $15.99/month. Cancel anytime}