Problem with graph export

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

Moderators: Developers, Moderators

dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Problem with graph export

Post by dado »

Hello everyone!
I'm trying to create and export some graphs, after some attempt and reading this forum i'm finally able to show it on this link but some images are not created correctly, like ping and ppp0 traffic.
On logs i see this error:

Code: Select all

09/01/2010 01:38:04 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash on 'graph /var/www/dididado.sytes.net/public_html/graph/graphs/graph_6_4.png --imgformat=PNG --start=-33053184 --end=-86400 --title='Localhost - Traffic - ppp0' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label='bits per second' --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_in:AVERAGE DEF:b="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" '. Last command was 'graph /var/www/dididado.sytes.net/public_html/graph/graphs/graph_6_3.png --imgformat=PNG --start=-2678400 --end=-7200 --title='Localhost - Traffic - ppp0' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --vertical-label='bits per second' --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_in:AVERAGE DEF:b="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" ' 
but even when it seems to generate correctly the graphs there are no png images in the folder and the RRDTool crash occurs on a random images

here is a log for a graph 6 image export but no files are created in the folder

Code: Select all

09/01/2010 01:42:04 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph /var/www/dididado.sytes.net/public_html/graph/graphs/thumb_6.png --imgformat=PNG --start=-86400 --end=-300 --title='Localhost - Traffic - ppp0' --rigid --base=1000 --height=150 --width=650 --alt-autoscale-max --lower-limit=0 --no-legend --vertical-label='bits per second' --slope-mode --font TITLE:8.4: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_in:AVERAGE DEF:b="/var/www/cacti/rra/localhost_traffic_in_9.rrd":traffic_out:AVERAGE CDEF:cdefa=a,8,* CDEF:cdefe=b,8,* AREA:cdefa#00CF00FF:"" LINE1:cdefe#002A97FF:""
09/01/2010 01:42:04 PM - EXPORT Creating Graph '/var/www/dididado.sytes.net/public_html/graphgraphs/thumb_6.png' 
Thanks for help!

Code: Select all

General Information
Date 	Wed, 01 Sep 2010 13:30:12 +0200
Cacti Version 	0.8.7g
Cacti OS 	unix
SNMP Version 	NET-SNMP version: 5.4.2.1
RRDTool Version 	RRDTool 1.3.x
Hosts 	1
Graphs 	4
Data Sources 	Script/Command: 2
SNMP Query: 1
Script - Script Server (PHP): 1
Total: 4
Poller Information
Interval 	60
Type 	cmd.php
Items 	Action[0]: 2
Action[1]: 2
Action[2]: 1
Total: 5
Concurrent Processes 	1
Max Threads 	5
PHP Servers 	5
Script Timeout 	25
Max OID 	10
Last Run Statistics 	Time:5.2379 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1
PHP Information
PHP Version 	5.3.2-1ubuntu4.2
PHP OS 	Linux
PHP uname 	Linux Server 2.6.32-24-generic-pae #41-Ubuntu SMP Thu Aug 19 02:43:57 UTC 2010 i686
PHP SNMP 	Installed
max_execution_time 	30
memory_limit 	128M
MySQL Table Information
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

What happens when you run the command as the cron user?

Also, it only appears as if this setup has one graph.

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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

TheWitness wrote:What happens when you run the command as the cron user?

Code: Select all

root@Server:/home/dado# php /var/www/cacti/poller.php
09/01/2010 05:07:49 PM - POLLER: Poller[0] NOTE: Poller Int: '60', Cron Int: '60', Time Since Last: '108', Max Runtime '58', Poller Runs: '1'
09/01/2010 05:07:49 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 108 seconds have passed since the last poll!
09/01/2010 05:07:49 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/cmd.php" 0 0]
09/01/2010 05:07:49 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/cmd.php" 1 1]
Waiting on 2 of 2 pollers.
09/01/2010 05:07:50 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/localhost_proc_7.rrd --template proc 1283353669:160
09/01/2010 05:07:50 PM - SYSTEM STATS: Time:1.3025 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:1 RRDsProcessed:1
OK u:0.01 s:0.00 r:1.07
09/01/2010 05:07:50 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/cacti/poller_export.php"]
Loop  Time is: 1.3113689422607
Sleep Time is: 58.682867050171
Total Time is: 1.3171329498291
root@Server:/home/dado# *** glibc detected *** /usr/bin/rrdtool: double free or corruption (!prev): 0x09bd2100 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(+0x6b591)[0xb7419591]
/lib/tls/i686/cmov/libc.so.6(+0x6cde8)[0xb741ade8]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb741decd]
/usr/bin/rrdtool[0x804ba1e]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb73c4bd6]
/usr/bin/rrdtool[0x8049341]
======= Memory map: ========
08048000-0804e000 r-xp 00000000 fb:01 3813456    /usr/bin/rrdtool
0804e000-0804f000 r--p 00005000 fb:01 3813456    /usr/bin/rrdtool
0804f000-08050000 rw-p 00006000 fb:01 3813456    /usr/bin/rrdtool
09bcc000-09d48000 rw-p 00000000 00:00 0          [heap]
b6ce1000-b6cfe000 r-xp 00000000 fb:01 4325431    /lib/libgcc_s.so.1
b6cfe000-b6cff000 r--p 0001c000 fb:01 4325431    /lib/libgcc_s.so.1
b6cff000-b6d00000 rw-p 0001d000 fb:01 4325431    /lib/libgcc_s.so.1
b6d00000-b6d21000 rw-p 00000000 00:00 0
b6d21000-b6e00000 ---p 00000000 00:00 0
b6e09000-b6e58000 r--p 00000000 fb:01 4460209    /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b6e58000-b6e5a000 r-xp 00000000 fb:01 4461311    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6e5a000-b6e5b000 r--p 00001000 fb:01 4461311    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6e5b000-b6e5c000 rw-p 00002000 fb:01 4461311    /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b6e5c000-b6e63000 r--s 00000000 fb:02 2621765    /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le32d4.cache-3
b6e63000-b6e6d000 r-xp 00000000 fb:01 4325403    /lib/tls/i686/cmov/libnss_files-2.11.1.so
b6e6d000-b6e6e000 r--p 00009000 fb:01 4325403    /lib/tls/i686/cmov/libnss_files-2.11.1.so
b6e6e000-b6e6f000 rw-p 0000a000 fb:01 4325403    /lib/tls/i686/cmov/libnss_files-2.11.1.so
b6e6f000-b6e77000 r-xp 00000000 fb:01 4325405    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
b6e77000-b6e78000 r--p 00007000 fb:01 4325405    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
b6e78000-b6e79000 rw-p 00008000 fb:01 4325405    /lib/tls/i686/cmov/libnss_nis-2.11.1.so
b6e79000-b6e8c000 r-xp 00000000 fb:01 4325400    /lib/tls/i686/cmov/libnsl-2.11.1.so
b6e8c000-b6e8d000 r--p 00012000 fb:01 4325400    /lib/tls/i686/cmov/libnsl-2.11.1.so
b6e8d000-b6e8e000 rw-p 00013000 fb:01 4325400    /lib/tls/i686/cmov/libnsl-2.11.1.so
b6e8e000-b6e90000 rw-p 00000000 00:00 0
b6e90000-b6e96000 r-xp 00000000 fb:01 4325401    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
b6e96000-b6e97000 r--p 00006000 fb:01 4325401    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
b6e97000-b6e98000 rw-p 00007000 fb:01 4325401    /lib/tls/i686/cmov/libnss_compat-2.11.1.so
b6e9d000-b6e9e000 rw-p 00000000 00:00 0
b6e9e000-b6eb8000 r--p 00000000 fb:01 3932992    /usr/share/locale-langpack/it/LC_MESSAGES/libc.mo
b6eb8000-b6eb9000 rw-p 00000000 00:00 0
b6eb9000-b6ef8000 r--p 00000000 fb:01 3811493    /usr/lib/locale/it_IT.utf8/LC_CTYPE
b6ef8000-b6ef9000 r--p 00000000 fb:01 3841128    /usr/lib/locale/it_IT.utf8/LC_NUMERIC
b6ef9000-b6efa000 r--p 00000000 fb:01 3841129    /usr/lib/locale/it_IT.utf8/LC_TIME
b6efa000-b7018000 r--p 00000000 fb:01 3811496    /usr/lib/locale/it_IT.utf8/LC_COLLATE
b7018000-b7019000 r--p 00000000 fb:01 3841130    /usr/lib/locale/it_IT.utf8/LC_MONETARY
b7019000-b701a000 r--p 00000000 fb:01 3841131    /usr/lib/locale/it_IT.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b701a000-b7021000 r--s 00000000 fb:01 3841260    /usr/lib/gconv/gconv-modules.cache
b7021000-b7023000 rw-p 00000000 00:00 0
b7023000-b7027000 r-xp 00000000 fb:01 3832915    /usr/lib/libXdmcp.so.6.0.0
b7027000-b7028000 r--p 00003000 fb:01 3832915    /usr/lib/libXdmcp.so.6.0.0
b7028000-b7029000 rw-p 00004000 fb:01 3832915    /usr/lib/libXdmcp.so.6.0.0
b7029000-b702a000 rw-p 00000000 00:00 0
b702a000-b702c000 r-xp 00000000 fb:01 3832909    /usr/lib/libXau.so.6.0.0
b702c000-b702d000 r--p 00001000 fb:01 3832909    /usr/lib/libXau.so.6.0.0
b702d000-b702e000 rw-p 00002000 fb:01 3832909    /usr/lib/libXau.so.6.0.0
b702e000-b7052000 r-xp 00000000 fb:01 4329582    /lib/libexpat.so.1.5.2
b7052000-b7054000 r--p 00024000 fb:01 4329582    /lib/libexpat.so.1.5.2
b7054000-b7055000 rw-p 00026000 fb:01 4329582    /lib/libexpat.so.1.5.2
b7055000-b7084000 r-xp 00000000 fb:01 4325458    /lib/libpcre.so.3.12.1
b7084000-b7085000 r--p 0002e000 fb:01 4325458    /lib/libpcre.so.3.12.1
b7085000-b7086000 rw-p 0002f000 fb:01 4325458    /lib/libpcre.so.3.12.1
b7086000-b719f000 r-xp 00000000 fb:01 3833178    /usr/lib/libX11.so.6.3.0
b719f000-b71a0000 r--p 00118000 fb:01 3833178    /usr/lib/libX11.so.6.3.0
b71a0000-b71a2000 rw-p 00119000 fb:01 3833178    /usr/lib/libX11.so.6.3.0
b71a2000-b71a4000 rw-p 00000000 00:00 0
b71a4000-b71ac000 r-xp 00000000 fb:01 3812279    /usr/lib/libXrender.so.1.3.0
b71ac000-b71ad000 r--p 00007000 fb:01 3812279    /usr/lib/libXrender.so.1.3.0
b71ad000-b71ae000 rw-p 00008000 fb:01 3812279    /usr/lib/libXrender.so.1.3.0
b71ae000-b71c6000 r-xp 00000000 fb:01 3832917    /usr/lib/libxcb.so.1.1.0
b71c6000-b71c7000 r--p 00017000 fb:01 3832917    /usr/lib/libxcb.so.1.1.0
b71c7000-b71c8000 rw-p 00018000 fb:01 3832917    /usr/lib/libxcb.so.1.1.0
b71c8000-b71ce000 r-xp 00000000 fb:01 3812275    /usr/lib/libxcb-render.so.0.0.0
b71ce000-b71cf000 r--p 00005000 fb:01 3812275    /usr/lib/libxcb-render.so.0.0.0
b71cf000-b71d0000 rw-p 00006000 fb:01 3812275    /usr/lib/libxcb-render.so.0.0.0
b71d0000-b71d3000 r-xp 00000000 fb:01 3812277    /usr/lib/libxcb-render-util.so.0.0.0
b71d3000-b71d4000 r--p 00002000 fb:01 3812277    /usr/lib/libxcb-render-util.so.0.0.0
b71d4000-b71d5000 rw-p 00003000 fb:01 3812277    /usr/lib/libxcb-render-util.so.0.0.0
b71d5000-b71e9000 r-xp 00000000 fb:01 3841173    /usr/lib/libdirect-1.2.so.0.8.0
b71e9000-b71ea000 r--p 00013000 fb:01 3841173    /usr/lib/libdirect-1.2.so.0.8.0
b71ea000-b71eb000 rw-p 00014000 fb:01 3841173    /usr/lib/libdirect-1.2.so.0.8.0
b71eb000-b71ec000 rw-p 00000000 00:00 0
b71ec000-b71f4000 r-xp 00000000 fb:01 3841175    /usr/lib/libfusion-1.2.so.0.8.0
b71f4000-b71f5000 r--p 00007000 fb:01 3841175    /usr/lib/libfusion-1.2.so.0.8.0
b71f5000-b71f6000 rw-p 00008000 fb:01 3841175    /usr/lib/libfusion-1.2.so.0.8.0
b71f6000-b7269000 r-xp 00000000 fb:01 3841174    /usr/lib/libdirectfb-1.2.so.0.8.0
b7269000-b726a000 ---p 00073000 fb:01 3841174    /usr/lib/libdirectfb-1.2.so.0.8.0
b726a000-b726b000 r--p 00073000 fb:01 3841174    /usr/lib/libdirectfb-1.2.so.0.8.0
b726b000-b726c000 rw-p 00074000 fb:01 3841174    /usr/lib/libdirectfb-1.2.so.0.8.0
b726c000-b726d000 rw-p 00000000 00:00 0
b726d000-b72c4000 r-xp 00000000 fb:01 3812273    /usr/lib/libpixman-1.so.0.16.4
b72c4000-b72c6000 r--p 00057000 fb:01 3812273    /usr/lib/libpixman-1.so.0.16.4
b72c6000-b72c7000 rw-p 00059000 fb:01 3812273    /usr/lib/libpixman-1.so.0.16.4Aborted
don't worry about "The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 108 seconds have passed since the last poll!", i have to stop cron because poller.php report me "Cron is configured to run too often! The Poller Interval is '60' seconds, with a minimum Cron period of '60' seconds, but only 12 seconds have passed since the poller last ran."
TheWitness wrote: Also, it only appears as if this setup has one graph.

TheWitness
what do you mean?

Thanks,
Dado
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You see the export command in your first note. Cut and paste that to the command line. Make sure that your rrdfile is first created though.

If you still obtain a segfault, you should open a bug with the RRDtool team. Might already be fixed with a newer version. What version are you 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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

On the cmd line the files are created correctly without problem..
May be could be a permission problem? How can i understand it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you please answer my question first. Otherwise, make the permissions 777.

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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

Have you asked about version right?

Code: Select all

General Information
Date    Wed, 01 Sep 2010 13:30:12 +0200
Cacti Version    0.8.7g
Cacti OS    unix
SNMP Version    NET-SNMP version: 5.4.2.1
RRDTool Version    RRDTool 1.3.x 
I think i have already tryed to make all 777...

Thanks,
Dado
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Code: Select all

rrdtool --version
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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

Code: Select all

root@Server:/home/dado# rrdtool --version
RRDtool 1.3.8  Copyright 1997-2009 by Tobias Oetiker <tobi@oetiker.ch>
               Compiled Feb 23 2010 20:48:05

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, graphv,  dump, restore,
        last, lastupdate, first, info, fetch, tune,
        resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Installed from source? What happens if your do the same with 1.2.27 or 1.4.x?

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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

i have installed it from repo, for try with other version i just need to modify "RRDTool Utility Version" under "Settings"?

Thanks,
Dado
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You have to get source from rrdtool.org
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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

ok i have installed rrdtool 1.4 and now i have no more error but still not export correctly the graph 5 and maybe i find the problem.

The command is:

Code: Select all

/usr/bin/rrdtool graph /var/www/dididado.sytes.net/public_html/graph/graphs/graph_5_5.png --imgformat=PNG --start=-14400 --end=-300 --title='Localhost - Advanced Ping' --base=1000 --height=120 --width=500 --upper-limit='10' --lower-limit='0' --units-exponent='1' --vertical-label='milliseconds' --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/cacti/rra/localhost_loss_8.rrd":min:AVERAGE DEF:b="/var/www/cacti/rra/localhost_loss_8.rrd":avg:AVERAGE DEF:c="/var/www/cacti/rra/localhost_loss_8.rrd":max:AVERAGE DEF:d="/var/www/cacti/rra/localhost_loss_8.rrd":loss:AVERAGE DEF:e="/var/www/cacti/rra/localhost_loss_8.rrd":dev:AVERAGE CDEF:cdefg=d,0,GT,d,2,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefh=d,3,GT,d,5,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefi=d,5,GT,d,10,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefj=d,10,GT,d,15,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefba=d,15,GT,d,50,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefbb=d,50,GT,d,95,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefbc=d,95,GT,d,100,GT,UNKN,INF,IF,UNKN,IF CDEF:cdefbd=d,UN,1,EQ,TIME,300,+,NOW,GT,UNKN,INF,IF,d,95,GT,INF,UNKN,IF,IF CDEF:cdefbf=e,2,/ CDEF:cdefbh=c,b,-,e,-,3,/ CDEF:cdefcd=d,0,GT,d,2,GT,UNKN,b,IF,UNKN,IF CDEF:cdefce=d,3,GT,d,5,GT,UNKN,b,IF,UNKN,IF CDEF:cdefcf=d,5,GT,d,10,GT,UNKN,b,IF,UNKN,IF CDEF:cdefcg=d,10,GT,d,15,GT,UNKN,b,IF,UNKN,IF CDEF:cdefch=d,15,GT,d,50,GT,b,INF,IF,UNKN,IF CDEF:cdefci=d,50,GT,d,95,GT,UNKN,b,IF,UNKN,IF CDEF:cdefcj=d,95,GT,d,100,GT,UNKN,b,IF,UNKN,IF LINE1:a:"" LINE1:b:"" LINE1:c:"" LINE1:d:"" LINE1:e:"" COMMENT:" Pkt Loss\:" AREA:cdefg#AFECEDFF:"1-2%" AREA:cdefh#55D6D3FF:"3-5%" AREA:cdefi#7CB3F1FF:"6-10%" AREA:cdefj#4668E4FF:"11-15%" AREA:cdefba#A150AAFF:"16-50%" AREA:cdefbb#FF00FFFF:"51-95%" AREA:cdefbc#F51D30FF:"96-100%" COMMENT:"Unknown\n" AREA:b#FFFFFFFF:"" AREA:cdefbf#333333FF:"":STACK AREA:cdefbf#555555FF:"":STACK AREA:cdefbh#888888FF:"":STACK AREA:cdefbh#AAAAAAFF:"":STACK AREA:cdefbh#CCCCCCFF:"":STACK GPRINT:d:AVERAGE:" Avg Loss\:%6.2lf%%" GPRINT:d:MAX:"Max Loss\:%6.2lf%%\n" COMMENT:" Latency\:" AREA:cdefcd#AFECEDFF:"" AREA:cdefce#55D6D3FF:"" AREA:cdefcf#7CB3F1FF:"" AREA:cdefcg#4668E4FF:"" AREA:cdefch#A150AAFF:"" AREA:cdefci#FF00FFFF:"" AREA:cdefcj#F51D30FF:"" GPRINT:a:AVERAGE:"Min\:%8.2lf ms" GPRINT:b:AVERAGE:"Avg\:%8.2lf ms" GPRINT:c:MAX:"Max\:%8.2lf ms" GPRINT:e:AVERAGE:"Dev\:%8.2lf ms\n" COMMENT:"Avg Latency\:" LINE1:b#00BD27FF:" 
this command missing " at the end, if i add it and run on cmd line it create correctly the image, how can this be fixed?

Thanks,
Dado
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Verify your template.
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?
dado
Posts: 11
Joined: Wed Sep 01, 2010 6:27 am

Post by dado »

This is the template, i didn't modify it and i realy don't know what i should check for verify if there is some problem :(

Thanks,
Dado
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest