How to Install Cacti 0.8.7d..
Transcript of How to Install Cacti 0.8.7d..
والعصر"Ngelmu iku kelakone kanthi laku…"
Pages
AboutAngkringanDownloadsMost Wanted CommandsMy Desktop
tag
apache autoposting blank0n Cacti compiz compiz fusion Debian distro linux docsedufiesta emulator error etc fedora flash freebsd game GNU/Linux Grub
install installasi iseng j2me java Knoppix lenny Live CD Live USB Mailmonitoring tools mysql old post Opensuse php ps one remastering review server shock
Slackware slax software soundcard tips ubuntu Underground Unix Variant usb Webserver wireless
choose docs archive
Blogroll and Links
Debian Manual
Installation Guide
All in the worlds
Celeste Lyn PaulMichael WarnerT
indonesian linux hardworker
Agus AshadAji Kusworo Mukti
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
1 of 12 6/12/2010 8:43 AM
DarmanexDavidDigit OktaviantoDedhi PurnamaDedy selalu MilisdadDobeldenEnggarGatraIzharul Haqjok3rKaruwakMahyuddin SusantoordinareezRizki NandaRedy Basukiryan_okeTerminallia CattapaYuda Nugrahadi
Indonesian Linux Planet
Planet Debian IdPlanet Linux IdPlanet Slackware IdPlanet Ubuntu Id
indonesian linux community
debian-id.orgfedora-idfoss-idgnome-idlinux-idopensuse-idslackware-idslackware-makassarubuntu-id
iix mirror connection
kambing.ui.ac.idkebo.vlsm.orgmirror.unej.ac.idrepo.ugm.ac.id
indonesian reverser
antcodekeboajaNeMeSiS_ByTeorakanggo
race campus
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
2 of 12 6/12/2010 8:43 AM
Aat ShadewaAri Eko PrasetyoAri Eko Prasetyo dot netChatur PriyonoHery kohimaruJovieRachmat Febrianto - bloggerRachmat FebriantoRoyan quantroRhesa MahendraRian 'Frankenstein' SaktiRudhy Hadri SuwandanaSakti BangetTommyirawanToto YuliantoSuwanto Raharjoxx_userYossi
OSUG – JUG
BernazWilbert
Blogger
ardianzzzMarion
Tutorial Site
open4energy.comtech-db.comwowtutorial.org
Top Posts
Short AttackPenyelamatan Data yang terformat dengan Recovery Tools Easy Profesional v.6Installing Debian Lenny from a USB memory stick (USB HDD)How to install Cacti 0.8.7dHow to install Plugin Architecture Cacti and Mysql template for cactiHow to install poller cactid or spine on linuxHow to install Postfix, UW IMAP and RoundCube webmailInstall apache, php5, and mysql on FreeBSD 7.2 using portsLIVE USB, INSTALLATION, AND REMASTERING FINNIXMore faster acpi shutdown on Debian - Change your ACPI script
Last Post
Server was moved, goodbye wordpressTips sederhana setelah installasi solarisLimited Upload max on your own directory apache
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
3 of 12 6/12/2010 8:43 AM
Cara membuat system FreeBSD 7.2 / 8.0 release ke stable pasca installasiHow to protect your page using mod authz hostHow to Terminate, Suspend, and Continue a process using killUpdate package failed on ports FreeBSDHow to mount iso on FreeBSDImplementation of social network for monitoring server via smsBrowser Google Chrome di Slackware ?? *sapa takuttt… halah*
blog stats
112,956 hits
seng nyangkut
3,072 spam commentsblocked byAkismet
« Installasi Postfix, Saslauthd, VM-Pop3d, dan SquirrelMail di OpenSuseHow to install poller cactid or spine on linux »
How to install Cacti 0.8.7dMay 26, 2009
About Cacti
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
4 of 12 6/12/2010 8:43 AM
Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage andgraphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisitionmethods, and user management features out of the box. All of this is wrapped in an intuitive, easy to useinterface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.
so, let’s do it :
in this experiment I use openSUSE 11. u can try on debian based or ubuntu. see this page for more info
1. Prepare web server and Database server
At this point we’ll prepare web server dan database server. you can view how to install web server and databaseserver on here with indonesian language. But don’t worry, u can also see english version on this page.
you can check or make sure webserver(apache) and database server (mysql) installed on your machine. on opensuse 11 we can check apache with command:
and mysql
2. Prepare php-snmp module
just type like this to install php5-snmp module:
that automatically install:
net-snmp-5.4.1-77.4snmp-mibs-5.4.1-77.4libsnmp15-5.4.1-77.4php5-snmp-5.2.9-0.1net-snmp-devel-5.4.1-77.4
check with rpm -qa | grep snmp to make sure like on list. if isn’t on list, u can install step by step list module.
3. Prepare rrdtool
at least, we’ve two way to install rrdtool. pls choose use binary. If rrdtool not recognized by cacti, u mustcompile rrdtool from source.
a. Use binary from repositori.
we can type:
that automatically install:
rrdtool-1.2.27-22.1rrdtool-devel-1.2.27-22.1
check with rpm -qa | grep rrdtool to make sure like on list. if isn’t on list, u can install step by step list module.
b. Compile from source
1 # rpm -qa | grep apache2
1 # rpm -qa | grep mysql
1 # yast2 -i php5-snmp
1 # yast2 -i rrdtool
1 # wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz2 # tar -xzvf rrdtool-1.3.8.tar.gz;cd rrdtool-1.3.83 # ./configure && make && make install
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
5 of 12 6/12/2010 8:43 AM
**NOTE**Installing dependencies:
glib-2.15.4.tar.gzcairo-1.6.4.tar.gzpango-1.21.1.tar.bz2
dependencies package download recommanded from here
Get package, extract package, change to work directory and install
please see install or readme files on package for information
4. Installing Cacti
Go to the download page to download cacti.
4.1. Put cacti-0.8.7d.tar.gz into directory can access on site.example: root directory on example.com is /srv/www/htdocs . so put cacti-0.8.7d.tar.gz into htdocs directoryand extract.
4.2. rename directory cacti-0.8.7d to cacti be simply use and change directory to it
4.3. add group cacti
and user for cacti
4.3. change password for cacti user
Now, Installing cacti database and make sure cacti user to have privileges
4.4. create database cacti
4.5. dump cacti database
4.6. set privileges cacti database to cacti user
4.7. Edit Configuration config.php
1 # aclocal2 # autoheader3 # autoconf4 # automake5 # ./configure6 # make7 # make install
1 # tar -xzvf cacti-0.8.7d.tar.gz
1 # mv cacti-0.8.7d cacti; cd cacti
1 # groupadd cacti
1 # useradd -g cacti cactiuser
1 # passwd cactiuser
1 # mysqladmin -u root -p create cacti
1 # mysql -u root -p cacti < cacti.sql
1 # mysql -u root -p2 mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactipassword’;3 mysql> flush privileges;
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
6 of 12 6/12/2010 8:43 AM
4.8. set permission rra and log directory to cactiuser
4.9. make cron schedule with crontab
type ‘a’ and fill like this
type ‘esc’ and ‘:w’ to write, and type ‘q’ to quit .
4.10. access it from site example.com/cactiresults:
click next
choose new install
1 # vi include/config.php2 /* make sure these values refect your actual database/host/user/password */3 $database_type = “mysql”;4 $database_default = “cacti”;5 $database_hostname = “localhost”;6 $database_username = “cactiuser”;7 $database_password = “cactipassword”;8 $database_port = “3306";
1 # chown -R cactiuser rra/ log/
1 # crontab -e
1 */1 * * * * /usr/bin/php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
7 of 12 6/12/2010 8:43 AM
choose net-snmp 5.x and rrdtool 1.2.x . i use 1.3 version. so, make sure version that’s true. and then click Finish
ok, just it . you can access now on example.com/cacti . use admin as user and admin as password. How tocreate and manage cacti ?, you can see video on this page
Troubleshooting:
1. Socket Error
get the error:ErrorThe following PHP extensions are missing:* sockets
make sure Configure Command on phpinfo have
if none, install php5-sockets
if it’s not resolve problem, you can recompile your php from source , googling
2. Graphic not shown / Make sure rrdtool works as normally
maybe you got error like this
make sure your rrdtool can generate for graphic file. you can download rrd file on this directory . and try on
1 --enable-sockets
1 # yast2 -i php5-sockets
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
8 of 12 6/12/2010 8:43 AM
konsole with type:
that command will create file cacti.png on /tmp .
3. Make sure snmp daemon running.
type this to make sure snmp daemon running on your machine:
it will results:
SNMPv2-MIB::sysDescr.0 = STRING: Linux ddd.ssss.net 2.6.18-92.1.13.el5.028stab059.6 #1 SMPFri Nov 14 20:22:51 MSK 2008 i686SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (53004148) 6 days, 3:14:01.48SNMPv2-MIB::sysContact.0 = STRING: Sysadmin (root@localhost)etc..
4. make sure enough memory
type like this on konsole:
if output of console results :
Out of memory
u must killall -9 something_daemon that running
5. Always check cacti log on log directory
cmiiw
Reference:
01 /usr/local/rrdtool-1.3.8/bin/rrdtool graph /tmp/cacti.png - \02 --imgformat=PNG \03 --start=1243236410 \04 --end=1243322810 \05 --title="localhost - Load Average" \06 --rigid \07 --base=1000 \08 --height=120 \09 --width=500 \10 --alt-autoscale-max \11 --lower-limit=0 \12 --units-exponent=0 \13 COMMENT:"From 2009/05/25 08\:26\:50 To 2009/05/26 08\:26\:50\c" \14 COMMENT:" \n" \15 --vertical-label="processes in the run queue" \16 --slope-mode \17 --font TITLE:12: \18 --font AXIS:8: \19 --font LEGEND:10: \20 --font UNIT:8: \21 DEF:a="/srv/www/htdocs/cacti/rra/localhost_load_1min_16.rrd":load_1min:AVERAGE \22 DEF:b="/srv/www/htdocs/cacti/rra/localhost_load_1min_16.rrd":load_5min:AVERAGE \23 DEF:c="/srv/www/htdocs/cacti/rra/localhost_load_1min_16.rrd":load_15min:AVERAGE \24 CDEF:cdefg=TIME,1243322526,GT,a,a,UN,0,a,IF,IF,TIME,1243322526,GT,b,b,UN,0,b,IF,IF,TIME,1243322526,GT,c,c,UN,0,c,IF,IF,
\25 AREA:a#EACC00FF:"1 Minute Average" \26 GPRINT:a:LAST:" Current\:%8.2lf\n" \27 AREA:b#EA8F00FF:"5 Minute Average":STACK \28 GPRINT:b:LAST:" Current\:%8.2lf\n" \29 AREA:c#FF0000FF:"15 Minute Average":STACK \30 GPRINT:c:LAST:"Current\:%8.2lf\n" \31 LINE1:cdefg#000000FF:"\n"
1 snmpwalk -c public -v 1 localhost system
1 /usr/bin/php cacti/poller.php
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
9 of 12 6/12/2010 8:43 AM
1. cacti.net2. tech-db.com3. groundworkopensource.com4. forums.cacti.net5. oss.oetiker.ch6. gregsowell.com
This entry was posted on May 26, 2009 at 4:20 pm and is filed under Cacti, GNU/Linux, Opensuse, docs, monitoring tools, server, tips.
Tags: apache, Cacti, graphic cacti not show, monitoring tools, rrdtool, snmp
9 Responses to “How to install Cacti 0.8.7d”
Alex Bischoff Says:
June 12, 2009 at 5:50 am
This will probably work on Ubuntu and Debian if done as described.
But it does not follow the install model of the Ubuntu/Debian distribution, in particular if you have done a“sudo apt-get install cacti-cactid”, and installed Cacti 0.8.7b
I have build a tutorial specifically for Ubuntu/Debian, with custom extensions for managing energyconsumption by reading SNMP values from a PDU
See: http://www.open4energy.com/tutorials/virtualbox/cacti
I hope this will be of use to any newer Ubuntu or Debian users
There is also a detailed instruction on how to build version 1.3.8 of RRdtool
Reply
deanet Says:
June 13, 2009 at 8:58 am
thanks alex for sharing …
Reply
Alex Bischoff Says:
June 14, 2009 at 2:51 am
It is my pleasure.
You can help us by looking at our home page http://open4energy.com
We are hoping to build a reader community in which we, open source aware professionals,actively innovate saving energy. I have reduced my home footprint by turning off my printerwhen not used, I was amazed at what it used doing nothing!
I will have the forum for discussion on energy management using open source technologyopen on Monday.
I hope you will register, and contribute any ideas you have.
1.
Alex Bischoff Says:2.
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
10 of 12 6/12/2010 8:43 AM
June 14, 2009 at 2:58 am
Thanks for the reply, and there is a way you can help us.
Take a look at our home page: http://open4energy.com
We are hoping to build a reader community in which we, open source aware professionals, activelyinnovate saving energy. I have reduced my home energy footprint in many ways, but the biggest wasturning off my printer when not used. I was amazed at what it used doing nothing!
I will be opening the forum for discussion on energy management using open source technology onMonday.
I hope you will read and consider contributing if you have any ideas.
Reply
deanet Says:
June 25, 2009 at 10:44 pm
Hi Alex, apologize for delay. your comment is going on to spam inbox. okay, i’ll add your link tomy blogroll for partnership, and please add also my link site to your site .. asap i;ll join yourcommunity open4energy.com as reader or contributor
thanks ..
Reply
Greg Sowell Says:
June 16, 2009 at 8:52 pm
Nice article. Also, thanks for the linkage dude. I hope my tuts helped!
Reply
deanet Says:
June 20, 2009 at 2:02 pm
Thanks Greg, you are welcome …
Reply
3.
Alex Says:
June 26, 2009 at 2:46 pm
Thanks for the link, have done same on Cacti Ubuntu tutorial page: http://open4energy.com/tutorials/virtualbox/cacti
To saving energy, one Watt at a time ….
Reply
deanet Says:
June 26, 2009 at 3:45 pm
4.
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
11 of 12 6/12/2010 8:43 AM
yes, i saw it and add to reference cacti how to on debian or ubuntu.
Reply
Leave a Reply
Name (required)
E-mail (required)
Website
Notify me of follow-up comments via email.
Send me site updates
Blog at WordPress.com. Theme: White as Milk.Entries and comments feeds. Valid XHTML and CSS.
How to install Cacti 0.8.7d « والعصر http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...
12 of 12 6/12/2010 8:43 AM