Search My Techie Guy

Showing posts with label install php snmp cacti. Show all posts
Showing posts with label install php snmp cacti. Show all posts

Tuesday, August 12, 2014

Cacti Variables- PHP SNMP Support: no, PHP SNMP Not Installed

Problem:
When i load my cacti "about.php" page, at the bottom, under Cacti Variables, i see:
PHP SNMP Supportno

And also clicking on the "System Utilities > Technical Support" Page, under PHP Information, i see:
PHP SNMP                                                                                                       Not Installed

The problem was i didn't have the php-snmp packages installed on my server!
# rpm -qa | grep php
php55w-5.5.15-1.w6.x86_64
php55w-cli-5.5.15-1.w6.x86_64
php55w-pdo-5.5.15-1.w6.x86_64
php55w-common-5.5.15-1.w6.x86_64
php55w-mysql-5.5.15-1.w6.x86_64

Solution:
1. Find the php-snmp package that matches your php version and install it:

# yum install http://repo.webtatic.com/yum/el6-testing/x86_64/php55w-snmp-5.5.15-1.w6.x86_64.rpm
Loaded plugins: product-id, replace, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
php55w-snmp-5.5.15-1.w6.x86_64.rpm                                                                                                                                                                        |  30 kB     00:00     
Examining /var/tmp/yum-root-M9Lg4I/php55w-snmp-5.5.15-1.w6.x86_64.rpm: php55w-snmp-5.5.15-1.w6.x86_64
Marking /var/tmp/yum-root-M9Lg4I/php55w-snmp-5.5.15-1.w6.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package php55w-snmp.x86_64 0:5.5.15-1.w6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================
 Package                                           Arch                                         Version                                              Repository                                                             Size
==========================================================================================================
Installing:
 php55w-snmp                                       x86_64                                       5.5.15-1.w6                                          /php55w-snmp-5.5.15-1.w6.x86_64                                       107 k

Transaction Summary
===========================================================================================================
Install       1 Package(s)

Total size: 107 k
Installed size: 107 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php55w-snmp-5.5.15-1.w6.x86_64                                                                                            
Installed products updated.
Installed:
php55w-snmp.x86_64 0:5.5.15-1.w6                                                                                                                                                                                               
Complete!
#
# rpm -qa | grep php
php55w-5.5.15-1.w6.x86_64
php55w-cli-5.5.15-1.w6.x86_64
php55w-pdo-5.5.15-1.w6.x86_64
php55w-snmp-5.5.15-1.w6.x86_64
php55w-common-5.5.15-1.w6.x86_64

php55w-mysql-5.5.15-1.w6.x86_64

2. Restart Appache:

# /etc/init.d/httpd start
                                                          [  OK  ]
3. Test Again, should look like below:

PHP SNMP Installed
PHP SNMP Support: yes