Data collected but no graphs

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

Moderators: Developers, Moderators

Post Reply
HAZE
Posts: 3
Joined: Mon Jan 02, 2006 2:39 pm

Data collected but no graphs

Post by HAZE »

Hi i have installed Cacti and reinstalled it about 10 times now. I am now on version 0.8.6h

Debian Sarge (for alpha servers )
PHP 4.3.10-16 (cli) (built: Aug 26 2005 22:46:28)
MySQL version 4.1.11
RRDtool 1.0.49

The problem seems to be in the drawing the graphs since the rrd files have the proper info in them and the text in the graphs are correct.

Here is some of my log

Code: Select all

 01/02/2006 02:50:12 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/02/2006 02:50:12 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/02/2006 02:50:12 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/02/2006 02:50:12 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='guest'"
01/02/2006 02:50:12 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/02/2006 02:50:11 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
01/02/2006 02:50:11 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/02/2006 02:50:10 PM - CACTID: Poller[0] DEBUG: PHP Script Server Child FORK Success
01/02/2006 02:50:10 PM - CACTID: Poller[0] DEBUG: PHP Script Server About to FORK Child Process
01/02/2006 02:50:10 PM - CACTID: Poller[0] DEBUG: PHP Script Server Routine Started
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select realm_id from user_auth_realm where user_id=1"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select username from user_auth where id=1"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select user_auth_realm.realm_id from user_auth_realm where user_auth_realm.user_id='1' and user_auth_realm.realm_id='15'"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select id from user_auth where username='guest'"
01/02/2006 02:50:10 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select cacti from version"
01/02/2006 02:50:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_output.output, poller_output.time, poller_output.local_data_id, poller_item.rrd_path, poller_item.rrd_name, poller_item.rrd_num from (poller_output,poller_item) where (poller_output.local_data_id=poller_item.local_data_id and poller_output.rrd_name=poller_item.rrd_name)"
01/02/2006 02:50:09 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select poller_id,end_time from poller_time where poller_id = 0"
01/02/2006 02:50:09 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('date',NOW())"
01/02/2006 02:50:08 PM - CACTID: Poller[0] MYSQL: Connecting to MySQL database 'cacti' on 'localhost'...
01/02/2006 02:50:08 PM - CACTID: Poller[0] CACTID: Version 0.8.6d starting
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The threads variable is 25
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The log_pstats variable is 1
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The log_pwarn variable is 1
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The log_perror variable is 1
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The ping_timeout variable is 400
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The ping_retries variable is 1
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The ping_method variable is 2
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The ping_failure_count variable is 2
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The ping_recovery_count variable is 3
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The availability_method variable is 2
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The path_php variable is /usr/bin/php
01/02/2006 02:50:08 PM - CACTID: Poller[0] DEBUG: The log_destination variable is 1
01/02/2006 02:50:08 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/sbin/cactid, ARGS: 0 6]
01/02/2006 02:50:08 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "truncate table poller_time"
01/02/2006 02:50:08 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('path_webroot','/usr/share/cacti/site')"
01/02/2006 02:50:08 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select id from host where disabled = '' order by id"
01/02/2006 02:50:08 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_item"
01/02/2006 02:45:12 PM - CMDPHP: Poller[0] DEBUG: SQL Cell: "select count(*) from poller_command"
01/02/2006 02:45:12 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "truncate table poller_output"
01/02/2006 02:45:12 PM - CMDPHP: Poller[0] DEBUG: SQL Exec: "replace into settings (name,value) values ('stats_poller','Time:4.5134 Method:cactid Processes:1 Threads:25 Hosts:7 HostsPerProcess:7 DataSources:30 RRDsProcessed:13')"
01/02/2006 02:45:12 PM - SYSTEM STATS: Time:4.5134 Method:cactid Processes:1 Threads:25 Hosts:7 HostsPerProcess:7 DataSources:30 RRDsProcessed:13
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/glen_traffic_in_28.rrd --template traffic_in:traffic_out 1136231108:1185620881:1426556995
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/x28_traffic_in_33.rrd --template traffic_in:traffic_out 1136231108:2200635479:301241399
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/x28_traffic_in_27.rrd --template traffic_in:traffic_out 1136231108:2200635479:301241399
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/intelli_traffic_in_26.rrd --template traffic_in:traffic_out 1136231108:806548061:2840553189
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/beast_2k3_users_23.rrd --template users 1136231108:2
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/beast_2k3_traffic_in_21.rrd --template traffic_in:traffic_out 1136231108:2973434679:2403932368
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/beast_2k3_proc_22.rrd --template proc 1136231108:75
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_traffic_in_9.rrd --template traffic_in:traffic_out 1136231108:2744370795:2780856238
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_traffic_in_8.rrd --template traffic_in:traffic_out 1136231108:2994266309:3191548622
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_traffic_in_10.rrd --template traffic_in:traffic_out 1136231108:294119001:170795006
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_errors_in_19.rrd --template discards_in:discards_out:errors_in:errors_out 1136231108:0:0:0:0
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_errors_in_18.rrd --template discards_in:discards_out:errors_in:errors_out 1136231108:0:0:0:0
01/02/2006 02:45:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/rra/firewall_errors_in_17.rrd --template discards_in:discards_out:errors_in:errors_out 1136231108:0:0:0:0
here is a pic of what the graphs look like

thank you in advance for your help
Attachments
graph_image.php.gif
graph_image.php.gif (7 KiB) Viewed 1520 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please goto the GRAPHs page and select this graph. Click on it to find all 4 timespans displayed. Now you'll see a little wrench next to each of those pics. Select one of them to find the whole rrdtool graph statement displayed. Please post this to help you debugging.
Reinhard
HAZE
Posts: 3
Joined: Mon Jan 02, 2006 2:39 pm

Post by HAZE »

Here you go

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=GIF \
--start=-86400 \
--end=-300 \
--title="INTELLI - Traffic - ***.***.***.*** (eth0)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/usr/share/cacti/site/rra/intelli_traffic_in_26.rrd":traffic_in:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/intelli_traffic_in_26.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,300,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:a:LAST:" Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total In:  174.14 MB\n"  \
LINE1:b#002A97:"Outbound"  \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total Out: 436.5 MB" 
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Does not look very strange. Did you try changing the Image Format to png? Myself, I have not tried GIF.
Debugging those graphs would go this way:
su to cactiuser
copy the rrdtool graph statement to cli
run it from there
watch out for errors

Replace

Code: Select all

/usr/bin/rrdtool graph -
by

Code: Select all

/usr/bin/rrdtool graph  /tmp/weird.png
to omit those funny characters filling your screen...
Reinhard
HAZE
Posts: 3
Joined: Mon Jan 02, 2006 2:39 pm

Post by HAZE »

Did as u said and still no graphs in the png and no errors when i run the rrd statment :cry:
I have no idea what to try next
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post a screenshot of the Graph Template used for this graph
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests