Another: Broken graphs on a new install

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

Moderators: Developers, Moderators

Post Reply
hodgeswalt
Posts: 5
Joined: Mon Oct 17, 2005 2:11 pm

Another: Broken graphs on a new install

Post by hodgeswalt »

I have one router defined within Cacti. When displaying the graph Detail tree, I see 5 broken graphs.

Sorry for the amount of detail, but hopefully the developer GODS will be able to spot my mistakes.

System:
Fedora Core 4 - no patches or updates applied
SELINUX disabled
*******************************************
Files installed:
cacti-0.8.6g.tar.gz
httpd-2.0.54.tar.gz
mysql-4.1.14.tar.gz
net-snmp-5.1.3.1.tar.gz
php-4.3.8.tar.gz
rrdtool-1.2.11.tar.gz
published patches are applied
*******************************************
[root@isg000011wkssh09 cacti-install]# less /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
***********************************************************
[root@isg000011wkssh09 log]# tail -f cacti.log
10/26/2005 01:10:08 PM - SYSTEM STATS: Time:4.4681 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:15:06 PM - SYSTEM STATS: Time:4.3599 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:20:06 PM - SYSTEM STATS: Time:4.2674 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:25:07 PM - SYSTEM STATS: Time:4.2524 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:25:56 PM - SYSTEM STATS: Time:4.2785 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:30:06 PM - SYSTEM STATS: Time:4.2364 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:31:01 PM - SYSTEM STATS: Time:4.2482 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:35:05 PM - SYSTEM STATS: Time:3.2868 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:40:07 PM - SYSTEM STATS: Time:4.3865 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/26/2005 01:45:09 PM - SYSTEM STATS: Time:7.1415 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
*************************************************************
rra files are being updated:
[root@isg000011wkssh09 rra]# ls -al
total 520
drwxr-xr-x 2 cactiuser users 4096 Oct 26 13:40 .
drwxr-xr-x 11 1000 users 4096 Oct 25 15:36 ..
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:40 aut005342rtr001_traffic_in_10.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:40 aut005342rtr001_traffic_in_11.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:40 aut005342rtr001_traffic_in_12.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:40 aut005342rtr001_traffic_in_8.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:40 aut005342rtr001_traffic_in_9.rrd
-rw-r--r-- 1 cactiuser users 0 Sep 8 18:56 .placeholder
[root@isg000011wkssh09 rra]# ls -al
total 520
drwxr-xr-x 2 cactiuser users 4096 Oct 26 13:40 .
drwxr-xr-x 11 1000 users 4096 Oct 25 15:36 ..
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:50 aut005342rtr001_traffic_in_10.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:50 aut005342rtr001_traffic_in_11.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:50 aut005342rtr001_traffic_in_12.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:50 aut005342rtr001_traffic_in_8.rrd
-rw-r--r-- 1 cactiuser cacti 94664 Oct 26 13:50 aut005342rtr001_traffic_in_9.rrd
-rw-r--r-- 1 cactiuser users 0 Sep 8 18:56 .placeholder
[root@isg000011wkssh09 rra]#
**********************************************************
My devices consist of a Cisco 2610XM router.
I can ping the router from the Cacti server, I can telnet to the Cisco Router from the Cacti server. I have checked the SNMP community string, and it is correct - looked at the router config to verify.
**********************************************************
Properties from one of the broken graphs:
/usr/local/rrdtool-1.2.11/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="aut005342rtr001 - Traffic - Se0/2.1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes per second" \
DEF:a="/www/htdocs/cacti/rra/aut005342rtr001_traffic_in_11.rrd":traffic_in:AVERAGE \
DEF:b="/www/htdocs/cacti/rra/aut005342rtr001_traffic_in_11.rrd":traffic_out:AVERAGE \
AREA:a#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: 8.46 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: 1.58 MB"
***********************************************************


regards,

Walt
beeudoublez
Posts: 8
Joined: Wed Oct 26, 2005 6:24 pm

Me too

Post by beeudoublez »

I have this exact same problem as well, running RHEL3.

All files are being generated, and I am polling a Cisco 3750 switch.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Just trying to help...
I just ran this command on my on box (rrdtool 1.2.11 patched). It fails on the COMMENT lines. To try this on your own, please cut the command from Graph Debug to cli and run it. It noticed errors on the COMMENT statement here. When deleting both, it worked for me. Not knowing why, will need more investigation
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

FOUND IT (heureka, as old romans would say)!
COMMENT contains unescaped ":". So
- remove ":" from comment
- or get updated/corrected/patched code (works on cactid 0.8.6g patched)
This should help.
Reinhard
hodgeswalt
Posts: 5
Joined: Mon Oct 17, 2005 2:11 pm

Post by hodgeswalt »

Sir:
Many thanks for your reply. I have turned on debug, the output does not cantain any obvious errors:

10/27/2005 15:10 POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /www/php/bin/php, ARGS: -q /www/htdocs/cacti/cmd.php 0 5]
10/27/2005 15:10 PHPSVR: Poller[0] DEBUG: SERVER: cmd
10/27/2005 15:10 PHPSVR: Poller[0] DEBUG: GETCWD: /
10/27/2005 15:10 PHPSVR: Poller[0] DEBUG: DIRNAM: /www/htdocs/cacti
10/27/2005 15:10 PHPSVR: Poller[0] DEBUG: FILENM: /www/htdocs/cacti/script_server.php
10/27/2005 15:10 PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
10/27/2005 15:10 CMDPHP: Poller[0] PHP Script Server Started Properly
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] SNMP: Host responded to SNMP
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] RECACHE: Processing 1 items in the auto reindex cache for 'aut005342rtr001.dm1.stipn.com'.
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[11] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, output: 4218341559
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[8] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 1952823545
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[8] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 2686950639
10/27/2005 15:10 POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /www/htdocs/cacti/rra/aut005342rtr001_traffic_in_8.rrd --template traffic_in:traffic_out 1130443802:1952823545:2686950639
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[9] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 3666173879
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[9] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 2247711219
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[10] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, output: 24716500
10/27/2005 15:10 POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /www/htdocs/cacti/rra/aut005342rtr001_traffic_in_9.rrd --template traffic_out:traffic_in 1130443802:2247711219:3666173879
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[11] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, output: 2669773750
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[12] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, output: 2022607311
10/27/2005 15:10 POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /www/htdocs/cacti/rra/aut005342rtr001_traffic_in_11.rrd --template traffic_in:traffic_out 1130443802:4218341559:2669773750
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[12] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, output: 12755297
10/27/2005 15:10 CMDPHP: Poller[0] Host[4] DS[10] SNMP: v1: aut005342rtr001.dm1.stipn.com, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, output: 33529979
10/27/2005 15:10 PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
10/27/2005 15:10 CMDPHP: Poller[0] Time: 4.3593 s, Theads: N/A, Hosts: 2
10/27/2005 15:10 POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /www/htdocs/cacti/rra/aut005342rtr001_traffic_in_10.rrd --template traffic_out:traffic_in 1130443802:33529979:24716500
10/27/2005 15:10 POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.11/bin/rrdtool update /www/htdocs/cacti/rra/aut005342rtr001_traffic_in_12.rrd --template traffic_in:traffic_out 1130443802:2022607311:12755297
10/27/2005 15:10 SYSTEM STATS: Time:5.1415 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:10 RRDsProcessed:5
10/27/2005 15:10 POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /www/php/bin/php, ARGS: -q /www/htdocs/cacti/poller_commands.php]
10/27/2005 15:10 POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /www/php/bin/php, ARGS: -q /www/htdocs/cacti/poller_export.php]

What file are you referring "- remove ":" from comment " ??

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

Re: Another: Broken graphs on a new install

Post by gandalf »

hodgeswalt wrote:COMMENT:"Total In: 8.46 MB\n" \
...
COMMENT:"Total Out: 1.58 MB"
These are the offending statements of the rrdtool graph statements. If it goes
COMMENT:"Total In\: 8.46 MB\n" \
...
COMMENT:"Total Out\: 1.58 MB"
it works. Output of this kind (escaping the ":" sign) is produced by the current cacti version (at least on my host :wink: ). The other way round would look like
COMMENT:"Total In 8.46 MB\n" \
...
COMMENT:"Total Out 1.58 MB"
Even this works for me. You see, ":" is omitted here. I Suppose you would achieve this by editing the Graph Item Comment and remove the ":" from the text field.
Reinhard
beeudoublez
Posts: 8
Joined: Wed Oct 26, 2005 6:24 pm

Hmmm

Post by beeudoublez »

Mine was actually a little different - I thought I was using rrdtool 1.2, whereas I was actually using 1.0.

Cutting and pasting the whole command to rrdtool gave me the output about the slope-mode option and how it isn't supported

Now I just have to compile rrdtool 1.2.10!!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests