Trouble creating .rrd Files

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

Moderators: Developers, Moderators

RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Trouble creating .rrd Files

Post by RedGiant »

Hi,
I just installed cacti via apt on a Ubuntu workstation. Everything went smooth and the graphs for the default data sources look great. Here is my problem...

I've tried to add an "Interface - Traffic" graphs to the default device (Localhost) but they are just coming up as broken images.

I've looked in the 'rra' folder and there is no .rrd file for those sources.

I've gone through the logs but have been unable to identify the problem. Does anyone have any idea why these are not working or a way I can trouble shoot this problem?
dcheng
Posts: 1
Joined: Mon Aug 01, 2005 2:08 pm

Post by dcheng »

Don't know if this will help (I just installed cacti for the first time this morning), but I had a similar situation on a Debian Sarge fresh install. What I found was that the RRD files were not being created because the script (or whatever) was creating to DS for traffic_in and traffic_out, so I would get an error message about having a duplicate DS. I just copied and pasted the rrdtool create line, took out the duplicate items, and it ran ok after that.

Follow-up noob question: how do I tell what version of cacti is installed?

Thx,
dc
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

I noticed that and did the same thing but now I just get blank graphs.

No data is getting polled by the script.
worknet
Posts: 9
Joined: Mon Aug 01, 2005 4:27 pm

not meaning to hijack... but same things

Post by worknet »

Had an install running for more than a year (I think I just forgot how I did it)... went to upgrade and had another person helping. We hosed it and found ourselves starting over.

This is day 3 of starting over. We have tried a bunch of stuff? This wasn't so difficult to get the first time???

Same symptoms... no .rrd files. I looked at FAQ and ran 'php poller.php' in the cacti folder.. it doesn't give errors, It just spits back that it should be run from the command line.. so I assume everything is fine with permissions.

Any help??
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

This is driving me crazy, its happening on both my ubuntu and debian sarge workstations.. am I missing something very obvious or what???
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please apply all the patches and then review the Data Sources created by the templates. In addition, please post 1 pass from the poller using 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?
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

Ok downloaded and ran the patches. Didn't seem to help

Checked the Data Source and I have a question. What values should go under custom data? There are 3 fields, index type, index value, and output type id. Originally I left all of these blank.

Here is the output from poller.php...

OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.00 r:1.00
OK u:0.00 s:0.01 r:2.01
08/02/2005 12:39:49 AM - SYSTEM STATS: Time: 2.0306 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 5, RRDs Processed 5

Thanks for all the help so far, I hope I get this working soon :)
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

doh. that wasnt with debug on :P

08/02/2005 02:01:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/cacti/cmd.php 0 2]
Waiting on 1/1 pollers.
Waiting on 1/1 pollers.
08/02/2005 02:01:01 AM - POLLER: Poller[0] Parsed MULTI output field '1min:1.47' [map 1min->load_1min]
08/02/2005 02:01:01 AM - POLLER: Poller[0] Parsed MULTI output field '5min:1.38' [map 5min->load_5min]
08/02/2005 02:01:01 AM - POLLER: Poller[0] Parsed MULTI output field '10min:1.34' [map 10min->load_15min]
08/02/2005 02:01:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1122973260:31980
OK u:0.01 s:0.00 r:1.00
08/02/2005 02:01:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1122973260:1440156
OK u:0.01 s:0.00 r:1.01
08/02/2005 02:01:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1122973260:1.47:1.38:1.34
OK u:0.01 s:0.00 r:1.01
08/02/2005 02:01:01 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_users_6.rrd --template users 1122973260:2
OK u:0.01 s:0.00 r:1.01
08/02/2005 02:01:02 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_proc_7.rrd --template proc 1122973260:108
08/02/2005 02:01:02 AM - SYSTEM STATS: Time: 2.0802 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 3, Hosts/Process: 3, Data Sources 5, RRDs Processed 5
OK u:0.01 s:0.00 r:2.01
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

Any thoughts? The traffic graphs are still showing up blank.

Even after starting from scratch and apply the patches.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I think I understand why now your Interface graphs are not working. Please follow the method below:

1) Create a Device
2) When Editing the Device, add the "Interface??" Data Query to the host. Use the "uptime goes backward" reindex method
3) Once it's built, it should show entries and rows.
4) Select "Create Graphs for this Host"
5) Select the interfaces you want graphed and from the drop down, select the Graph Type.
6) Press "Ok" or "Save" (can't remember)

TheWitness

EDIT: Oh, one more thing, delete your buggered up Data Sources and Graphs.
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?
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

How come none of the interfaces show up in the drop down menu when I try and add a graph? The only way I can create a Interface graph is by creating my own Host Template with Interface already in it...
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

Here is the output from the 'Data Query Bebug Info'... maybe it can help..

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/interface.xml'
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try this and post your output:

snmpwalk -c public -v 1 <your_host_ip> .1.3.6.1.2.1.2.2.1

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?
RedGiant
Posts: 12
Joined: Mon Aug 01, 2005 4:28 am

Post by RedGiant »

All I get is "End of MIB"
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

RedGiant,

One of a few things is happening:

1) Your device does not contain the standard if-mibs
2) Your devices has them, but there is an ACL preventing your from accessing them.
3) Your devices snmp agent is buggy.

If the answer is 1) then you have to create your own data query. The best way to find this is to perform the following:

snmpwalk -c <your_community> -v <your_version> <your_host>

Post the results.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests