Getting cacti working without php-snmp?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
vehementi
Posts: 2
Joined: Mon Sep 26, 2011 3:03 pm

Getting cacti working without php-snmp?

Post by vehementi »

Hi,

I am using RHEL 6, and I think there is no php-snmp package.

[root@RRDtool cacti]# rpm -qa | grep -i snmp
net-snmp-libs-5.5-31.el6.x86_64
net-snmp-utils-5.5-31.el6.x86_64
net-snmp-5.5-31.el6.x86_64
net-snmp-devel-5.5-31.el6.x86_64

[root@RRDtool cacti]# yum search php-snmp
Loaded plugins: refresh-packagekit, rhnplugin
Warning: No matches found for: php-snmp
No Matches found


Is there a way to get cacti working anyway?

This was brought up before as http://forums.cacti.net/about5448.html but I don't understand what they mean to do as a solution.

I have cacti set up otherwise, and am just getting the expected php error when trying to add a device (PHP Warning: PHP Startup: Unable to load dynamic library '/etc/php.d/snmp.so' - /etc/php.d/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0)
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Getting cacti working without php-snmp?

Post by noname »

Please make sure whether "extension_dir" in your php.ini specifies correct extension directory.

e.g.
extension_dir = /usr/lib/php/modules

After modified, don't forget to restart Apache.

See also:
- http://forums.cacti.net/about24980.html
- Configure PHP Extensions - Cacti Docs
vehementi
Posts: 2
Joined: Mon Sep 26, 2011 3:03 pm

Re: Getting cacti working without php-snmp?

Post by vehementi »

Ah, I see I had it set up properly all along (The "correct" directory for my php modules is /usr/lib64/php/modules, but I just copied the .so files to /etc/php.d) and my error was that the remote machine did not have snmpd on :) I had not noticed this error in my httpd log:

Timeout: No Response from 10.165.8.109:161.

and everything's ok after enabling snmpd on remote machines. Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest