[INFO] CactiCD upgrade from 0.8.6h to 0.8.6.i with plugins

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

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

[INFO] CactiCD upgrade from 0.8.6h to 0.8.6.i with plugins

Post by egarnel »

I was able to upgrade my test CactiEZ server from h to i without even missing a polling cycle successfully. I will let it run a few days before I do the same on the production CactiEZ server.
my notes are for CactiEZ CD installations

Code: Select all

     mkdir /SRC/CACTI/upgrades    #<== my drop location for src files
     wget http://www.cacti.net/downloads/cacti-0.8.6i.tar.gz
     wget http://download.cactiusers.org/downloads/cacti-plugin-arch.zip
     ls
     tar -xvzf cacti-0.8.6i.tar.gz
     ls
     mysqldump -l --add-drop-table cacti > mysql.cacti -p
     mv /var/www/html /var/www/html_old
     mv cacti-0.8.6i /var/www/
     mv /var/www/cacti-0.8.6i /var/www/html
     vi /var/www/html_old/include/config.php
     vi /var/www/html/include/config.php
     cp /var/www/html_old/rra/* /var/www/html/rra/
     cp -u /var/www/html_old/scripts/* /var/www/html/scripts/
     cp -u -R /var/www/html_old/resource/* /var/www/html/resource/
     chown -R apache.apache /var/www/html
   
     mkdir plugin-arch
     cp cacti-plugin-arch.zip plugin-arch/
     cd plugin-arch/
     unzip cacti-plugin-arch.zip
     cp -a * /var/www/html/
     cd /var/www/html
     patch -p1 -N < cacti-plugin-0.8.6i.diff
     vi include/config.php
     #  change db password, add plugins from old config.php
     vi /var/www/html/include/config.php
     vi /var/www/html_old/include/config.php
     vi /var/www/html/include/config.php
         copy plugins from old location
     cd /var/www/html_old/plugins/
  
     mv index.php index.php.old
  
    cp -a * /var/www/html/plugins/
    cd /var/www/html/plugins
    chown -R apache.apache *
        #  I want to keep the old version around for a bit, but lock the dir down  
    chmod 750 /var/www/html_old
  

    
   
This worked like a charm for me, your mileage may vary
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

Thanks for posting that, it was extremely helpful.
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

HTH. Just did our production Cacti server with the same results
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
rdleeuw
Posts: 8
Joined: Thu Jan 25, 2007 2:26 pm
Location: Netherlands

Post by rdleeuw »

Hello,

I very much would like to use this script to upgrade my CactiEZ from 0.8.6i to 0.8.6j , but what do I need to change (beside the obvious 'i' to 'j') ?

I'm totally new to linux (and thus CentOS), where do I place the script? Do you have a suggestion for a name for the script? How to execute the script?

Thank you, Ronald
[quote][b]Cacti Version[/b] - 0.8.6j
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - Cactid v0.8.6i
[b]Server Info[/b] - Linux 2.6.9-42.0.8.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (CentOS)
[b]PHP[/b] - 4.3.9
[b]PHP Extensions[/b] - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator
[b]MySQL[/b] - 4.1.20
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]PHP Network Weathermap (weathermap - v0.82)
Thresholds (thold - v0.3.0)
Device Monitoring (monitor - v0.7)
Network Discovery (discovery - v0.6)
Network Tools (tools - v0.2)
Syslog Monitoring (haloe - v0.4)
mactrack
RRD Cleaner (rrdclean - v1.1)
Update Checker (update - v0.3)
FlowView (flowview - v0.3)
Host Info (hostinfo - v0.1)
Error Images (errorimage - v0.1)[/list][/quote]
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Actually it is a list of the commands used. It could be scripted easily, but you could cut & paste the commands as well
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
luke911
Posts: 1
Joined: Wed Sep 05, 2007 9:39 pm

Post by luke911 »

Thanks so much, worked very well!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests