More problems with Graphs no displaying / broken images

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

Moderators: Developers, Moderators

Post Reply
Debian-guy

More problems with Graphs no displaying / broken images

Post by Debian-guy »

Hi,
I got cacti 8.1 installed. I've added a device to be SNMP polled and have data collected and graphed. When I go to the graphs menu (to the right of console), I click the device and it only shows broken images for the 4 RRA's.

I know this is not a permissions problem because if I type the URL of the images (http://mybox/cacti/images/raxnet_logo.gif) to load any specific image they come up fine and the permissions & ownership for that images directory is the same as all sub-dirs from cacti/*

When I execute cmd.php I get:
php -q cmd.php
"There are no items in your poller cache. Make sure you have at least one data source created. If you do, go to 'Utilities', and select 'Clear Poller Cache'. time: 0"
I have cleared the poller cache, I have verified that there are items in the Data Source section. I repeat executing cmd.php and I get the same error. Where do I go from here??

From the Data Sources section, in the debug part I get the following output which to me doesn't make clear what the problem might be:
/usr/bin/rrdtool create \
/var/www/cacti/rra/xyz_switch_stack_traffic_in_12.rrd \
--step 300 \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

When I manually look for "/var/www/cacti/rra/xyz_switch_stack_traffic_in_12.rrd" this file does not exist. I suspect this may be part of the problem.

Listing the items in this directory shows some old .rrd files for CPU monitoring of the switch that I initially was thinking of doing. How come cacti didn't delete these old files when I removed it from the Data Sources, and how come my new ones aren't showing up??

Also, (and this may have nothing to do with the problem) but when I am in "Data Sources" under "Custom Data" section, there are 3 blank sections for "Index Type and Index Value and Output Type ID". I am assuming it isn't necessary for me to type in OID info in there as getting interface traffic from a switch is pretty trivial stuff even MRTG does by default. right?

Any help would be much appreciated!
Debian-guy
Debian-guy

Post by Debian-guy »

I should just add what is actually listed in my cacti/rra directory:
drwxr-xrwx 2 www-data users 4096 Jul 14 17:09 .
drwxr-xr-x 11 www-data users 4096 Jun 9 12:15 ..
-rw-r--r-- 1 www-data users 0 Jun 9 12:15 .placeholder
-rw-r--r-- 1 root root 47836 Jul 14 17:23 xyz_switch_stack_5min_cpu_8.rrd
-rw-r--r-- 1 root root 141484 Jul 14 17:23 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_mem_buffers_1.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_mem_cache_2.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47836 Jul 14 17:23 localhost_users_6.rrd
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

The fact that you do not have any items in your poller cache seems to be the root of your problem. Without the poller cache, cmd.php will not poll any items or create any .rrd files.

The three blank fields that you speak of for traffic graphs would definitely cause those data sources not to appear in the poller cache. I suggest that you try re-creating them through the "Polling Hosts" screen.

Are all your data sources based on the "Get SNMP Data (Indexed)" data input method?

-Ian
Guest

ggg

Post by Guest »

test
Mach
Posts: 17
Joined: Mon Jul 21, 2003 7:12 pm
Location: Portland Oregon

grrrr

Post by Mach »

I keep typing long ass replies and I keep getting invalid session. WTF?

For the third time here we go:

I'm having the same problem.

When I try and create a new datasource and save it I get this error:
Error: Save Failed: Field Input Error (Check Red Fields)

Those three fields , index type, index valve, are highlighted.

I see the datasource has :<path_rra>/cisco_4000_traffic_in_43.rrd

But when I run cmd.php, those files are not created in the /rra DIR.

I was able to get the cisco CPU data source to work, but thats the only one.

It seems every datainput method that has: (indexed) has problems.

Get Script Data (Indexed)

Any data input method that says indexed next to it under the data sources menu DOES NOT work.

Any ideas?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

First of all, you probably do not want to be creating data sources from the "Indexed" data input methods manually. These templates are meant for use with the "Polling Hosts" section. When you create graphs through polling hosts, Cacti will automatically fill in the appropriate fields.

With that said, it should still be possible to create these data sources manually. Here are the steps I am following on my 0.8.2a installation:

1) Click "Data Sources" on the Cacti menu.
2) Click "Add".
3) Choose "Interface - Traffic" for "Selected Data Template". This template is based on the the "Get SNMP Data (Indexed)" data input method.
4) Optionally choose a host and click "Create".
5) You should now see all of the fields for your new data source. No fields should be highlighted in red at this point. By default all of the required fields are filled in except "Index Type", "Index Value", and "Output Type ID". If you do not fill in these fields and click "Save", the fields will highlight in red and you will get an error.

Let me know what you find.

-Ian
Mach
Posts: 17
Joined: Mon Jul 21, 2003 7:12 pm
Location: Portland Oregon

Post by Mach »

thanks for the reply.

I did what you stated. It does create and data source, but I do not have the option under graph management to graph that source. It says its creating at RRD file, but it really isn't. Its not in the pollar cache or in the rra DIR.

Where do I go from here?

I have also tried this:

1: under polling hosts select the monitor I want to monitor.
2. Data Query [SNMP - Interface Statistics] - select the ports I want to monitor traffic on.
3. Click save, then click create.
4. The ports I want to monitor show up under data sources and are pointing to an rrd file.
5. Go under the graph managment window and add the ports to a graph.
6. Run cmd.php - its not running the rrd files. and the rrd files are not in the poller cache.

any ideas?
User avatar
Era
Posts: 8
Joined: Thu Aug 14, 2003 10:46 am

Post by Era »

Is your ./log/rrd.log file writable?
Mach
Posts: 17
Joined: Mon Jul 21, 2003 7:12 pm
Location: Portland Oregon

Post by Mach »

yes its writeable and the permissions are set correctly.

I fixed this problem by downgrading to 0.8 then upgrading to 0.8.2. Not sure why it worked but it did.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests