Release of Cacti 0.8.7h

Important information about Cacti developments that all users should be interested in.

Moderators: Developers, Moderators

rudw0lf
Posts: 6
Joined: Tue Nov 08, 2011 2:14 am
Location: Samara, Russia
Contact:

Re: Release of Cacti 0.8.7h

Post by rudw0lf »

My question may sound stupid but how to compile from svn? Where can I find instructions? I apologize for my English, I use google translate.
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re: Release of Cacti 0.8.7h (blank page after upgrade)

Post by morgentau »

I just upgraded from the "g" version to "h". It accidentally happend with the normal update run within suse, although a thought about doing the upgrade anyway...

After going throug the cacti upgrade procedure i get a blank page in this url http://localhost/cacti/install/index.php
Also the first time the sql statements have executed, but when i try again going through the upgrade procedure it says no sql was executed. The path information ist all green, after this the blank page appears.

When i go to the Cacti URL http://cactiserver/cacti expecting the logon screen the upgrade procedure window reappears...

The Apache and MySQL configuration looks OK to me. I also can see the new creation dates for certain files and folders in the cacti folder

I do not know where i can look for errors or what happend at all.

I just hope that my old cacti data are still somewhere to be found and can be rescued.

What to do now?

My primary setup several month ago i did after this procedure http://en.opensuse.org/Cacti

---

A day later... early morning 6,30 AM...

The rra files are still updating, so cacti seems to be well under the hood. I'm still trying to find what causes the empty page right after the upgrade finishes where in a better world the Cacti Logon should appear... :-)
Last edited by morgentau on Thu Nov 24, 2011 1:48 am, edited 1 time in total.
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Release of Cacti 0.8.7h

Post by TheWitness »

I would back off the change. Don't know quite how to do that for you. I would start by doing a fresh 'file' install over your existing install. It's likely that nothings broken but the 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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Release of Cacti 0.8.7h

Post by TheWitness »

rudw0lf wrote:My question may sound stupid but how to compile from svn? Where can I find instructions? I apologize for my English, I use google translate.
I'm assuming you are talking about spine? If so, download the svn copy and then run the 'bootstrap' script. After that, simply follow the instructions.

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?
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re: Release of Cacti 0.8.7h

Post by morgentau »

TheWitness wrote:I would back off the change. Don't know quite how to do that for you. I would start by doing a fresh 'file' install over your existing install. It's likely that nothings broken but the web site.

TheWitness
It looks like a broken website-Apache-php issue. I do not know how to revert the upgrade... doing a fresh file install? The rra files are still updating... i'm really glad about this. Even the automatic reports from Cereus Reporting are still comming in.... Now i've got a time zone error, a missing file/stream...


[Thu Nov 24 07:41:54 2011] [error] [client 10.xxx.x.xxx] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CET/1.0/no DST' instead in /usr/share/cacti/include/global_arrays.php on line 677, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 07:41:54 2011] [error][client 10.xxx.x.xxx] PHP Warning: include_once(../lib/data_query.php): failed to open stream: No such file or directory in /usr/share/cacti/install/index.php on line 333, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 07:41:54 2011] [error][client 10.xxx.x.xxx] PHP Warning: include_once(): Failed opening '../lib/data_query.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/cacti/plugins/nmidCreatePDF/modules') in /usr/share/cacti/install/index.php on line 333, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 07:41:54 2011] [error] [client 10.xxx.x.xxx] PHP Warning: include_once(../lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/install/index.php on line 334, referer: http://diepen.ocag.ch/cacti/install/index.php
[Thu Nov 24 07:41:54 2011] [error] [client 10.xxx.x.xxx] PHP Warning: include_once(): Failed opening '../lib/utility.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/cacti/plugins/nmidCreatePDF/modules') in /usr/share/cacti/install/index.php on line 334, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 07:41:54 2011] [error] [client 10.xxx.x.xxx] PHP Fatal error: Call to undefined function run_data_query() in /usr/share/cacti/install/index.php on line 354, referer: http://diepen/cacti/install/index.php
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Release of Cacti 0.8.7h

Post by TheWitness »

Edit apache's PHP.INI file and set the 'date.timezone' variable to your TZ. For example, here it's "America/Detroit". Then restart apache. Also, do the same for the CLI's PHP.INI file.
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?
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re: Release of Cacti 0.8.7h

Post by morgentau »

TheWitness wrote:Edit apache's PHP.INI file and set the 'date.timezone' variable to your TZ. For example, here it's "America/Detroit". Then restart apache. Also, do the same for the CLI's PHP.INI file.
Hello, i made this correction for the time zone. The entries are gone :-) Thank you !

But this remains... with Cacti still running below the blank page...some luck there at least. I do not understand why i get through the upgrade procedure without error messages but only get a blank page. The default Cacti URL always brings me back to the upgrade screen... !?

[Thu Nov 24 14:15:51 2011] [error] [client 10.] PHP Warning: include_once(../lib/data_query.php): failed to open stream: No such file or directory in /usr/share/cacti/install/index.php on line 333, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 14:15:51 2011] [error] [client 10.] PHP Warning: include_once(): Failed opening '../lib/data_query.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/cacti/plugins/nmidCreatePDF/modules') in /usr/share/cacti/install/index.php on line 333, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 14:15:51 2011] [error] [client 10.] PHP Warning: include_once(../lib/utility.php): failed to open stream: No such file or directory in /usr/share/cacti/install/index.php on line 334, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 14:15:51 2011] [error] [client 10.] PHP Warning: include_once(): Failed opening '../lib/utility.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR:/usr/share/cacti/plugins/nmidCreatePDF/modules') in /usr/share/cacti/install/index.php on line 334, referer: http://diepen/cacti/install/index.php
[Thu Nov 24 14:15:51 2011] [error] [client 10.] PHP Fatal error: Call to undefined function run_data_query() in /usr/share/cacti/install/index.php on line 354, referer: http://diepen/cacti/install/index.php

The cacti error log is free from any error messages except some snmp timeouts....
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Release of Cacti 0.8.7h

Post by TheWitness »

It's a fatal error. If you take the Cerious Reporting plugin out (move the directory) does the problem go away? Also, is the $url_path = '/cacti/' in config.php?

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?
User avatar
morgentau
Posts: 43
Joined: Fri Jun 16, 2006 4:05 am
Location: Zurich, Switzerland

Re: Release of Cacti 0.8.7h

Post by morgentau »

TheWitness wrote:It's a fatal error. If you take the Cerious Reporting plugin out (move the directory) does the problem go away? Also, is the $url_path = '/cacti/' in config.php?

TheWitness
Hello again !

This was confusing for me. In someconfig.php files the path $url_path = '/cacti/' is there, in some it is not. I think it is something to do with the suse distribution. I put it there and (with the same negative result) but then... (r)moving the nmid Plugins did it !

Cacti Upgrade ist OK, Cacti Logon ist OK... I'm really really very glad... a simple cut/paste operation !!

Thank's a lot... really !

Kind regards.
Server: IBM x3650 M3, 1 XEON CPU 3.0 GHz, 4 Core, 8GB RAM,
OS: Suse Linux 11.4 x64
Apache 2.x
MySQL 5.x
PHP 5.x
Plugins: DSStats, Settings, NMID Cereus Reporting, Spikekill
Install Date: May, 2011

Wed, 19 Oct 2011 13:46:36 +0200
Cacti Version 0.8.7g
Cacti OS unix
SNMP Version NET-SNMP version: 5.6.1
RRDTool Version RRDTool 1.4.x
Hosts 57
Graphs 716
Data Sources Script/Command: 15
SNMP: 166
SNMP Query: 310
Script Query: 4
Script - Script Server (PHP): 46
Script Query - Script Server: 319
Total: 860

Last Run Statistics Time:97.9035 Method:cmd.php Processes:10 Threads:N/A Hosts:58 HostsPerProcess:6 DataSources:3040 RRDsProcessed:860
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Release of Cacti 0.8.7h

Post by phalek »

What a nasty bug ... found the root cause of it:

In the setup.php file of the nmidSmokeping plugin the following lines (24 and 25) need to be changed:

Code: Select all

chdir ($mainDir);
require_once('./lib/tree.php');
to

Code: Select all

//chdir ($mainDir);
require_once($mainDir.'/lib/tree.php');
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
rudw0lf
Posts: 6
Joined: Tue Nov 08, 2011 2:14 am
Location: Samara, Russia
Contact:

Re: Release of Cacti 0.8.7h

Post by rudw0lf »

[quote="TheWitness"][quote="rudw0lf"]My question may sound stupid but how to compile from svn? Where can I find instructions? I apologize for my English, I use google translate.[/quote]

I'm assuming you are talking about spine? If so, download the svn copy and then run the 'bootstrap' script. After that, simply follow the instructions.

TheWitness[/quote]
Thank you! spine works fine!
Locked

Who is online

Users browsing this forum: No registered users and 2 guests