Cacti intallation on Ubuntu 9.04
Moderators: Developers, Moderators
Here is the screen shot for poller cache
Well, i am not sure if this presents a problem or not. I installed the cacti under /var/www/ directory. Basically download the tar file and untar it under that /var/www/ folder. Is that okay?
Well, i am not sure if this presents a problem or not. I installed the cacti under /var/www/ directory. Basically download the tar file and untar it under that /var/www/ folder. Is that okay?
- Attachments
-
- pollercache.JPG (120.64 KiB) Viewed 25706 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
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
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Are you sure this is from packages, and not source ? If it's installed from packages, you should have a path to rra like this "RRD: /usr/share/cacti/site/rra"
What happens if you clear the poller cache and wait for another poll ?
What happens if you clear the poller cache and wait for another poll ?
Last edited by mcutting on Mon Jun 08, 2009 11:14 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
Yeah... this is where i think my problem is.... i have my cacti installed under /var/www/ ..... so when i triedmcutting wrote:Ok - could you also do
From terminal
cd /usr/share/cacti/site/rra
ls -ln
Post output
Thanks
Code: Select all
cd /usr/share/cacti/site/rra
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
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
Here is what happened when i run whereis rra/mcutting wrote:Are you sure this is from packages, and not source ? If it's installed from packages, you should have a path to rra like this "RRD: /usr/share/cacti/site/rra"
What happens if you clear the poller cache and wait for another poll ?
Code: Select all
root@magneto:/bin# whereis rra/
: /bin/. /usr/bin/. /sbin/. /usr/sbin/. /etc/. /lib/. /usr/lib/. /usr/games/. /usr/local/bin/. /usr/local/sbin/. /usr/local/etc/. /usr/local/lib/. /usr/local/games/. /usr/include/. /usr/local/. /usr/share/. /usr/share/man/it.ISO8859-1/. /usr/share/man/man6/. /usr/share/man/ko/. /usr/share/man/man5/. /usr/share/man/man8/. /usr/share/man/id/. /usr/share/man/pl.UTF-8/. /usr/share/man/hu/. /usr/share/man/fi/. /usr/share/man/it.UTF-8/. /usr/share/man/fr.ISO8859-1/. /usr/share/man/man4/. /usr/share/man/gl/. /usr/share/man/pl/. /usr/share/man/sv/. /usr/share/man/ru/. /usr/share/man/zh_CN/. /usr/share/man/fr/. /usr/share/man/pl.ISO8859-2/. /usr/share/man/man2/. /usr/share/man/man3/. /usr/share/man/ja/. /usr/share/man/man1/. /usr/share/man/zh_TW/. /usr/share/man/tr/. /usr/share/man/de/. /usr/share/man/pt_BR/. /usr/share/man/es/. /usr/share/man/cs/. /usr/share/man/fr.UTF-8/. /usr/share/man/man7/. /usr/share/man/it/.
root@magneto:/bin#
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
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 wrote:Ok, well, let's try
cd /var/www/cacti/rra
ls -ln
Post output
Code: Select all
root@magneto:/bin# cd /var/www/cacti/rra
root@magneto:/var/www/cacti/rra# ls -ln
total 0
root@magneto:/var/www/cacti/rra# ls -ln
total 0
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
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
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Ok, I think if you tried with packages first, and then failed, it looks like you may have mashed your system.
What sort of errors did you get ? You should have used
sudo apt-get install cacti-cactid
What sort of errors did you get ? You should have used
sudo apt-get install cacti-cactid
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
Ultimately, RRDTool is not creating RRA's, as it's segfaulting - explains why this directory is empty. If you installed from packages, then Net-SNMP, RRDTool and everything else you need is setup for you.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
ok.. so i took your advice and removed the snmp and rrdtool manually. (in fact, i manually installed it when the files were found) and reinstall the cacti-cactid by using apt-get. It asked me if i wanted to keep the same source file which i did. The install went well until the end ... it shows...mcutting wrote:Ultimately, RRDTool is not creating RRA's, as it's segfaulting - explains why this directory is empty. If you installed from packages, then Net-SNMP, RRDTool and everything else you need is setup for you.
Please inform the package maintainer about this problem.
Not replacing deleted config file /etc/cacti/apache.conf
apache2: Syntax error on line 281 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/cacti.conf: No such file or directory
...fail!
invoke-rc.d: initscript apache2, action "reload" failed.
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
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
I used the tar file from the official cacti site http://www.cacti.net/downloads/cacti-0.8.7d.tar.gz and untar it in var/www/ directory.mcutting wrote:Ok, I think if you tried with packages first, and then failed, it looks like you may have mashed your system.
What sort of errors did you get ? You should have used
sudo apt-get install cacti-cactid
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
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
LOL... so it looks like its getting some where... was testing out the benchmark command "php poller.php" and was able to get the following result.
it looks like i am getting somewhere.. however, i am not getting any graphs... going to do some more research and reading and see if i can find out what else i can do to fix this. Comments and advise are welcome.. lol
So, i checked my graphs...and also checked my log file...php poller.php
06/08/2009 01:15:47 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 10775 seconds have passed since the last poll!
06/08/2009 01:15:48 PM - SYSTEM STATS: Time:1.1851 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:7
OK u:0.01 s:0.00 r:1.08
OK u:0.01 s:0.00 r:1.08
OK u:0.01 s:0.00 r:1.12
OK u:0.01 s:0.00 r:1.12
OK u:0.01 s:0.00 r:1.13
OK u:0.01 s:0.00 r:1.13
OK u:0.01 s:0.00 r:1.15
OK u:0.01 s:0.00 r:1.15
OK u:0.01 s:0.00 r:1.17
OK u:0.01 s:0.00 r:1.17
OK u:0.01 s:0.00 r:1.19
OK u:0.01 s:0.00 r:1.19
OK u:0.01 s:0.00 r:1.21
OK u:0.01 s:0.00 r:1.21
root@magneto:/var/www/cacti#
it looks like i am getting somewhere.. however, i am not getting any graphs... going to do some more research and reading and see if i can find out what else i can do to fix this. Comments and advise are welcome.. lol
- Attachments
-
- newgraph.JPG (90.35 KiB) Viewed 25668 times
-
- newpoller.JPG (124.19 KiB) Viewed 25668 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
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
Finally got it fixed. I had to go in the crontab and change the command field. It was pointed to the wrong directory.
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
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
Hey i'm trying to install Cacti on Ubuntu 9.04 server too. I'm completely new to Linux and am not a programmer, so I have a hard time figuring out what commands to use.
I was following the guide at http://www.cacti.net/downloads/docs/htm ... e_php.html but its for unix in general... I've managed to nearly install all the required packages but am not finding some or equivalent of some of the file modifications that need to be done.
Do you think you could throw together a quick walkthrough of the commands needed to get Cacti up and running on Ubuntu 9.04?
Thanks in advance if you can do this...
I was following the guide at http://www.cacti.net/downloads/docs/htm ... e_php.html but its for unix in general... I've managed to nearly install all the required packages but am not finding some or equivalent of some of the file modifications that need to be done.
Do you think you could throw together a quick walkthrough of the commands needed to get Cacti up and running on Ubuntu 9.04?
Thanks in advance if you can do this...
Install Cacti Ubuntu 9.04
I had all sorts of issues, particularly doing then upgrade where the download does not have some essential patches.
I wrote up a tutorial to help - http://open4energy.com/tutorials
Hope there may be some use in it
Alex
I wrote up a tutorial to help - http://open4energy.com/tutorials
Hope there may be some use in it
Alex
Installing a fresh cacti+plugin on Unbuntu .. :D
The easy way to install cacti on Ubuntu is using the default version installed from apt.
that should do it, then follow the instructions on screen.
set a password etc for the cacti mysql database.
Now the default install is in /usr/share/cacti
dont bother completing the install via the webpage (http://server/cacti/)
now enter the install dir and move the old cacti out of the way.
now edit the file with your fav editor .. mine is vi..
scroll down to line 59 or so where it shows:
edit it to look like:
Now everything is according to ubuntu standards except the rra location which is usually in /var/lib/cacti/rra/ but i like to make easy backups of /usr/share/cacti and know i got everything.
Last thing is to update the mysql database.
Now you are done with the basic install of cacti.
To install cacti-plugins..
now edit the file with your fav editor .. mine is vi..
scroll down to line 59 or so where it shows:
edit it to look like:
and you are set for cacti + plugins...
Code: Select all
sudo apt-get install cacti cacti-spine php5-snmp rrdtool
set a password etc for the cacti mysql database.
Now the default install is in /usr/share/cacti
dont bother completing the install via the webpage (http://server/cacti/)
now enter the install dir and move the old cacti out of the way.
Code: Select all
cd /usr/share/cacti
mv site old.site
mv resources old.resources
wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz
tar zxf cacti-0.8.7e.tar.gz
mv cacti-0.8.7e site
mv site/resource .
mv site/rra .
cd site
ln -s ../site/resource
ln -s ../site/rra
chown -n www-data.www-data resource rra
cp /usr/share/cacti/old.site/include/config.php /usr/share/cacti/site/include/config.php
chown -R www-data.www-data /usr/share/cacti
Code: Select all
vi /usr/share/cacti/site/include/global.php
Code: Select all
$config['url_path'] = "/";
Code: Select all
$config['url_path'] = "/cacti/";
Last thing is to update the mysql database.
Code: Select all
cd /usr/share/cacti/site
mysql -u root
drop cacti
create cacti
exit
mysql -u root cacti < cacti.sql
To install cacti-plugins..
Code: Select all
cd /usr/share/cacti/
wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7e-PA-v2.5.zip
unzip cacti-plugin-0.8.7e-PA-v2.5.zip
mysql -u root cacti < pa.sql
cp -Rpf files-0.8.7e/* site/
Code: Select all
vi /usr/share/cacti/site/include/global.php
Code: Select all
$config['url_path'] = "/";
Code: Select all
$config['url_path'] = "/cacti/";
Code: Select all
chown -R www-data.www-data /usr/share/cacti
[url=http://forums.cacti.net/viewtopic.php?t=4356]Template: Cisco CatOS[/url]
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
[url=http://forums.cacti.net/viewtopic.php?t=21785]Mactrack: Netscreen Fw[/url]
[b]_______________[/b]
[b]Cacti Version[/b] - 0.8.7e, [b]Plugin Architecture[/b] - 2.5, [b]Poller Type[/b] - Cact-Spine 0.8.7e
[b]Server Info[/b] - Ubuntu Server 8.10 (2.6.27-7-server), [b]Web Server[/b] - Apache/2.2.9 PHP/5.2.6-2ubuntu4.3 with Suhosin-Patch
[b]PHP[/b] - 5.2.6-2ubuntu4.3, [b]MySQL[/b] - 5.0.67-0ubuntu6-log, [b]RRDTool[/b] - 1.3.1, [b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Thresholds v0.4.1, Login Mod v1.0, Host Info v0.2
Who is online
Users browsing this forum: No registered users and 1 guest