Graphs page not rendering?

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

Moderators: Developers, Moderators

Post Reply
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Graphs page not rendering?

Post by tgaler1 »

Hey guys,

I'm a cacti noob. I've gotten it installed on my CentOS 5.4 box. I can log-in, and add devices. All of my devices show a status of "unknown" except for my localhost, and my "Graphs" page only shows the "Console" and "Graphs" and "Settings" etc buttons across the top of the page, but everything below that is white. Any suggestions on where I should start looking? I'm assuming it's a php issue but I could be off target. "php -m" returns: "php: error while loading shared libraries: libnetsnmp.so.5: cannot open shared object file: No such file or directory". I've googled this error and haven't really gotten much info as far as how to go about correcting it. Any help would be greatly, greatly, greatly appreciated.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graphs page not rendering?

Post by noname »

tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

that's actually one of the pages I came across in google when trying to fix my issue.

one of the suggestions was to uninstall php.

I ran a rpm -qa -i | grep php and uninstalled ALL of the php packages.

I also went ahead and uninstalled both cacti and Net-SNMP just to make sure.

Also, another suggestion was: You need to locate the libnetsnmp.so.10 file is or uninstall php_snnp and use Net-SNMP instead. I hope you didn't build from source.

I have located the libnetsnmp.so.10 file, but I don't know what the significance is of locating it.

I then, re-installed "sudo yum install php php-snmp php-mysql", along w/ net-snmp and cacti.

Basically, after that, and making the appropriate change to /include/config.php for the mysql db, it was doing the same thing.

shows the devices, lets me add them, etc.. but the graphs page is just a blank, white page.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graphs page not rendering?

Post by noname »

Does the PHP error still occur?
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

Unfortunately it does still occur. The exact same one. I'm not sure why it can't use my libnetsnmp.so.10 file, it's continuing to try to use a libnetsnmp.so.5 file that is not present on the system. Not being familiar enough w/ linux, i'm not sure whether there's a config file that I need to change to point to the dir that has my libnetsnmp.so.10 file, or if there's a package that needs uninstalling and/or updating, or what.. i'm at a loss.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Graphs page not rendering?

Post by noname »

Though I'm not familiar with Linux package dependency (mainly I'm using Solaris),
if I were you, I'll uninstall existing (=old) PHP binary and rebuild PHP from source so that can use the Net-SNMP library which is currently installed.
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

Ok, i'll try that and post the results.
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

I have Cacti v. 0.8.7h. The version of php that I have installed is: Source RPM: php-5.1.6-27.el5_5.3.src.rpm

If I uninstall this version, does anybody know what version should work w/ this version of Cacti?

Thanks
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

bump
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Graphs page not rendering?

Post by gandalf »

We are running php 5.3.3 with success.
R.
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

I did a "whereis php" and removed all directories that returned from the search.

I then downloaded php-5.2.17 from source and unzipped it.

from within that dir I ran ./configure --with-apxs2=/usr/local/apache2/bin/ap per the "install php from source" instructions that I was following.

I got a "configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!" during the configure, and per the same instructions I was following, it says that in the event of this error, to install the mysql-devel-community package.

I downloaded MySQL-5.1/MySQL-devel-5.1.60-1.glibc23.i386.rpm

but when I tried to rpm -ivh it, I got:

file /usr/bin/mysql_config from install of MySQL-devel-5.1.60-1.glibc23.i386 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386
file /usr/share/man/man1/mysql_config.1.gz from install of MySQL-devel-5.1.60-1.glibc23.i386 conflicts with file from package mysql-5.0.77-4.el5_6.6.i386

does anybody have any insight?

Thanks
tgaler1
Posts: 11
Joined: Wed Nov 26, 2008 10:12 am

Re: Graphs page not rendering?

Post by tgaler1 »

bump
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests