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

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

Post by DeeL »

willdej wrote: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 ?
Edit your user settings (Realm permissions) in the user management to enable the plugins tabs.

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 »

I love this script! Works great in Ubuntu 9.10 and 10.04 Server without any issues.

Would be great if you could have it install the syslog and the clog plugin as well. If that is possible.
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:I love this script! Works great in Ubuntu 9.10 and 10.04 Server without any issues.

Would be great if you could have it install the syslog and the clog plugin as well. If that is possible.
Hi & thanks :)

I'll add the clog plugin in v0.38, for the syslog plugin it might take some time cause :
- I don't know whether it shoud use "syslog-ng" or the new default syslog for debian 5.0 "rsyslog"
- I have no experience of the rsyslog and rsyslog-mysql packages
- last but no least, I don't know what kind of logs should be embedded

You might have some/all answer(s), I'll ask the syslog plugin author

regards,

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

Install script V0.38 issued

Post by DeeL »

Hi all,

V0.38 now installs PHPWeatherMap and Clog plugins.

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 »

Version V0.40 released.

No more scrolling at the end of the script to setup what you want or don't want to install, no more wondering what you had already installed, and finally, it can install a pretty Apache mod-security module.

Actually this release mainly deals with a more user friendly script, the possibility to tighten the LAMP server security, and some documentation.

Next step might be an interactive installation.

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: Hi & thanks :)

I'll add the clog plugin in v0.38, for the syslog plugin it might take some time cause :
- I don't know whether it shoud use "syslog-ng" or the new default syslog for debian 5.0 "rsyslog"
- I have no experience of the rsyslog and rsyslog-mysql packages
- last but no least, I don't know what kind of logs should be embedded

You might have some/all answer(s), I'll ask the syslog plugin author

regards,

Deel
I installed v0.38, again without any issues on Ubuntu 9.10 and 10.04, I shall give v0.40 a try. I actually am not good with syslog. I just know how to configure rsyslog on my server's telling it where to send the logs. But I have no clue how to setup the accepting server. I shall keep searching around the web. I must say this script makes it very easy to deploy this monitoring system very quickly, takes me from the start of install Ubuntu to being able to login to Cacti about 30 minutes max. Before I found your script I was using CactiEZ and it was not liking our VM platform and the guest wouldn't keep time but with Ubuntu we have not seen any issues. Keep up the great work!

Cheers,

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

Checkpoint on v0.41:

I'm struggling with syslog plugin using an external database, with the cacti db no problemo, with the external db, even if rsyslog can access and fill it, the syslog plugin keeps having issues accessing the database.
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 »

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 tried v0.40 on ubuntu 9.10 and 10.04 and I had to do a lot of commenting out of lines in the script before it would complete fully and correctly.

Before I edited:

Code: Select all

## Apache2, PHP5 and MySQL5 installation
#
install_lamp(){
apt-get install apache2 -y
apt-get install php5 php5-gd php5-cli -y
apt-get install mysql-server php5-mysql -y
/etc/init.d/apache2 restart
}
After I edited:

Code: Select all

## Apache2, PHP5 and MySQL5 installation
#
#install_lamp(){
apt-get install apache2 -y
apt-get install php5 php5-gd php5-cli -y
apt-get install mysql-server php5-mysql -y
/etc/init.d/apache2 restart
#}
I had to do it for each of the plugins as well so it could just be an Ubuntu related issue not sure. When I have time I will try it on straight debian.
copenhagen
Posts: 2
Joined: Wed Jan 19, 2011 10:40 pm

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

Post by copenhagen »

Hey guys,

Trying to run the script on multiple fresh installs and I keep getting following error.

-e ######### WARNING
Apache has already been installed, script ends now!
vmware@ubuntu:~$ www-data:x:33:

Again a fresh install with no software installed.

Any suggestions would be greatly appreciated.

** Ubuntu 10.10 server**

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

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

Post by jdmarti1 »

copenhagen wrote:Hey guys,

Trying to run the script on multiple fresh installs and I keep getting following error.

-e ######### WARNING
Apache has already been installed, script ends now!
vmware@ubuntu:~$ www-data:x:33:

Again a fresh install with no software installed.

Any suggestions would be greatly appreciated.

** Ubuntu 10.10 server**

I am having the exact same issue on Ubuntu 10.04 server. Nothing installed except SSH.
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 »

Did you guys not read my post above? I had issues installing on Ubuntu 9.10 and 10.04 and I had to edit the script.
jdmarti1
Posts: 4
Joined: Sat Jan 22, 2011 2:38 pm

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

Post by jdmarti1 »

I read it, I just wasn't sure about what all you had to edit - and what errors you were seeing. The error we are getting implies that Apache2 is installed - so the check would be incorrect. Your edit shows that it didn't want to install the packages because of a typo, not fail the check. Previous versions appeared to work properly, but I can't find a copy to compare the differences.
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 »

I was also getting the Apache2 error stating it was installed already. But in order for it work installing packages and plugins I had to comment out all the lines that contain

Code: Select all

install_lamp(){
and

Code: Select all

}
Here is an older version of the script and yes it has those lines of code in it and it works but for some reason those lines of code cause issues in Ubuntu in the new script. I haven't had much time to look at the new script so they might be an easier way to make it work that I haven't found yet.

*Removed attached file as it is out of date and the issue has been/is being resolved by DeeL (see posts on page 4 of this thread)*
Last edited by JohnYYC on Sun Jan 23, 2011 8:58 pm, edited 1 time in total.
jdmarti1
Posts: 4
Joined: Sat Jan 22, 2011 2:38 pm

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

Post by jdmarti1 »

I see where the problem lies:

From the pre-check, that was not included in the earlier version:
## Pre install tests, check if the softwares to be installed are not already installed
#
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


If you run that command on the Ubuntu box - you get this:

magicwisp@brockman:~$ cat /etc/group | grep www-data
www-data:x:33:

I am not sure if that group is added on initial install, or when I put in the SSH server. It's there, and the script doesn't see a null - so it immediately stops.
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 »

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? I will take a look at this tomorrow when I am in the office and can setup a test VM.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests