Install script : Cacti 0.8.7g, Spine, PA, Patches

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

User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

Added the last official patches.


If you're willing to use this script with another version of cacti please disable the patching function at the end of the script.


Regards,

Deel.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Can't get this to run on Ubuntu. Getting a "can't open" error
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

hi,

Would you mind telling me which ubuntu version you're using, what is the exact error and which functions your did activate.

Regards,

Deel
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Ubuntu Server v 10.04 64bit
error is
/bin/sh: Can't open
and comes after I have dl'd and chmod'ed per listed code.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

I have noticed I can do the commands individually, just not the script for some reason. Also since I have a proxy, I need to preceed a wget command with wget -e http_proxy=http://myproxy.com:80 "http://www.site.file.tar.gz".

Is there a way to save this in the script. If you could help me do that it would be great. Doing it all by hand is very time consuming. That is what makes this such a great script. Just hope I can get it all working.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Tried everything I could think of.

root@wwb018-syslog01:~# dir
cacti_autoinstall_151.sh jcameron-key.asc
root@wwb018-syslog01:~# chmod a+x cacti_autoinstall_151.sh
root@wwb018-syslog01:~# ./cacti_autoinstall_151.sh
/bin/sh: Can't open
root@wwb018-syslog01:~# sudo ./cacti_autoinstall_151.sh
/bin/sh: Can't open
root@wwb018-syslog01:~# dir
cacti_autoinstall_151.sh jcameron-key.asc
root@wwb018-syslog01:~# sh cacti_autoinstall_151.sh
: not foundnstall_151.sh: 22:
: not foundnstall_151.sh: 30:
cacti_autoinstall_151.sh: 60: Syntax error: Unterminated quoted string
root@wwb018-syslog01:~#
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Have the proxy thing worked out. Just edited the script where needed.
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

Okay, some progress. I think the script must have got corrupted along the way. I downloaded it again, made my proxy, user, pswd etc changes and bingo. It installed !!! However, I did end up with a couple errors. Any thoughts would be much appreciated. See below.

cacti-plugin-arch/cacti-plugin-0.8.7g-PA-v2.8.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
Hunk #6 FAILED at 1323.
1 out of 6 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
patching file graph.php
patching file graphs_new.php


patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php
ERROR 1045 (28000): Access denied for user 'myuser'@'localhost' (using password: YES)
--2010-08-30 14:44:32-- http://docs.cacti.net/_media/plugin:settings-v0.7-1.tgz


Then when I point my web browser at Cacti I get the following. Any ideas is much appreciated.

FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
hammer733
Posts: 22
Joined: Fri Aug 20, 2010 6:47 pm

Post by hammer733 »

UPDATE:
Just did a fresh Ubuntu server install adding only openssh, then ran the script and it worked beautifully. Thanks for a wonderful script.
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

Hey hammer. so sorry I took so much time to answer, I see you've finally managed to get it work congratulations :)

Today I'll issue a new version with the latest patches.

about the proxy as it's not related to the purpose of the script I'll think about it in a few days, for now you'd probably better consider using a wgetrc file instead of modifying the script.

regards,

Deel
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

Hi,

I've published a new version of the script including :
- the new spine patch
- a new version of the cycle plugin
- a new version of the realtime plugin

I'll test it fully tomorrow.

Regards,

Deel
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

Hi,

V0.35 was supposed to include the latest cacti patches but since I couldn't get them to work with the PIAv2.8 they have been commented in the script and are not installed for the moment.

There were also 2 bugs with the new cycle plugin during install :
- the new archive is named cycle-[...] and used to be cycle_[...]
- the tar archive is making a "cycle" dir and used to make a "cycle_XXX" dir

both were fixed, I can't change the official file names but I'll force the untared dir names in the future.

I'm working on cacti patches, v0.35b should be available soon.

Regards,

Deel
Nirmeesh
Posts: 1
Joined: Thu Oct 28, 2010 3:48 am

Re: Install script : Cacti 0.8.7g, Spine, PA, Patches

Post by Nirmeesh »

Dear friend,

I want to install the latest cacti i.e. 0.8.7g with all plug ins. I tried hard but after installing plug in architecture , the cacti stopped working.
So I found your post while searching through google but I could not download the "cacti_autoinstall_208.sh" file. Would you please help me out.

Thanks in advance.
willdej
Posts: 19
Joined: Thu Sep 03, 2009 12:41 pm

Re: Install script : Cacti 0.8.7g, Spine, PA, Patches

Post by willdej »

The script ran fine for me with my Debian Netinstall.
I had to open a command root console for some reason if I opened a normal console and used sudo or su it would not run
The only issue I have is I am not seeing the tabs for plugins I install. I can configure them and install the from Plugin management but they never show up on the main page ?
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Re: Install script : Cacti 0.8.7g, Spine, PA, Patches

Post by DeeL »

Thanks all for your feedback :) HAPPY NEW YEAR

V 0.36 is ready, nothing fancy, august patches of cacti were missing, plus an update of the PA.

EDIT : V0.37 is ready, mainly plugin additions: LoginMod, Monitor, Nectar, Spikekill and thold

Regards,

Deel
Last edited by DeeL on Sun Jan 02, 2011 9:45 am, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests