cacti 0.8-pre

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

Moderators: Developers, Moderators

raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

cacti 0.8-pre

Post by raX »

In case anyone missed the announement on the main raXnet page or to cacti-announce, I am now generating nightly pre-releases of cacti 0.8. You can download them at the downloads section:

http://www.raxnet.net/downloads/beta/

When you find bugs of any sort, please report them using bugzilla:

http://bugzilla.raxnet.net/

I will keep these pre-releases going until most of the major bugs are worked out. A big area of focus is the 0.6.8->0.8 database conversion tool, so it would help me out of you gave this a try (on the installation page). It will not touch your old 0.6.8 database, as it copies your old data over.

Note that the default database (cacti.sql) is subjected to change on a nightly basis. If you are having issues, please try dropping your 0.8 database and re-importing this file first.

If you have any installation related questions, let me know. Otherwise, have fun bug hunting!

-Ian
sayasif
Posts: 24
Joined: Thu Sep 12, 2002 12:28 am
Location: India

Post by sayasif »

hi Rax,
I am planning to do a complete new Installation, should I wait for final release of 0.8 or should i go ahead with the pre release ? :P

best rgds,
ACE
Jeppe
Posts: 47
Joined: Sun Feb 09, 2003 4:48 am
Contact:

Post by Jeppe »

The db import worked flawlessly here. Got all of the ~400 data sources and graphs.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

cannot login after upgrade

Post by egarnel »

I followed the docs/UPGRADE.htm instructions for pre-0.8 and everything went smooth until I tried to login. Fortunately, I was doing this on a test server.

plenty of space on the server, reviewed many threads in this forum.
nada....totally stumped on this one.. Is there a quick mysql hack I can do to change the password?

Thx
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

mysql change of password doesn't work

Post by egarnel »

Followed this thread:
http://www.raxnet.net/board/viewtopic.p ... e+password

still cannot login

running php cmd.php kicks back "there are no items in your poller cache..... ..go to Utilities and clear poller cache"
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

1 step forward....

Post by egarnel »

OK,
I dumped all the tables and was able to push the new schema into cacti.
Now I am able to log in and do whatever. The question remains on how to get the old data into cacti?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: mysql change of password doesn't work

Post by raX »

egarnel wrote:Followed this thread:
http://www.raxnet.net/board/viewtopic.p ... e+password

still cannot login

running php cmd.php kicks back "there are no items in your poller cache..... ..go to Utilities and clear poller cache"
The password hashes differ from 0.6.8 to 0.8. They are generated from PHP's md5() function now, so you can generate one manually using that function.

Did you do an upgrade or new install? The account for a new install should be admin/admin, while your old user accounts should work for an upgrade.

In terms of how to upgrade, following UPGRADE.htm probably will not work since it is 0.6.x specific. Here is what to do:

1) Create a new MySQL database, and import 'cacti.sql' into it.
2) Edit 'include/config.php' to point to this new database
3) When the install screen comes up, choose "Upgrade an old 0.6.8 install", and give it your 0.6.8 database name when asked.
4) Your data should be imported and the results displayed on the following screen.

Let me know if you have any further problems/questions.

-Ian
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Ok,
I started from scratch:
1) created new database cacti_08 giving proper privs to cactiuser
2) imported cactil.sql schema into cacti_08 ( mysql cacti_08 < cacti.sql
3) edited include/config.php to point to cacti_08 with correct username/password
4) On the install page, I chose upgrade from 0.6.8 and clicked 'next'....
and received the following error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1024 bytes) in /usr/local/cacti/install/update_to_0_8.php on line 779
User avatar
drub
Cacti User
Posts: 59
Joined: Thu Jan 31, 2002 7:00 pm
Location: Las Vegas
Contact:

Mabye this will help some upgraders

Post by drub »

To upgrade the version of 0.8 I was running I had to update the mysql schema so here is what I did to export and recreate everything while all the data was restored in tact.

first export your database
mysqldump -t -u root -p cacti08 > cacti08.dmp

then you could drop the cacti08 database

then import the new schema

mysql -u root -p cacti08 < cacti.sql

then re-import your old data

mysq -f -u root -p cacti08 < cacti08.dmp


this restored all my data nicely (Thank god) :-) I had well over 1000 interfaces in there, didn't want to add them by hand again :-)


Hope this helps

let me know if I got something wrong here, but I believe this should work.
izit

upgrade - blan screen

Post by izit »

I have problems updating my cacti 0.6.8 install to 0.8. I have over 2400 monitored interfaces in th DB

Here is what I am trying to do.

I create a new database called "cactinew" and set the variables in config.php (I do not import the schema).

I run the install php page in my browser and select upgrade from 0.6.8

I enter the details of my current cacti DB and press next.

After that, the server returns a html page with no data in it. If I check my database, nothing has changed.

What am I doing wrong ?

Regards

Izit
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

egarnel wrote:Ok,
I started from scratch:
1) created new database cacti_08 giving proper privs to cactiuser
2) imported cactil.sql schema into cacti_08 ( mysql cacti_08 < cacti.sql
3) edited include/config.php to point to cacti_08 with correct username/password
4) On the install page, I chose upgrade from 0.6.8 and clicked 'next'....
and received the following error
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1024 bytes) in /usr/local/cacti/install/update_to_0_8.php on line 779
I believe I have fixed these memory errors in the latest release. They were due to the message array getting too large and PHP's memory limit being too low. Both have been adjusted.

Let me know if you still have problems with this error.

-Ian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Re: upgrade - blan screen

Post by raX »

izit wrote:I have problems updating my cacti 0.6.8 install to 0.8. I have over 2400 monitored interfaces in th DB

Here is what I am trying to do.

I create a new database called "cactinew" and set the variables in config.php (I do not import the schema).

I run the install php page in my browser and select upgrade from 0.6.8

I enter the details of my current cacti DB and press next.

After that, the server returns a html page with no data in it. If I check my database, nothing has changed.

What am I doing wrong ?

Regards

Izit
After you create the new database (cactinew), you still need to import the schema from cacti.sql. In addition to some default data, this file contains all of the table structures for 0.8. Sorry about any confusion, I could have made this a bit more clear.

If I get more time to hack at things tomorrow, I am going to try and make the schema import more seemless. I also need to work on some better error feedback for the installer.

-Ian
izit

Post by izit »

I followed your intructions and it failed because of memory problems. I applied the latest release AND changed my php memory setting to 16MB and it was succesfull.

I do have another remark :D

Because of the large number of interfaces I monitor (2400) I get a very wide page when I look at data sources (example). I get over 120 pages because you split them. It is not really bad, but unhandy when you have to scroll to the right.

Regards

izit
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

up and running

Post by egarnel »

Cool.

last night's build worked. I also bumped up the memory setting in php.ini as well.

Quick question, though. Is the historical data stored in the database? or in path-to-cacti/rra ? If so, I should be able to tar up my rra file on the old server and move it to the new server to have all my weekly, monthly and yearly data
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

I really like all the changes in the new version. Great job Rax!

simple things like running cmp.php from the command line (via php) are a lot more intuitive and helpful.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests