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 – presenting data on the tree view page


You're going to present the enhanced information as a table embedded in a table row.

  1. Go to the cbEnhancedInfo_tree_after function again and search for the following code:

       /* Example 3 - Data presentation is missing here ---> */
       /* <--- */
  2. As you can see, there's already some data between these two lines. If you're now going to the tree view page for your localhost device, you should actually see some data being displayed.

  3. Replace the lines between the two code lines with the following code:

    ?>
    <tr bgcolor='#6d88ad'><td>
        <tr bgcolor='#a9b7cb'>
            <td colspan='3' class='textHeaderDark'>
                    <strong>Enhanced Information</strong>
            </td>
        </tr>         
        <tr align='center' style='background-color: #f9f9f9;'>
            <td align='center'>
    <?php
    
    print "<table border=1>\n";
    print " <tr>\n";
    print "  <td>Contact Address...
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}