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

jdmarti1
Posts: 4
Joined: Sat Jan 22, 2011 2:38 pm

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

Post by jdmarti1 »

JohnYYC wrote:So if the "pre-check" section of the new script(v0.40) is commented out, the script completes without error and no need for me to comment all those other lines?
Unfortunately no. You have to comment out just part of the entire check script, all the way to the end. I also had to comment all the extra fi's:

if [ "$install_lamp" = 1 ];
then
#cat /etc/group | grep www-data &> /dev/null
#checkprev=$?
#if [ "$checkprev" = 0 ];
# then
# echo -e "\a"\#\#\#\#\#\#\#\#\# WARNING
# echo Apache has already been installed, script ends now!
# exit
#else
install_lamp
fi
#fi

if [ "$install_cacti" = 1 ];
then
#ls /var/www/cacti &> /dev/null
#checkprev=$?
#if [ "$checkprev" = 0 ];
# then
# echo -e "\a"\#\#\#\#\#\#\#\#\# WARNING
# echo Cacti v$CactiVersion has already been installed, script ends now!
# exit
#else
install_cacti
fi
#fi


This stops the prechecks - but installs the items selected at the beginning of the script. Then I ran it as sudo - and the script is working as we speak!!!
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 »

Hi guys :)

Looks like the mail alert of this topic didn't work huhu :p

Also, it looks like one of the first prechecks(the one looking if Apache has been installed) is causing a lot of problem to Ubuntu lovers.

Let's change that :)
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 »

Hi again, V0.40b has been released,

1/ Nothing new
2/ the "www-data" problem is no more.

Regards,

Deel
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 »

JohnYYC wrote:Could it have some thing to do with the php coding in the pages for the syslog plugin? Like if you use the cacti db is the table name defaulted in the code of the php files? I don't know much about mysql or php so I am just guessing.
I trully don't know what the problem is, I paused after several attempts, I might mail the plugin editor about that issue.
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

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

Post by JohnYYC »

Glad to see the pre-check issue has been resolved in the script so we don't have to edit it anymore. I guess emailing the creator of the syslog plugin would be the next step. Hopefully they will help out. This script is a great idea and great thing to have at any IT's guy or average joe's finger tips for a quick install.
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 »

JohnYYC wrote:Glad to see the pre-check issue has been resolved in the script so we don't have to edit it anymore. I guess emailing the creator of the syslog plugin would be the next step. Hopefully they will help out. This script is a great idea and great thing to have at any IT's guy or average joe's finger tips for a quick install.
Here is the post about the problem with syslog :
http://forums.cacti.net/viewtopic.php?f=14&t=41514

Regards,

Deel
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

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

Post by JohnYYC »

Well I tried using v0.40b and I am still not able to get the script to run and I still get errors and I am unable to get it to launch.
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 »

Errors or warnings that the script will stop ?
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 »

Ok guys I've got it, just tested it on an ubuntu 10.10 fresh install

My mistake ^^

THE FIRST LINE OF THE SCRIPT IS :

Code: Select all

#!/bin/sh
Actually it should be :

Code: Select all

#!/bin/bash
It explains the weird behaviour on ubuntu.

Sorry about that, I'll change it tomorrow

Meanwhile if you need to run the script just edit this line and it'll be fine

Night all
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

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

Post by JohnYYC »

DeeL wrote:Ok guys I've got it, just tested it on an ubuntu 10.10 fresh install

My mistake ^^

THE FIRST LINE OF THE SCRIPT IS :

Code: Select all

#!/bin/sh
Actually it should be :

Code: Select all

#!/bin/bash
It explains the weird behaviour on ubuntu.

Sorry about that, I'll change it tomorrow

Meanwhile if you need to run the script just edit this line and it'll be fine

Night all
Well crap. That fixed it. Now we just gotta get the plug-in creator of syslog to help get it integrated into the script.

Cheers!
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 »

V0.40 and v0.40b are deprecated for ubuntu users

V0.40C just released.

- Fully supports Ubuntu 10.10 (if someone dares installing on a 10.04 or 9.x, would be great)
- The Ubuntu specific bug is no more (this time)

Thank you all (tribute to JohnYYC for his patience)

Regards,

Deel
JohnYYC
Cacti User
Posts: 58
Joined: Thu Apr 22, 2010 1:23 pm

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

Post by JohnYYC »

DeeL wrote:V0.40C just released.

- Fully supports Ubuntu 10.10 (if someone dares installing on a 10.04 or 9.x, would be great)
- The Ubuntu specific bug is no more (this time)

Thank you all (tribute to JohnYYC for his patience)

Regards,

Deel
I can confirm it works on 9.10 and 10.04LTS. (I have bare VM's pre-built for testing new software :) )

Cheers.
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 »

I now have an ubuntu 10.10 VM too...

I'll probably go to hell for that!!!

Regards

Deel

(who will sell tissues to everyone who developped Gnome apps when Ubuntu 11 is released)
May the Debian Force be with you
yaun
Posts: 6
Joined: Wed Jan 26, 2011 7:08 am

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

Post by yaun »

This script is GREAT!
It works like a charm! I had so many problems with tuning cacti under debian...
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 »

Don't you dare blaming Debian ^^

Thanx anyway :)
I don't understand, all I did was get up in the morning
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests