Time for action – installing the WSO2 WebService framework
Logon to your Cacti server.
Change to the
tmp
directory:cd /tmp
Download the WSO2 plugin:
wget http://dist.wso2.org/products/wsf/php/2.1.0/wso2-wsf-php-src-2.1.0.tar.gz
Install some required packages:
yum install php-devel php-xml libxml2-devel
Extract the
tar.gz
file:tar -xzvf wso2-wsf-php-src-2.1.0.tar.gz
Change to the new directory:
cd wso2-wsf-php-src-2.1.0
Run configure to automatically generate the make files:
./configure
This will take some time to complete. Once finished, start the build process:
make
If the build process finished successfully, install the binaries:
make install
Create a file to tell PHP to load the new module:
echo "extension=wsf.so" >> /etc/php.d/wsf.ini
Check if the module loads by issuing the following command:
php –m
The newly added module should be listed in the output.
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.