Cacti intallation on Ubuntu 9.04

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

cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Cacti intallation on Ubuntu 9.04

Post by cjblade54 »

Is there a new installation guide for installing the new Cacti version onto Ubuntu 9.04 Server Edition? or should i just follow the old version installation guide?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Re: Cacti intallation on Ubuntu 9.04

Post by mcutting »

cjblade54 wrote:Is there a new installation guide for installing the new Cacti version onto Ubuntu 9.04 Server Edition? or should i just follow the old version installation guide?
Follow the guide here

http://www.ubuntugeek.com/install-and-c ... erver.html

Then update the database and application by hand.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

Thanks. I got the Cacti installed on the server hardware. It took a while to get it to work. However, i am missing some files and was not able to pull and graphs. I noticed under my Setting and Path... the SNMPWALK file was not found among several others. Not sure if it didn't get installed from the package file i got.... can I add these files manually? Here is a screenshot on my setting page. Please advice.
PS. I have another Cacti box that is functional. Can I just copy the SNMPwalk file from that machine to the server? Would that work?
Attachments
Cacti.JPG
Cacti.JPG (140.31 KiB) Viewed 33623 times
Operating System: Ubuntu 9.10 Sever Edition and Desktop Edition
Webserver: Apache2
Cacti: 0.8.7e
Spine: Not Sure
MySQL: 5.1.37
PHP: 5.2.10-2ubuntu6.4
RRDTool (Cygwin or Win32 version):Not Sure
Net-SNMP:Not Sure
Cygwin (cygwin1.dll version): Not sure
Plugin Architecture: 0.8.7e
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hmm, that doesn't look good. Seems like RRDTool and Net-SNMP didn't even get installed ! Did you install Cacti from source, or from packages ?

From terminal, type

sudo apt-get install rrdtool
sudo apt-get install librrds-perl
sudo apt-get install snmpd

These commands above should install RRDTool and Net-SNMP - hopefully, iy'll cure the problems you seem to be experiencing.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

Yeah.. right after i posted my problem. I used

Code: Select all

whereis
command to see if i can find these files. They were not exist in any directories. So i installed these packaged and all the files are "found". I added the local hosts and a test switch and see if they graphs are showing. I am giving it 5 mins and see if it polls any graphs at all. Is there a command you can check that Cacti is polling any information from the networking devices?
Operating System: Ubuntu 9.10 Sever Edition and Desktop Edition
Webserver: Apache2
Cacti: 0.8.7e
Spine: Not Sure
MySQL: 5.1.37
PHP: 5.2.10-2ubuntu6.4
RRDTool (Cygwin or Win32 version):Not Sure
Net-SNMP:Not Sure
Cygwin (cygwin1.dll version): Not sure
Plugin Architecture: 0.8.7e
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Well, if you installed from packages, the user for the poller is www-data. I would do a "crontab -e" and see if there are any entries for the poller. Check the logs also (use LOW) and see if any entries are placed there.

The worst part is over (hopefully), and if the poller is running, you should be good to go.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

Ok.. so, i did some debugging on my test switch. It seems like its working.

Code: Select all

Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti/rra/test_switch_traffic_in_9.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
However, when i check the log file.... :cry:
Attachments
Nograph.JPG
Nograph.JPG (124.33 KiB) Viewed 33604 times
Operating System: Ubuntu 9.10 Sever Edition and Desktop Edition
Webserver: Apache2
Cacti: 0.8.7e
Spine: Not Sure
MySQL: 5.1.37
PHP: 5.2.10-2ubuntu6.4
RRDTool (Cygwin or Win32 version):Not Sure
Net-SNMP:Not Sure
Cygwin (cygwin1.dll version): Not sure
Plugin Architecture: 0.8.7e
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Seems like RRDTool is segfaulting - can you post the result of

which rrdtool

Thanks

EDIT: have you also checked the permissions for your RRA directory ? You need to make sure that your poller account has write access
Last edited by mcutting on Mon Jun 08, 2009 11:00 am, edited 1 time in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Might also make sense to set your poller into DEBUG for one pass, and submit a copy of the log here.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

Here is the result after i typed "which rrdtool"
/user/bin/rrdtool
Operating System: Ubuntu 9.10 Sever Edition and Desktop Edition
Webserver: Apache2
Cacti: 0.8.7e
Spine: Not Sure
MySQL: 5.1.37
PHP: 5.2.10-2ubuntu6.4
RRDTool (Cygwin or Win32 version):Not Sure
Net-SNMP:Not Sure
Cygwin (cygwin1.dll version): Not sure
Plugin Architecture: 0.8.7e
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok. Please see my other posts - particularly the one concerning permissions.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

cjblade54 wrote:Here is the result after i typed "which rrdtool"
/user/bin/rrdtool
Are you sure that it's not "usr/bin/rrdtool" ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
cjblade54
Cacti User
Posts: 58
Joined: Tue Mar 04, 2008 10:08 am

Post by cjblade54 »

mcutting wrote:
cjblade54 wrote:Here is the result after i typed "which rrdtool"
/user/bin/rrdtool
Are you sure that it's not "usr/bin/rrdtool" ?
LOL.. yeah.. its is /usr/bin/rrdtool
Operating System: Ubuntu 9.10 Sever Edition and Desktop Edition
Webserver: Apache2
Cacti: 0.8.7e
Spine: Not Sure
MySQL: 5.1.37
PHP: 5.2.10-2ubuntu6.4
RRDTool (Cygwin or Win32 version):Not Sure
Net-SNMP:Not Sure
Cygwin (cygwin1.dll version): Not sure
Plugin Architecture: 0.8.7e
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok - could you also do

From terminal

cd /usr/share/cacti/site/rra

ls -ln

Post output

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest