Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Installing Cacti on Ubuntu
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
tspec



Joined: 15 Nov 2005
Posts: 8

PostPosted: Tue Nov 22, 2005 6:10 pm    Post subject: [HOWTO] Installing Cacti on Ubuntu Reply with quote

For anyone interested, I wrote up a quick guide on how to install Cacti on Ubuntu and added it to the Ubuntu Wiki pages yesteday.

https://wiki.ubuntu.com/CactiHowTo

I tried installing it roughly 4 or 5 times on two different boxes using these instructions and had no issues so i'd be interested to know if others have any success with it or not... that is if you ever have any desire to getting it running on Ubuntu.
Back to top
xphu



Joined: 30 Jun 2005
Posts: 12
Location: Helsinki, Finland

PostPosted: Tue Nov 29, 2005 1:01 pm    Post subject: Re: Installing Cacti on Ubuntu Reply with quote

tspec wrote:
For anyone interested, I wrote up a quick guide on how to install Cacti on Ubuntu and added it to the Ubuntu Wiki pages yesteday.

https://wiki.ubuntu.com/CactiHowTo

I tried installing it roughly 4 or 5 times on two different boxes using these instructions and had no issues so i'd be interested to know if others have any success with it or not... that is if you ever have any desire to getting it running on Ubuntu.


I just installed cacti following your excelent notes.

Not big problems. Only problem was to find out how to find a way to get "sudo apt-get install cacti". Apt-get was not finding "universe". It was finding only a local disribution point which was not including cacti. Need to uncomment some rows to get it. And a basic installation does not install a root user at all.

Cacti version seems to be 0.8.6f. My guestion is how to get cacti 0.8.6g.

I am myself a Windows man. This was really my first linux application installation.

\xphu
Back to top
sconlan



Joined: 05 Dec 2005
Posts: 2
Location: Colorado

PostPosted: Wed Dec 07, 2005 9:29 pm    Post subject: Reply with quote

ditto "Need to uncomment some rows to get it. And a basic installation does not install a root user at all"

Being new to ubuntu and a novice at linux, it took a while to figure out..

Edit the /etc/apt/sources.list file before doing any "apt-get install ..."
also "sudo passwd root" from your user account to activiate the root account; then log in as root

Do an "apt-get update" then begin the install instructions.

I installed ubuntu and cacti multiple times for practice. Occasionally, the php5-mysql package would not configure correctly. This prevented my graphs from showing up. Everything else in cacti was working fine, just no graphs. I did a "php -m" and saw that mysql module was not listed.
I finally did a "dpkg-reconfigure php5-mysql" to correct the problem. This was an intermittent problem during my installs/ format/ re-installs. Not sure why it worked sometimes and not others.

Everything is pretty now. Thanks for the instructions.

Oh yeah, don't forget to "apache2ctl restart" after you do the dpkg-reconfigure.
Back to top
eanders



Joined: 05 Jan 2006
Posts: 1

PostPosted: Thu Jan 05, 2006 10:40 am    Post subject: snmp error Reply with quote

Thanks for the great tutorial. Installing seems to be a breeze, it's configuring that I'm having trouble with.
Specifically I'm getting an snmp error message, it seems that no matter what I do I can't seem to fix that, or find any additional information that might tell me where to look.

Does anyone here have cacti monitoring the local network ports?
Or monitoring other ubuntu boxes over the network?
Back to top
jpgeerets



Joined: 28 Nov 2005
Posts: 18

PostPosted: Thu Feb 02, 2006 9:28 am    Post subject: Reply with quote

waaw,
this is a good advice!
stuff works now.
im very very happy!!!

Back to top
tristanbob



Joined: 12 Apr 2006
Posts: 1

PostPosted: Tue May 16, 2006 4:23 pm    Post subject: Reply with quote

I have updated this page on the Ubuntu Wiki to support Ubuntu 6.06 LTS (Dapper Drake). Take a look!

https://wiki.ubuntu.com/CactiHowTo

Tristan Rhodes
Back to top
EndPerform



Joined: 16 Jun 2006
Posts: 1

PostPosted: Fri Jun 16, 2006 3:52 pm    Post subject: Reply with quote

Thanks for the howto. Just a side-note that if you already have mysql set up and a root password set, you'll need to enter that when prompted. But otherwise, I had cacti up and running within 5 minutes. Thanks again!
Back to top
hiltonadmin



Joined: 28 Jun 2006
Posts: 1
Location: Upstate NY

PostPosted: Wed Jun 28, 2006 2:46 pm    Post subject: Xunbuntu cacti plugins Reply with quote

Anyone have any luck installing the Cacti Plugin arch. I can't get the Plugin stuff to work. When I follow the instructions to install the Plugin-Arch I completly break cacti. I get errors:
Quote:
Warning: include(/usr/share/cacti/site/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 166

Warning: include() [function.include]: Failed opening '/usr/share/cacti/site/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/config.php on line 166

Fatal error: Call to undefined function NewADOConnection() in /usr/share/cacti/site/lib/database.php on line 40


If I look for /usr/share/cacti/site/lib/adodb I can't find it.

I did notice that the config.php file I have is rather different then the standard cacti config file.
I installed cacti using the package manager.
I'm running Xunbuntu ver. 6.06, MYSQL 5.0, cacti 0.8.6h.
I've checked the Unbuntu wiki site, google, and Cacti's site with no luck.
any ideas? Thanks!
Back to top
LordMerlin



Joined: 02 Jul 2006
Posts: 3
Location: Johannesburg, Soutg Africa

PostPosted: Sun Jul 02, 2006 3:11 am    Post subject: Reply with quote

This is one reason I don't always like apt-get. I'm already running Apache2, PHP5, MySQL 4.0.12 with some databases and security already setup.

So, when I installed cacti from apt-get, it couldn't create the database, which I then added manually afterwards.

Then I edited /etc/cacti/debian.php to insert my database details.

Problem now is, I get this error:

Code:
Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Notice: Only variable references should be returned by reference in /usr/share/adodb/adodb.inc.php on line 854

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/adodb/adodb.inc.php:854) in /usr/share/cacti/site/include/auth.php on line 31


Any suggestions?
Back to top
cexar



Joined: 14 Aug 2006
Posts: 1

PostPosted: Mon Aug 14, 2006 3:32 pm    Post subject: cant login cacti Reply with quote

i type apt-get insatll cati
on ubuntu server 6.06
the cacti pass and mysql pass for cati was leaved blank
i try to get with http://mylocalip/cacti
but it doesnt work
then i try to remove
apt-get remove cacti
i was asking for a pass, i leve blnak
but i got the following:

uninstalling cacti ...
dbconfig-common: dumping mysql database cacti to /var/tmp/cacti.cacti.2006-08-14-15.23.mysql.wfcvfK
dpkg: error processing cacti (--remove):
the subprocess pre-removal script send output code error 1
dbconfig-common: writing config to /etc/dbconfig-common/cacti.conf
Replacing config file /etc/cacti/debian.php with new version
dbconfig-common: flushing administrative password
there were errors processing:
cacti
E: Sub-process /usr/bin/dpkg returned an error code (1)
Back to top
MatsB
Cacti User


Joined: 10 Jan 2006
Posts: 50

PostPosted: Sat Aug 19, 2006 11:07 am    Post subject: Reply with quote

Does anybody know if I need to go through steps 7-13 under Installing Cacti for Ubuntu - Part 1?
I'm asking because I don't have the cacti.sql file located anywhere and it seems that from step 12 it's extracted.


I'm installing on Ubuntu Server 6.06

I've completed all steps under:
-Installing Cacti on Ubuntu Server 6.06 (Dapper Drake)
-Setup Cacti
-Recommended: Create a root password for MySQL
Back to top
Seesa



Joined: 15 Feb 2006
Posts: 1

PostPosted: Mon Aug 28, 2006 6:38 am    Post subject: Re: Xunbuntu cacti plugins Reply with quote

hiltonadmin wrote:
Anyone have any luck installing the Cacti Plugin arch. I can't get the Plugin stuff to work. When I follow the instructions to install the Plugin-Arch I completly break cacti. I get errors:
Quote:
Warning: include(/usr/share/cacti/site/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/share/cacti/site/include/config.php on line 166

Warning: include() [function.include]: Failed opening '/usr/share/cacti/site/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /usr/share/cacti/site/include/config.php on line 166

Fatal error: Call to undefined function NewADOConnection() in /usr/share/cacti/site/lib/database.php on line 40


If I look for /usr/share/cacti/site/lib/adodb I can't find it.

I did notice that the config.php file I have is rather different then the standard cacti config file.
I installed cacti using the package manager.
I'm running Xunbuntu ver. 6.06, MYSQL 5.0, cacti 0.8.6h.
I've checked the Unbuntu wiki site, google, and Cacti's site with no luck.
any ideas? Thanks!


I have same problem - Ubuntu 6.06 LTS, Cacti 0.8.6h, Apache2, MySQL 5.0.
After installing Cacti (apt-get install cacti), I will use the patch, copy file config.php from files-0-8-6h/include to site/include and edit it for my creditionals. Also, I edit url_path, but now i saw only an error page...
Back to top
7echno7im



Joined: 02 Oct 2007
Posts: 21

PostPosted: Fri Oct 05, 2007 3:53 pm    Post subject: Reply with quote

I am goign to post ubuntu install instructions soon for server without using xampp, step-by-step, latest version from source.
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12186
Location: Muenster, Germany

PostPosted: Sat Oct 06, 2007 5:51 am    Post subject: Reply with quote

MatsB wrote:
Does anybody know if I need to go through steps 7-13 under Installing Cacti for Ubuntu - Part 1?
I'm asking because I don't have the cacti.sql file located anywhere and it seems that from step 12 it's extracted.


I'm installing on Ubuntu Server 6.06

I've completed all steps under:
-Installing Cacti on Ubuntu Server 6.06 (Dapper Drake)
-Setup Cacti
-Recommended: Create a root password for MySQL
You may check, if the database is already in place. Run mysql from command line an issue the command
Code:
show databases;
If the database cacti is already in place, everything's fine
Reinhard
Back to top
7echno7im



Joined: 02 Oct 2007
Posts: 21

PostPosted: Wed Oct 10, 2007 10:27 pm    Post subject: Reply with quote

Done... sorry for the wait. Here is a crude mark up. As soon as I have time to make them nicer looking I will.

http://technotim.dyndns.org/index.php?option=com_content&task=view&id=80&Itemid=13

if you dig it, then digg it.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group