rrdtool error

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

Moderators: Developers, Moderators

Post Reply
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

rrdtool error

Post by emiel »

hi all,

im quite lost right now..i did for about the 6th time an complete reinstall of cacti.
this time i installed cacti 0.8.7d manual by following this tutorial (http://www.ubuntugeek.com/networkserver ... erver.html) on an ubuntu 9.04 x64 server edition.

Everything (seems) working, i can logon to my cacti, i can create an host, etc, etc

but when i create graphs for my host i still get this error message

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="processes in the run queue" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/var/www/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/var/www/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1244636183,GT,a,a,UN,0,a,IF,IF,TIME,1244636183,GT,b,b,UN,0,b,IF,IF,TIME,1244636183,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00FF:"1 Minute Average"  \
GPRINT:a:LAST:" Current\:%8.2lf\n"  \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n"  \
AREA:c#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n"  \
LINE1:cdefg#000000FF:"" 

RRDTool Says:

ERROR: opening '/var/www/cacti/rra/localhost_load_1min_5.rrd': No such file or directory
the rights at the directory rra/ log/ are as follow:

Code: Select all

drwxr-xr-x  2 www-data www-data 4.0K 2009-02-12 03:55 rra
drwxr-xr-x  2 www-data www-data 4.0K 2009-02-12 03:55 log
another thing that is weird about this is that when i look in devices, i see that status says: Unknown.
but when i click on the server i am getting the right SNMP information and the ping says that it is succesfull.

i tried many things, looked around forums, did many reinstalls, but im still stucked with the error message that RRDtool is giving me.

what can i do to get this working?

thnx in advance!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

If you look at the Cacti installation instructions, you need to do the following:

Code: Select all

chmod -R 777 /var/www/html/cacti/log /var/www/html/cacti/rra
This should fix things.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

already did that :) but that doesnt work...
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What "doesn't work"? Provide a screen shot of Graph Debug.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

as i mentioned in my start post, rrdtool is giving an error and the device has the status of unknown...

i have added 2 screens :) hope you can do something with it..
Attachments
screen 1.png
screen 1.png (3.56 KiB) Viewed 17535 times
screen2.png
screen2.png (23.79 KiB) Viewed 17535 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, this is quite strait forward. Everything is, in fact working. However, for some reason, the file does not exist. The trouble shooting steps require you to verify that the Poller Cache has entries to collect the data and that the poller is running and has the correct permissions to the rra directory. Setting the directory permissions to 777 always helps.

Once the file is created, we may get other error messages. You might want to select on of those.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

so you mean that i just have to wait a while untill the file has automatically been created?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The fact that the device is in an unknown status means to me that the poller cache is not being populated properly. Please "Resave" the device to force the repopulation of the poller cache. You might want to verify that it has entries. In addition, you need to verify that the poller is actually running.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

I saved it again, is there a way to see if the poller is running correctly?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please change crontab and pipe poller output to e.g. /tmp/poller.log instead of /dev/null. Then, watch that file
Reinhard
aldibi
Posts: 11
Joined: Tue May 12, 2009 12:49 am
Location: Mill Valley
Contact:

Cacti and Ubuntu

Post by aldibi »

From what I read, I suspect your problem is in the Ubuntu install of cacti.

The rrd files are located at /var/lib/cacti/rra/

This will have been implemented when you did the apt-get install following the Ubuntu Geek instructions - this is how I did it.

But, when you do the manual download of 0.8.7d, there are missing patches to config.php, global.php and global-settings.php

See http://patch-tracking.debian.net/package/cacti/0.8.7d-1

Have you done these debian/Ubuntu specific patches?

If yes, ignore my posting, but if no, or you would like to walk through a working build, I have a full tutorial on our web site.

http://open4energy.com/tutorials/virtualbox/cacti

Hope this helps, let me know

Alex
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

I did this time an manual install, and installed 0.8.7d.
when i install it from the ubuntu repo's it is installed in /usr/share/cacti/site/rra ;)

i havent installed the patches, going to try it!
aldibi
Posts: 11
Joined: Tue May 12, 2009 12:49 am
Location: Mill Valley
Contact:

Patches

Post by aldibi »

I believe the patches are only applicable if you have done an install using sudo apt-get install cacti-cactid.

If this is what you do, you will get version 0.8.7b installed

rrds will be in /var/lib/cacti/rra ( there is a directory /usr/share/cacti/site/rra - but it is not where the files will be placed)

logs will be in /var/log/cacti/

crontab is at /etc/cron.d/cacti
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

ok, i did an manual install, where will the rra files be placed?

my cacti install dir is /var/www/cacti/
emiel
Posts: 24
Joined: Wed May 20, 2009 6:26 am

Post by emiel »

well...i started over again..and followed your tutorial from begin till end!
when i now create a device and have the graph debug mode on, it says

Code: Select all

  	 RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="AP-SVR01 - Used Space - C: Label:  Seri" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/ap-svr01_hdd_used_8.rrd":hdd_total:AVERAGE \
DEF:b="/var/lib/cacti/rra/ap-svr01_hdd_used_8.rrd":hdd_used:AVERAGE \
AREA:a#002A97FF:"Total"  \
GPRINT:a:LAST:"Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:b#F51D30FF:"Used"  \
GPRINT:b:LAST:" Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
even the device has the status of online

thnx all for working this out with me! :)
i guess cacti is now working fine..

(ps...aldibi..your tut is great :))
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest