Book Image

Cacti 0.8 Beginner's Guide

By : Thomas Urban
Book Image

Cacti 0.8 Beginner's Guide

By: Thomas Urban

Overview of this book

Cacti is a performance measurement tool that provides easy methods and functions for gathering and graphing system data. You can use Cacti to develop a robust event management system that can alert on just about anything you would like it to. But to do that, you need to gain a solid understanding of the basics of Cacti, its plugin architecture, and automation concepts. Cacti 0.8 Beginner's Guide will introduce you to the wide variety of features of Cacti and will guide you on how to use them for maximum effectiveness. Advanced topics like the plugin architecture and Cacti automation using the command-line interface will help you build a professional performance measurement system.Designed as a beginner's guide, the book starts off with the basics of installing and using Cacti, and also covers the advanced topics that will show you how to customize and extend the core Cacti functionalities. The book offers essential tutorials for creating advanced graphs and using plugins to create enterprise-class reports to show your customers and colleagues. From data templates to input methods and plugin installation to creating your own customized plugins, this book provides you with a rich selection of step-by-step instructions to reach your goals. It covers all you need to know to implement professional performance measurement techniques with Cacti and ways to fully customize Cacti to fit your needs. By the end of the book, you will be able to implement and extend Cacti to monitor, display, and report the performance of your network exactly the way you want.
Table of Contents (23 chapters)
Cacti 0.8Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
Index

Time for action – installing the WSO2 WebService framework


  1. Logon to your Cacti server.

  2. Change to the tmp directory:

    cd /tmp
    
  3. Download the WSO2 plugin:

    wget http://dist.wso2.org/products/wsf/php/2.1.0/wso2-wsf-php-src-2.1.0.tar.gz
    
  4. Install some required packages:

    yum install php-devel php-xml libxml2-devel
    
  5. Extract the tar.gz file:

    tar -xzvf wso2-wsf-php-src-2.1.0.tar.gz
    
  6. Change to the new directory:

    cd wso2-wsf-php-src-2.1.0
    
  7. Run configure to automatically generate the make files:

    ./configure
    
  8. This will take some time to complete. Once finished, start the build process:

    make
    
  9. If the build process finished successfully, install the binaries:

    make install
    
  10. Create a file to tell PHP to load the new module:

    echo "extension=wsf.so" >> /etc/php.d/wsf.ini
    
  11. Check if the module loads by issuing the following command:

    php –m
    
  12. The newly added module should be listed in the output.

  13. Restart the web server so it loads the new extension:

    /etc/init.d/httpd restart
    

What just happened?

You just installed the WSO2 WebService Framework for PHP which is required for the nmidWebService plugin to work correctly. This framework provides some WebService functionality which the native PHP-SOAP module is not able to provide.

Installing the nmidWebService plugin

Now that you've installed the basic requirement for the nmidWebService plugin, let's look at how to install and configure the plugin itself.