0% found this document useful (0 votes)
606 views

How To Install Cacti 0.8.7d..

This document provides instructions for installing Cacti 0.8.7d on an OpenSUSE 11 system. It describes preparing the web server (Apache), database server (MySQL), PHP SNMP module, and RRDtool. Steps include using Yast2 to install required packages, checking installations with rpm commands, and compiling RRDtool from source if the binary is not recognized. The full installation process is explained over multiple steps.

Uploaded by

khvp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
606 views

How To Install Cacti 0.8.7d..

This document provides instructions for installing Cacti 0.8.7d on an OpenSUSE 11 system. It describes preparing the web server (Apache), database server (MySQL), PHP SNMP module, and RRDtool. Steps include using Yast2 to install required packages, checking installations with rpm commands, and compiling RRDtool from source if the binary is not recognized. The full installation process is explained over multiple steps.

Uploaded by

khvp
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

ِ‫وَاﻟْﻌَﺼْﺮ‬
"Ngelmu iku kelakone kanthi laku…"

Pages
About
Angkringan
Downloads
Most Wanted Commands
My Desktop

tag

apache autoposting blank0n Cacti compiz compiz fusion Debian distro linux docs
edufiesta emulator error etc fedora flash freebsd game GNU/Linux Grub
install installasi iseng j2me Knoppix
java lenny Live CD Live USB Mail
monitoring tools mysql old post Opensuse php ps one remastering review server shock

Slackware slax software soundcard tips ubuntu Underground Unix Variant usb Web
server wireless

choose docs archive

Blogroll and Links

Debian Manual
Installation Guide

All in the worlds


Celeste Lyn Paul
Michael Warner
T

indonesian linux hardworker


Agus Ashad
Aji Kusworo Mukti

1 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

Darmanex
David
Digit Oktavianto
Dedhi Purnama
Dedy selalu Milisdad
Dobelden
Enggar
Gatra
Izharul Haq
jok3r
Karuwak
Mahyuddin Susanto
ordinareez
Rizki Nanda
Redy Basuki
ryan_oke
Terminallia Cattapa
Yuda Nugrahadi

Indonesian Linux Planet


Planet Debian Id
Planet Linux Id
Planet Slackware Id
Planet Ubuntu Id

indonesian linux community


debian-id.org
fedora-id
foss-id
gnome-id
linux-id
opensuse-id
slackware-id
slackware-makassar
ubuntu-id

iix mirror connection


kambing.ui.ac.id
kebo.vlsm.org
mirror.unej.ac.id
repo.ugm.ac.id

indonesian reverser
antcode
keboaja
NeMeSiS_ByTe
orakanggo

race campus

2 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

Aat Shadewa
Ari Eko Prasetyo
Ari Eko Prasetyo dot net
Chatur Priyono
Hery kohimaru
Jovie
Rachmat Febrianto - blogger
Rachmat Febrianto
Royan quantro
Rhesa Mahendra
Rian 'Frankenstein' Sakti
Rudhy Hadri Suwandana
Sakti Banget
Tommyirawan
Toto Yulianto
Suwanto Raharjo
xx_user
Yossi

OSUG – JUG
Bernaz
Wilbert

Blogger
ardianzzz
Marion

Tutorial Site
open4energy.com
tech-db.com
wowtutorial.org

Top Posts
Short Attack
Penyelamatan Data yang terformat dengan Recovery Tools Easy Profesional v.6
Installing Debian Lenny from a USB memory stick (USB HDD)
How to install Cacti 0.8.7d
How to install Plugin Architecture Cacti and Mysql template for cacti
How to install poller cactid or spine on linux
How to install Postfix, UW IMAP and RoundCube webmail
Install apache, php5, and mysql on FreeBSD 7.2 using ports
LIVE USB, INSTALLATION, AND REMASTERING FINNIX
More faster acpi shutdown on Debian - Change your ACPI script

Last Post
Server was moved, goodbye wordpress
Tips sederhana setelah installasi solaris
Limited Upload max on your own directory apache

3 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

Cara membuat system FreeBSD 7.2 / 8.0 release ke stable pasca installasi
How to protect your page using mod authz host
How to Terminate, Suspend, and Continue a process using kill
Update package failed on ports FreeBSD
How to mount iso on FreeBSD
Implementation of social network for monitoring server via sms
Browser Google Chrome di Slackware ?? *sapa takuttt… halah*

blog stats
112,956 hits

seng nyangkut
3,072 spam comments
blocked by
Akismet

« Installasi Postfix, Saslauthd, VM-Pop3d, dan SquirrelMail di OpenSuse


How to install poller cactid or spine on linux »

How to install Cacti 0.8.7d


May 26, 2009

About Cacti

4 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

Cacti is a complete network graphing solution designed to harness the power of RRDTool’s data storage and
graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition
methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use
interface 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 database
server 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 open
suse 11 we can check apache with command:

1 # rpm -qa | grep apache2

and mysql

1 # rpm -qa | grep mysql

2. Prepare php-snmp module

just type like this to install php5-snmp module:

1 # yast2 -i php5-snmp

that automatically install:

net-snmp-5.4.1-77.4
snmp-mibs-5.4.1-77.4
libsnmp15-5.4.1-77.4
php5-snmp-5.2.9-0.1
net-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 must
compile rrdtool from source.

a. Use binary from repositori.

we can type:

1 # yast2 -i rrdtool

that automatically install:

rrdtool-1.2.27-22.1
rrdtool-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 # wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.8.tar.gz
2 # tar -xzvf rrdtool-1.3.8.tar.gz;cd rrdtool-1.3.8
3 # ./configure && make && make install

5 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

**NOTE**
Installing dependencies:

glib-2.15.4.tar.gz
cairo-1.6.4.tar.gz
pango-1.21.1.tar.bz2

dependencies package download recommanded from here

Get package, extract package, change to work directory and install

1 # aclocal
2 # autoheader
3 # autoconf
4 # automake
5 # ./configure
6 # make
7 # make 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 directory
and extract.

1 # tar -xzvf cacti-0.8.7d.tar.gz

4.2. rename directory cacti-0.8.7d to cacti be simply use and change directory to it

1 # mv cacti-0.8.7d cacti; cd cacti

4.3. add group cacti

1 # groupadd cacti

and user for cacti

1 # useradd -g cacti cactiuser

4.3. change password for cacti user

1 # passwd cactiuser

Now, Installing cacti database and make sure cacti user to have privileges

4.4. create database cacti

1 # mysqladmin -u root -p create cacti

4.5. dump cacti database

1 # mysql -u root -p cacti < cacti.sql

4.6. set privileges cacti database to cacti user

1 # mysql -u root -p
2 mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactipassword’;
3 mysql> flush privileges;

4.7. Edit Configuration config.php

6 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

1 # vi include/config.php
2 /* 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";

4.8. set permission rra and log directory to cactiuser

1 # chown -R cactiuser rra/ log/

4.9. make cron schedule with crontab

1 # crontab -e

type ‘a’ and fill like this

1 */1 * * * * /usr/bin/php /srv/www/htdocs/cacti/poller.php > /dev/null 2>&1

type ‘esc’ and ‘:w’ to write, and type ‘q’ to quit .

4.10. access it from site example.com/cacti


results:

click next

choose new install

7 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

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 to
create and manage cacti ?, you can see video on this page

Troubleshooting:

1. Socket Error
get the error:
Error
The following PHP extensions are missing:
* sockets

make sure Configure Command on phpinfo have

1 --enable-sockets

if none, install php5-sockets

1 # yast2 -i 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

8 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

konsole with type:

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"

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:

1 snmpwalk -c public -v 1 localhost system

it will results:
SNMPv2-MIB::sysDescr.0 = STRING: Linux ddd.ssss.net 2.6.18-92.1.13.el5.028stab059.6 #1 SMP
Fri Nov 14 20:22:51 MSK 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (53004148) 6 days, 3:14:01.48
SNMPv2-MIB::sysContact.0 = STRING: Sysadmin (root@localhost)
etc..

4. make sure enough memory

type like this on konsole:

1 /usr/bin/php cacti/poller.php

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:

9 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

1. cacti.net
2. tech-db.com
3. groundworkopensource.com
4. forums.cacti.net
5. oss.oetiker.ch
6. 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”

1. 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 energy
consumption 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 printer
when not used, I was amazed at what it used doing nothing!

I will have the forum for discussion on energy management using open source technology
open on Monday.

I hope you will register, and contribute any ideas you have.

2. Alex Bischoff Says:

10 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

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, actively
innovate saving energy. I have reduced my home energy footprint in many ways, but the biggest was
turning 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 on
Monday.

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 to
my blogroll for partnership, and please add also my link site to your site .. asap i;ll join your
community open4energy.com as reader or contributor

thanks ..

Reply

3. 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

4. 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

11 of 12 6/12/2010 8:43 AM
How to install Cacti 0.8.7d « ِ‫وَاﻟْﻌَﺼْﺮ‬ http://numpanglewat.wordpress.com/2009/05/26/how-to-install-cacti-0...

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.

12 of 12 6/12/2010 8:43 AM

You might also like