My graph no show

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

My graph no show

Post by cyro »

ppl's

i need your help i have problem. my graph is not showing this my graph source properties :

c:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SAWAHAN - Traffic - 1:1:1/2" \
--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="c\:\apache\htdocs\cacti/rra/sawahan_traffic_in_20.rrd":traffic_in:AVERAGE \
DEF:b="c\:\apache\htdocs\cacti/rra/sawahan_traffic_in_20.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"

Data Source Debug

c:\rrdtool\rrdtool.exe create \
c:\apache\htdocs\cacti/rra/sawahan_traffic_in_20.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 \

RRDTool Says:

ERROR: invalid text property format

poller.php

C:\apache\php>php.exe c:\apache\htdocs\cacti\poller.php
X-Powered-By: PHP/4.1.1
Content-type: text/html


OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.81
OK u:0.01 s:0.01 r:0.82
OK u:0.01 s:0.01 r:0.82
07/13/2005 07:33:02 PM - SYSTEM STATS: Time: 1.0328 s, Method: cmd.php, Processe
s: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 24, RRDs Processed
12
OK u:0.01 s:0.01 r:0.82
OK u:0.01 s:0.01 r:0.82
OK u:0.01 s:0.01 r:0.82
OK u:0.01 s:0.03 r:0.83

cmd.php

C:\apache\php>php.exe c:\apache\htdocs\cacti\cmd.php
X-Powered-By: PHP/4.1.1
Content-type: text/html


#!/usr/bin/php -q
07/13/2005 07:33:40 PM - CMDPHP: Poller[0] Time: 0.5332 s, Theads: N/A, Hosts: 1

Log File

07/13/2005 07:14:45 PM - SYSTEM STATS: Time: 1.0521 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 24, RRDs Processed

pls help me for this problem...
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) Turn the polling level in cacti to debug for one cycle and paste the output of the log file. If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.

2) Did you tell Cacti you're using rrdtool 1.2?

3) Using the latest version of rrdtool from the cacti website?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Believe it or not the following line is probably causing the problem, and it's also likely a rrdtool 1.2.x issue:

Code: Select all

--title="SAWAHAN - Traffic - 1:1:1/2" \
If you can answer the following:

1) Are you using rrdtool 1.2.x?
2) If so, can you rename the graphs to take out the colons ":"?

Then, if you can accomplish 2), please post the results of the rename. If successful, I will have to patch lib/rrd.php.

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?
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

Post by cyro »

My RRDTool version is :

C:\rrdtool>rrdtool.exe -v
RRDtool 1.2.10 Copyright 1997-2005 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Fri Jun 17 17:20:20 EST 2005

Usage: rrdtool [options] command command_options

Valid commands: create, update, updatev, graph, dump, restore,
last, 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

and my snmp version is :

C:\usr\bin>snmpget -v
getopt: option requires an argument -- v
USAGE: snmpget [OPTIONS] AGENT OID [OID]...

Version: 5.1.2
Web: http://www.net-snmp.org/
Email: net-snmp-coders@lists.sourceforge.net

bla bla...

i am not programer..
and how to rename the graph to take out the colons ?

--title="SAWAHAN - Traffic - 1:1:1/2" \

and this is my DEBUG Poller Loging Level

07/14/2005 08:31:02 AM - SYSTEM STATS: Time: 1.0343 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 2, Hosts/Process: 2, Data Sources 8, RRDs Processed 4
07/14/2005 08:31:02 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\sidoarjo_traffic_in_52.rrd --template traffic_in:traffic_out 1121304661:1716061529:234156020
07/14/2005 08:31:02 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\sidoarjo_traffic_in_53.rrd --template traffic_in:traffic_out 1121304661:186630353:1631234547
07/14/2005 08:31:02 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\sidoarjo_traffic_in_54.rrd --template traffic_in:traffic_out 1121304661:240941873:1714967698
07/14/2005 08:31:02 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\sidoarjo_traffic_in_55.rrd --template traffic_out:traffic_in 1121304661:181701901:1631110623
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Time: 0.2125 s, Theads: N/A, Hosts: 1
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[52] SNMP: v1: 192.168.29.18, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, output: 234156020
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[52] SNMP: v1: 192.168.29.18, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, output: 1716061529
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[53] SNMP: v1: 192.168.29.18, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, output: 1631234547
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[53] SNMP: v1: 192.168.29.18, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, output: 186630353
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[54] SNMP: v1: 192.168.29.18, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, output: 1714967698
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[54] SNMP: v1: 192.168.29.18, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 240941873
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[55] SNMP: v1: 192.168.29.18, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.9, output: 1631110623
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] DS[55] SNMP: v1: 192.168.29.18, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.9, output: 181701901
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] RECACHE: Processing 1 items in the auto reindex cache for '192.168.29.18'.
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] Host[5] SNMP: Host responded to SNMP
07/14/2005 08:31:02 AM - CMDPHP: Poller[0] WARNING: PHP version 4.3 or above is recommended for performance considerations.
07/14/2005 08:31:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:\apache\php\php.exe, ARGS: -q c:\apache\htdocs\cacti/cmd.php 0 5]



i am not programer.. pls help to solv this problem i am just new in here...
when i probe the device i have ouput :
Data Query [SNMP - Interface Statistics]
Attachments
probe.JPG
probe.JPG (29.85 KiB) Viewed 4103 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

cyro wrote:i am not programer..
and how to rename the graph to take out the colons ?

--title="SAWAHAN - Traffic - 1:1:1/2" \
Neither am I.

What TheWitness means is removing the colons from the interface name, Traffic - 1:1:1/2 (i.e. rename it to something like Traffic - 1_1_1/2).
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

Post by cyro »

Mr. TheWitness

or all plls in here.. help me
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Cyro,

Please attempt to use the attached lib/rrd.php. Let me know if that fixes your problem.

TheWitness
Attachments
rrd.zip
(10.66 KiB) Downloaded 125 times
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?
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

Post by cyro »

Dear TheWitness

i use your rrd.php my graph is still not showing..
i trace the diff your rrd.php i got :

if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
$graph_opts .=
"--title=\"" . str_replace(":", "\:", $graph["title_cache"]) . "\"" . RRD_NL;
}else{
$graph_opts .=
"--title=\"" . $graph["title_cache"] . "\"" . RRD_NL;
}

the output is :

c:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SIDOARJO - Traffic - 1\:1\:1/2" \
--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="c\:\apache\htdocs\cacti/rra/sidoarjo_traffic_in_12.rrd":traffic_in:AVERAGE \
DEF:b="c\:\apache\htdocs\cacti/rra/sidoarjo_traffic_in_12.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"


when that string i change like this :

if (read_config_option("rrdtool_version") == "rrd-1.2.x") {
$graph_opts .=
"--title=\"" . str_replace(":", "_", $graph["title_cache"]) . "\"" . RRD_NL;
}else{
$graph_opts .=
"--title=\"" . $graph["title_cache"] . "\"" . RRD_NL;
}

the output is :

c:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SIDOARJO - Traffic - 1_1_1/2" \
--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="c\:\apache\htdocs\cacti/rra/sidoarjo_traffic_in_12.rrd":traffic_in:AVERAGE \
DEF:b="c\:\apache\htdocs\cacti/rra/sidoarjo_traffic_in_12.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"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#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s"


still not work :(

any another idea ?. pls help me..

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

Post by TheWitness »

Ok,

I just noticed something that should not be happening. Please look at the following:
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
These are font settings found in Settings->Visual. They need to be accompanied by the associated font files. Please goto that section and specify some font files and let me know if that fixes the problem.

Also, revert to the original rrd.php file and see if the title with the colons works correctly. If not, put in place the file I sent you again and let me know the outcome.

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?
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

Post by cyro »

TheWitness,

Like u said, i must put something on Setting,Visual (Default RRDtool 1.2 Fonts/Title Font File). then what file i should put in on ?.

btw my status is :
i use

1. Phptriad 2-2-1
2. rrdtool-cygwin-1.2.10
3. net-snmp-5.1.2-1.win32
4. cacti-0.8.6f

pls help me...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's your choice, but to just get things working:

c:/windows/fonts/arialn.ttf

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?
cyro
Posts: 17
Joined: Wed Jul 16, 2003 5:27 am

Post by cyro »

TheWitness

Thx for All.. actualy still not working but i lost a lot off my time for this thing.. maybe i am stupid...

ok bro thx.. for All.. and finish :(

have nice day....
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests