cdef error

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
bmoody
Posts: 4
Joined: Fri Mar 18, 2011 1:26 pm

cdef error

Post by bmoody »

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='HostPort 5000-1FE1-5007- bytes/sec' \
--base=1024 \
--height=120 \
--width=500 \
--upper-limit='1048576' \
--lower-limit='0' \
--vertical-label='bytes/sec' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
CDEF:cdefa=a,1024,* \
LINE1:cdefa#7CB3F1FF:"Read Bytes" \
AREA:cdefa#7CB3F17F:"" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefa#FF0000FF:"Write Bytes" \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" RRDTool Says:

ERROR: invalid rpn expression in: a,1024,*

It appears maybe the template is not importing correctly. I get these unmet dependancy errors.

Cacti has imported the following items:

CDEF

[success] Multiply by 1024 [update]
[success] Total All Data Sources [update]
[success] Ratio, Multiply by 1024 [update]

GPRINT Preset

[success] Normal [update]
[success] Exact Numbers [update]

Data Input Method

[success] Get Script Data (Indexed) [update]

Data Template

[success] EVA - VirtualDisk [update]
[success] EVA - PhysicalDiskGroup [update]
[success] EVA - HostConnection [update]
[success] EVA - StorageArray [update]
[success] EVA - StorageController [update]
[success] EVA - HostPortStatistics [update]

Graph Template

[success] EVA - VirtualDisk - Requests/Sec [update]
[success] EVA - VirtualDisk - Latency [update]
[success] EVA - VirtualDisk - Throughput [update]
[success] EVA - PhysicalDiskGroup - Latency [update]
[success] EVA - PhysicalDiskGroup - Requests / Second [update]
[success] EVA - PhysicalDiskGroup - Throughput [update]
[success] EVA - HostConnection - Queue Depth [update]
[success] EVA - StorageArray - Throughput [update]
[success] EVA - StorageArray - Requests/sec [update]
[success] EVA - StorageArray - IO Size [update]
[success] EVA - StorageController - CPU [update]
[success] EVA - HostPortStatistics - Requests / Second [update]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
[success] EVA - HostPortStatistics - Queue Depth [update]
[success] EVA - HostPortStatistics - Throughput [update]
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (CDEF) Multiply by 1024
+ Found Dependency: (GPRINT Preset) Normal
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)

Data Query

[success] Eva - Query new VirtualDisk [update]
[success] Eva - Query new PhysicalDiskGroup [update]
[success] Eva - Query new HostConnection [update]
[success] Eva - Query new StorageArray [update]
[success] Eva - Query new StorageController [update]
[success] Eva - Query HostPortStatistics [update]
+ Found Dependency: (Data Input Method) Get Script Data (Indexed)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Requests / Second
+ Found Dependency: (Data Template) EVA - HostPortStatistics
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Throughput
+ Unmet Dependency: (Data Template Item)
+ Unmet Dependency: (Data Template Item)
+ Found Dependency: (Graph Template) EVA - HostPortStatistics - Queue Depth
+ Found Dependency: (Data Template Item) AvQueueDepth
+ Found Dependency: (Data Template) EVA - HostConnection

Host Template

[success] EVA Commandview [update]


Any help would be very appreciated.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Re: cdef error

Post by niobe »

You are missing a definition for data item 'a'!
Should be something like this in the graph debug:

Code: Select all

DEF:a="/var/www/cacti/rra/doi2_cpu_load_90686.rrd":cpu_load:AVERAGE \
Something has gone wrong in your templates.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest