Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Mar 25, 2017 12:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Wed Feb 22, 2017 1:13 pm 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
Hopefully I dont get laughed out of the forums, but I need some help. Is there a definitive guide on installing the newest version of cacti to Ubuntu Server? I have followed a few guides step by step and just end in errors each time.

Here are the guides I have followed:

http://linoxide.com/ubuntu-how-to/install-setup-cacti-ubuntu-16-04/ (ended up being old version of cacti)
http://www.cacti.net/downloads/docs/html/unix_configure_cacti.html (Official guide with little detail)
https://logch.blogspot.hk/2017/02/install-cacti-spine-in-centos-7-with.html (good guide but does not work)
http://docs.cacti.net/manual:088:1_installation.1_install_unix.8_distribution_specific_installation_instructions.1_ubuntu (Again does not work)

I have reinstalled Ubuntu several times. I have tried it with the default LAMP stack that Ubuntu installs and I have built the LAMP stack myself. I get the most vague errors after following these guides. Can any one provide a step by step to get this up and running?

Also, I tried searching the forums but it did not like my search terms and would not return results.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Wed Feb 22, 2017 2:00 pm 
Offline

Joined: Fri Feb 10, 2017 2:45 pm
Posts: 35
I'm no Cacti pro, but I did install it about a dozen times on CentOS 7. Not sure Ubuntu is similar, but try this for a guide. Commands may be different, but the route to the end of the race should be about the same.

http://www.camerabob.com:5190/camerabob ... 1.0.x.html


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Wed Feb 22, 2017 2:09 pm 
Offline

Joined: Thu Jan 06, 2011 9:30 am
Posts: 43
Location: Nashville, TN
I just decided to do a new install myself to cleanup my install I have been using since 2012.

I installed Ubuntu 16.10 and then installed Cacti 1.0.1.

I know the BIGGEST issue I had following the instructions was, I was not getting all the needed packages installed that cacti needed.

I also did NOT install the LAMP when installing Ubuntu and got it working just fine after searching a number of posts and getting all the packages I needed installed.

So what is the issue exactly you are having... Are you not getting to the point you can get to the webpage for the final install step or are you failing at that point???

I might be able to help a little. I could even upload my text file of installed packages that you could compare to if you like????


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Thu Feb 23, 2017 8:13 am 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
Appreciate the help guys.

camerabob wrote:
I'm no Cacti pro, but I did install it about a dozen times on CentOS 7. Not sure Ubuntu is similar, but try this for a guide. Commands may be different, but the route to the end of the race should be about the same.

http://www.camerabob.com:5190/camerabob.com/info2/cacti-1.0.x.html


EDIT: That link does not work for me.

I will try that guide with Ubuntu and possibly even try CentOS instead. I have heard that Cacti was developed and tested on CentOS so that may make the install a bit easier.

cjolly3053 wrote:
I just decided to do a new install myself to cleanup my install I have been using since 2012.

I installed Ubuntu 16.10 and then installed Cacti 1.0.1.

I know the BIGGEST issue I had following the instructions was, I was not getting all the needed packages installed that cacti needed.

I also did NOT install the LAMP when installing Ubuntu and got it working just fine after searching a number of posts and getting all the packages I needed installed.

So what is the issue exactly you are having... Are you not getting to the point you can get to the webpage for the final install step or are you failing at that point???

I might be able to help a little. I could even upload my text file of installed packages that you could compare to if you like????


I think my issue is coming down to permissions with the database. I cant be 100% sure though. I have not been able to get the Website to show up at all. I have gotten two different errors from the website. 500 error and a connection refused error. With the 500 error I checked the Apache error log and was getting this error: Undefined class constant 'MYSQL_ATTR_FOUND_ROWS'
Which there is a post on here about that error but it did not end up being useful. Their suggestion was to upgrade php. I already had the latest version of PHP.
With the second error there was nothing at all in the Apache logs. Does not even seem like the site was able to be contacted.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Thu Feb 23, 2017 8:36 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2564
Location: Kressbronn, Germany
It still sounds like you're using an older PHP version or didn't install all requirements. Which PHP version did you install ?

_________________
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Thu Feb 23, 2017 1:27 pm 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
To install PHP I have been getting it straight from apt-get and each time it has said I had version 7 installed. I believe that is the latest version?

Not installing all requirements could be a very real possibility. Here is what I have installed almost every time: (on one occasion I let Ubuntu installation process install the LAMP stack)

apache2
mysql-server-5.7
php
libapache2-mod-php
snmp
snmpd
rrdtool


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Thu Feb 23, 2017 5:08 pm 
Offline

Joined: Thu Jan 06, 2011 9:30 am
Posts: 43
Location: Nashville, TN
One thing I did first thing before trying to install Cacti was I installed and configured Webmin to monitor the server since I installed 16.10 server.

I'm sure this installed some common packages so I'm sure this probably helped a little.

I just my next project should be create a guide for installing Cacti 1.0.3 on Ubuntu 16.10 Server.

I honestly had no issues from the guide I found but can't find the link for you. My biggest problem was getting Spine working and getting the SQL tweaks working.

I did this over a weekend so was not too complicated if you wanted me to I could help you with a fresh install??? Not sure how determined to get the one you've got working?

** Also side note... Are you doing this on a physical server or VM? I'm running hyper-v **


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Thu Feb 23, 2017 7:16 pm 
Offline

Joined: Thu Jan 06, 2011 9:30 am
Posts: 43
Location: Nashville, TN
So if you are willing to re-install I can include the steps I took here to get it running fast and dirty....lol (since I just got it running from a scratch install)

If you want to try and fix your installation I can give you the packages needed which is probably your hangup.

It's really simple when the correct packages are installed from the start BUT I have always had a hard time since there seems to be no "complete" documentation out there for Ubuntu.

Just let me know what you need and I will post here... In the mean time I will work on getting a doc up somewhere for everybody to see and hopefully help out some people.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 9:06 am 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
I am going to try another fresh install today. I am not using a physical device this is on a VM (VMware).

I will try to install Webmin first and see if that helps. Also, if you include what packages you installed first that would be a great help too. The documentation is definitely lacking for a clean Cacti install.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 1:30 pm 
Offline
Cacti User

Joined: Tue Aug 29, 2006 4:09 pm
Posts: 458
Location: NL
In Ubuntu it is custom to just use the package provide in the Ubuntu archives. Please see my signature for a link to the differences in the Debian/Ubuntu package with respect to the cacti installation you get from the cacti web-site.

If you install the Ubuntu package, stuff works out of the box, so you don't need installation guides, that is why you hardly find those on the web.

I haven't finished packaging the new version because it requires a lot of work to make it Debian/Ubuntu compliant. Once I am finished, I'll also make it available in my ppa.

_________________
Maintainer of cacti in Debian (and Ubuntu).
FAQ Ubuntu and Debian differences
Generic cacti debugging


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 1:43 pm 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
Quick Update: I did finally get it working. I am doing a quick write up of what eventually worked for me. Webmin was a great suggestions because it helped me manipulate the DB rights, which is what I was having trouble with.

paulgevers wrote:
In Ubuntu it is custom to just use the package provide in the Ubuntu archives. Please see my signature for a link to the differences in the Debian/Ubuntu package with respect to the cacti installation you get from the cacti web-site.

If you install the Ubuntu package, stuff works out of the box, so you don't need installation guides, that is why you hardly find those on the web.

I haven't finished packaging the new version because it requires a lot of work to make it Debian/Ubuntu compliant. Once I am finished, I'll also make it available in my ppa.


Thanks, I appreciate the info and advice. I did an install once from the Ubuntu package only to find out it is an older version. I already have a version of cacti running and I wanted the newest update.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 3:09 pm 
Offline

Joined: Thu Jan 06, 2011 9:30 am
Posts: 43
Location: Nashville, TN
Yes that was one of the problems I was having too and Webmin helped that.

Now try installing Spine...LOL


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 3:21 pm 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
Yeah, I am happy I was able to get it up and running. Took way too long to do.
I think I am still running in to permissions problems though. All of my graphs show
Quote:
The RRD file does not exist

I turn on debug mode for the graph and see this error:
Code:
ERROR: opening '/var/www/html/cacti/rra/DEVICENAME_traffic_in_7.rrd': No such file or directory

Going to that file location on the server shows that there are zero files in that folder. That makes me believe there is a permission issue. I am trying to figure out what account should have permission to that folder.
The official cacti guide says this:
Quote:
Set the appropriate permissions on cacti's directories for graph/log generation. You should execute these commands from inside cacti's directory to change the permissions.

shell> chown -R cactiuser rra/ log/
(Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)


I am not sure if I should use the root user or the user created for the mysql database or some other user like www-data. I am so confused at this point. May be a problem for another week.


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 3:26 pm 
Offline
Cacti User

Joined: Tue Aug 29, 2006 4:09 pm
Posts: 458
Location: NL
joesyuh wrote:
I am not sure if I should use the root user or the user created for the mysql database or some other user like www-data. I am so confused at this point. May be a problem for another week.


It is the user that runs the cron job than needs the write access, so check your crontab.

_________________
Maintainer of cacti in Debian (and Ubuntu).
FAQ Ubuntu and Debian differences
Generic cacti debugging


Top
 Profile  
 
 Post subject: Re: Install 1.0.3 on Fresh Ubuntu Install
PostPosted: Fri Feb 24, 2017 3:49 pm 
Offline

Joined: Wed Feb 22, 2017 1:07 pm
Posts: 8
paulgevers wrote:
joesyuh wrote:
I am not sure if I should use the root user or the user created for the mysql database or some other user like www-data. I am so confused at this point. May be a problem for another week.


It is the user that runs the cron job than needs the write access, so check your crontab.


That was helpful thank you. I updated those folders with permissions for www-data and also set the crontab job to be by user www-data and that fixed the issue.

I know most of this stuff is fairly obvious for people who understand Linux well, but for me its like walking around in a pitch black room trying to put together a jigsaw puzzle.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group