No Graphs or RRDs On Clean Install

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

No Graphs or RRDs On Clean Install

#1 Post by pshankland » Thu Jul 19, 2012 7:40 am

Hi all,

Just installed Cacti 0.8.8a on a clean CentOS 6.2 64Bit server using minimal media and not getting any graphs or RRDs being generated. My install procedure, after installing CentOS was:

Code: Select all

yum install -y httpd
chkconfig httpd on
service httpd start

yum install -y php php-mysql php-snmp php-xml

yum install -y mysql mysql-server
chkconfig mysqld on
service mysqld start

yum install -y gcc cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel make perl-ExtUtils-MakeMaker

yum install -y rrdtool perl-rrdtool

mysqladmin --user=root password [email protected]
mysqladmin --user=root --password reload

cd ~/downloads
wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
tar -zxvf cacti-0.8.8a.tar.gz
cd cacti-0.8.8a

mysqladmin --user=root create cacti --password
mysql -u root -p cacti < cacti.sql

mysql -u root -p mysql
GRANT ALL ON cacti.* TO [email protected] IDENTIFIED BY '[email protected]';
flush privileges;
exit

vim include/config.php
	***Edit the database_password field
	
cd ~/downloads
mv cacti-0.8.8a /var/www/html/cacti
cd /var/www/html
chown -R apache:apache cacti
vim /etc/crontab
	*/5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1

vim /etc/php.ini
	date.timezone = "Europe/London"
reboot
Can anyone see anything glaring that I have missed? I know the minimal CentOS install really does what it says and installs as little as possible so maybe I have missed something?

Thanks.
Pete.

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: No Graphs or RRDs On Clean Install

#2 Post by gandalf » Sun Jul 22, 2012 3:32 am

Is crond running? See cron log to verify.
Is httpd running? See access_log to verify.
Is mysqld running?
Then, please see 2nd link of my sig for additional debugging
R.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Re: No Graphs or RRDs On Clean Install

#3 Post by pshankland » Mon Jul 23, 2012 10:04 am

crond log:

Code: Select all

Jul 23 15:55:01 rpl-jensen CROND[1843]: (cactiuser) CMD (/usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1)
Jul 23 16:00:01 rpl-jensen CROND[1863]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 23 16:00:01 rpl-jensen CROND[1864]: (cactiuser) CMD (/usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1)
Jul 23 16:01:01 rpl-jensen CROND[1876]: (root) CMD (run-parts /etc/cron.hourly)
crond status:

Code: Select all

crond (pid  1828) is running...
httpd status:

Code: Select all

httpd (pid  1681) is running...
MySQL status:

Code: Select all

mysqld (pid  1602) is running...
Massively confused as have rebuilt the server with minimal and basic server (CentOS 6.3) a few times now and still getting no graphs or RRD's created:

Code: Select all

[[email protected] cron.d]# find / -name *rrd
/usr/local/rrdtool/share/rrdtool/examples/random.rrd
I have tested that RRDTools is installed correctly by running ./stripes.pl and then placing the stripes.png file in the root of my web server - I get output.

Any suggestions?
Thanks.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Re: No Graphs or RRDs On Clean Install

#4 Post by pshankland » Mon Jul 23, 2012 10:20 am

For information, here is my entire server build - maybe I have missed something obvious off:

Code: Select all

CentOS 6.3 64Bit Minimum (set hostname & IP)
============================================
yum install -y vim wget
yum groupinstall -y base
yum groupinstall -y fonts
vim /etc/sysconfig/iptables
	-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
	-A INPUT -m state --state NEW -m udp -p udp --dport 161 -j ACCEPT
service iptables restart
vim /etc/selinux/config
	SELINUX=disabled
useradd ts-admin
passwd ts-admin
vim /etc/ssh/sshd_config
	PermitRootLogin no
	AllowUsers ts-admin
yum update -y
reboot

=====SendMail=====
yum install -y sendmail-cf
vim /etc/mail/sendmail.mc
**uncomment and edit the following line
define(`SMART_HOST', `smtp.domain.com')dnl
**add the following underneath
FEATURE(`genericstable',`hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/generics-domains')dnl
**save and exit
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
vim /etc/mail/generics-domains
**add the following
rpl-jensen.domain.com
domain.com
**save and exit
vim /etc/mail/genericstable
**add the following
ts-admin        [email protected]
root			[email protected]
**save and exit
chkconfig sendmail on
service sendmail start
=====/SendMail=====

=====NTP=====
yum install -y ntp
chkconfig ntpd on
vim /etc/ntp.conf
	server ntp1.domain.com
	server ntp2.domain.com
service ntpd start
=====/NTP=====

=====SNMP=====
yum install -y net-snmp net-snmp-utils
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.original
vim /etc/snmp/snmpd.conf
	rocommunity public
	syslocation "Server Room"
	syscontact "IT Technical Section"
chkconfig snmpd on
service snmpd start
=====/SNMP=====

=====Apache=====
yum install -y httpd
chkconfig httpd on
service httpd start
=====/Apache=====

=====RRDTools=====
yum install -y gcc cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel make perl-ExtUtils-MakeMaker
mkdir ~/downloads
cd ~/downloads
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
tar -zxvf rrdtool-1.4.7.tar.gz
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/
cd rrdtool-1.4.7
./configure --prefix=/usr/local/rrdtool
make
make install
reboot
=====/RRDTools=====

=====MySQL=====
yum install -y php php-mysql php-snmp php-xml mysql mysql-server
chkconfig mysqld on
service mysqld start
mysqladmin --user=root password [email protected]
mysqladmin --user=root --password reload
=====/MySQL=====

=====Cacti=====
cd ~/downloads
wget http://www.cacti.net/downloads/cacti-0.8.8a.tar.gz
tar -zxvf cacti-0.8.8a.tar.gz
cd cacti-0.8.8a
mysqladmin --user=root create cacti --password
mysql -u root -p cacti < cacti.sql
mysql -u root -p mysql
GRANT ALL ON cacti.* TO [email protected] IDENTIFIED BY '[email protected]';
flush privileges;
exit
vim include/config.php
	***Edit the database_password field
cd ~/downloads
mv cacti-0.8.8a /var/www/html/cacti
cd /var/www/html
useradd cactiuser
passwd cactiuser
chown -R apache:apache cacti
chown -R cactiuser /var/www/html/cacti/rra/
chown -R cactiuser /var/www/html/cacti/log/
vim /etc/crontab
	*/5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1
vim /etc/php.ini
	date.timezone = "Europe/London"
reboot
http://rpl-jensen.domain.com/cacti
	RRDTool Binary Path = /usr/local/rrdtool/bin/rrdtool
=====/Cacti=====
Thanks.
Pete.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Re: No Graphs or RRDs On Clean Install

#5 Post by pshankland » Mon Jul 23, 2012 10:47 am

Just discovered it's a bug:

http://bugs.cacti.net/view.php?id=2229

:(

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: No Graphs or RRDs On Clean Install

#6 Post by gandalf » Mon Jul 23, 2012 4:03 pm

Well, then please perform a cli/rebuild_poller_cache.php and everything will be fine
R.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Re: No Graphs or RRDs On Clean Install

#7 Post by pshankland » Tue Jul 24, 2012 9:37 am

gandalf wrote:Well, then please perform a cli/rebuild_poller_cache.php and everything will be fine
R.
How do I run this from command line?
Thanks.

User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Re: No Graphs or RRDs On Clean Install

#8 Post by pshankland » Tue Jul 24, 2012 9:39 am

Sorry, ignore this request:

Code: Select all

php -q rebuild_poller_cache.php

Post Reply