[SOLVED] Added PHP sockets - now Cacti is dead

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

Moderators: Developers, Moderators

Post Reply
erekose
Posts: 12
Joined: Tue Sep 16, 2008 7:55 pm

[SOLVED] Added PHP sockets - now Cacti is dead

Post by erekose »

I recompiled PHP5 with sockets enabled and thereafter everything just stopped.
Cacti is still there, but no new data. Running the poller manually produces nothing. Apache2 has been restarted, but no change. All my graphs are now flatlined...

What could have gone wrong?

PHP 5.2.6 (cli) (built: Sep 30 2008 16:55:02)
Copyright (c) 1997-2008 The PHP Group

php -m
[PHP Modules]
ctype
date
dom
filter
hash
iconv
json
libxml
pcre
PDO
pdo_sqlite
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
standard
tokenizer
xml
xmlreader
xmlwriter

[Zend Modules]
erekose
Posts: 12
Joined: Tue Sep 16, 2008 7:55 pm

Post by erekose »

Lots of views, but no ideas?

I installed spine today to see if there was an issue there, but to no avail.

running /usr/local/bin/php /home/cactiuser/cacti/poller.php produces nothing...
erekose
Posts: 12
Joined: Tue Sep 16, 2008 7:55 pm

Post by erekose »

Well, I re-compiled without sockets = no fix.
I restored my backup of the cacti dir = no fix
I dropped the DB and restored from an earlier backup = no fix

So, I am looking at a completely new install. The only difference is a re-compiled PHP5.
Other PHP web apps run fine (mediawiki) and Cacti web pages display fine, but CLI commands do nothing.

No rras
Empty logs.
No errors, no nothing...
khufure
Cacti User
Posts: 203
Joined: Wed Oct 24, 2007 5:47 pm
Location: San Francisco, CA
Contact:

Post by khufure »

erekose wrote:Well, I re-compiled without sockets = no fix.
I restored my backup of the cacti dir = no fix
I dropped the DB and restored from an earlier backup = no fix
Did you try to revert your php to the previous version which was working?
erekose
Posts: 12
Joined: Tue Sep 16, 2008 7:55 pm

Post by erekose »

khufure wrote:
erekose wrote:Well, I re-compiled without sockets = no fix.
I restored my backup of the cacti dir = no fix
I dropped the DB and restored from an earlier backup = no fix
Did you try to revert your php to the previous version which was working?
I re-compiled with the same options as my initial install. Unfortunately I did not back up the binaries before the re-compile.
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Uhm, you are missing the MySQL module in your compile. That is "definitely" your problem.

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
erekose
Posts: 12
Joined: Tue Sep 16, 2008 7:55 pm

Post by erekose »

TheWitness wrote:Uhm, you are missing the MySQL module in your compile. That is "definitely" your problem.

Regards,

TheWitness
Wow, that is odd.
I don't recall specifying it on the initial build, and with MediaWiki still working I had not suspected it.
Sure enough, it works now!

Thank you.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests