Upgrade to cacti 0.8.7h on debian squeeze

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

Moderators: Developers, Moderators

Post Reply
yaka2b
Posts: 7
Joined: Thu Aug 11, 2011 1:22 pm

Upgrade to cacti 0.8.7h on debian squeeze

Post by yaka2b »

Hi

I currently have Cacti 0.8.7g and API 2.8 running on Debian Squeeze ( Debian 6.0) , is there a recommended way to upgrade to Cacti 0.8.7h and API 3.0 ?

Will plugins installed under API 2.8 work seamlessly?

If it breaks, no worries , I can do a whole new install as I am just starting to add devices. http://forums.cacti.net/posting.php?mode=post&f=2#

Cheers
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade to cacti 0.8.7h on debian squeeze

Post by TheWitness »

There may be some problems upgrading. Best to give it a test run before you proceed.
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?
yaka2b
Posts: 7
Joined: Thu Aug 11, 2011 1:22 pm

Re: Upgrade to cacti 0.8.7h on debian squeeze:

Post by yaka2b »

I did a fresh install.==>Cacti 0.8.7g and API 2.8 running on Debian Squeeze ( Debian 6.0)
Apache Version Apache/2.2.16 (Debian) ,PHP 5.3.3-7+squeeze3 with Suhosin-Patch.

Now get error whenever the "Console" or "graphs" tab is clicked:

tail -f /var/log/apache2/error.log

PHP Notice: A session had already been started - ignoring session_start() in /var/www/cacti/include/global.php on line 151



Should I change line 151 like so or something else: I am not a php programmer.

if(session_id() == "")
{
start_session();
}

Cheers
yaka2b
Posts: 7
Joined: Thu Aug 11, 2011 1:22 pm

Re: Upgrade to cacti 0.8.7h on debian squeeze

Post by yaka2b »

Error in line 1 above : Should have read:

Cacti 0.8.7h and API 3.0

Sorry.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Upgrade to cacti 0.8.7h on debian squeeze

Post by TheWitness »

Looks like Debian is invoking
session.auto_start = 1
in Apaches 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?
yaka2b
Posts: 7
Joined: Thu Aug 11, 2011 1:22 pm

Re: Upgrade to cacti 0.8.7h on debian squeeze

Post by yaka2b »

That fixed it. Much appreciated.

in /etc/php5/cli/php.ini

; Initialize session on request startup.
; http://php.net/session.auto-start
session.auto_start = 0

in /etc/php5/apache2/php.ini

; Initialize session on request startup.
; http://php.net/session.auto-start
session.auto_start = 1

Changed to 0.

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests