poller refused to update, had to modify include/global.php..

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
strlen
Posts: 2
Joined: Fri Aug 27, 2010 5:29 am

poller refused to update, had to modify include/global.php..

Post by strlen »

Hi,

I just did an upgrade of our cacti. After this upgrade the poller wouldn't update anymore, after 5 minutes I'd get the timeout message (POLLER: Poller[0] Maximum runtime of 298 seconds exceeded.) and nothing happened.

So after 3 hours of debugging I noticed it didn't read the settings from our database, in fact it didn't seem to use the database at all.

So I changed in include/global.php these lines:

Code: Select all

/* connect to the database server */
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type, $database_port);
To:

Code: Select all

/* connect to the database server */
global $cnn_id;
$cnn_id = db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type, $database_port);
And now the poller can update again..

Why did I have to do this? What's wrong in my installation?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You should apply the latest SVN copy of lib/database.php. Also, poller.php has been modified. If you are running the PIA, you will need PIA2.9beta2, plus the lib/database.php. Otherwise, just poller.php and lib/database.php from SVN.

I'm attempting to link up with our package manager to get the patches posted to the main web site today. No promises. In the mean time, you can obtain the PIA from the Plugins section of the forum, and the updated files w/o PIA from the main cacti web site.

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?
strlen
Posts: 2
Joined: Fri Aug 27, 2010 5:29 am

Post by strlen »

I'd like to do a svn checkout but..

# svn checkout svn://svn.cacti.net/cacti
svn: Can't connect to host 'svn.cacti.net': Connection timed out
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Use the web view.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests