Invalid RPN expression

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

Moderators: Developers, Moderators

Post Reply
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Invalid RPN expression

Post by thewall »

Good evening All,

I'm having problems with a CDEF expression and I don't know how to fix cause I'm a newbie in RPN or CDEF language. Here is the code:

Code: Select all

cdef=CURRENT_DATA_SOURCE,ALL_DATA_SOURCES_NODUPS,/,100,*
And here is the error related by RRDtool:

Code: Select all

ERROR: Could not parse line 'GPRINT::LAST:      Current\:%8.3lf'
Thanks
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Typically caused by a RRDtool command sequence not including a DS line, but there are also some other causes. Let me look at it again...
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?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Sorry but what do U mean by DS line?? Isn't that a datasource line like CURRENT_DATA_SOURCE ???

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

Post by TheWitness »

Post your complete RRDtool graph statement and I will explain based upon it.

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?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Here U go!!!

I'm sending you the grpah template and the GPRINT %Rx Error.

Tks
Attachments
%RxError-GraphTemplate.GIF
%RxError-GraphTemplate.GIF (29.36 KiB) Viewed 3778 times
Gprint-%RxError.JPG
Gprint-%RxError.JPG (56.05 KiB) Viewed 3777 times
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Hi,

Here is what RRDtool says about my graph...

Thanks again
Attachments
RRDToolSays.JPG
RRDToolSays.JPG (70.05 KiB) Viewed 3776 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

You need to select the correct RRD version under Settings->General.

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?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Hi, I think the version is correctly selected. Please see below

Code: Select all

root@phoenix:/usr/local/cacti/rra# find / -name rrdtool
/usr/bin/rrdtool
/usr/local/src/rrdtool-1.2.8/src/.libs/rrdtool
/usr/local/src/rrdtool-1.2.8/src/rrdtool
/usr/local/rrdtool
/usr/local/rrdtool-1.2.8/bin/rrdtool
/usr/local/rrdtool-1.2.8/share/rrdtool
/usr/local/rrdtool-1.2.8/rrdtool
Attachments
RRD Version.JPG
RRD Version.JPG (64.06 KiB) Viewed 3772 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yup, looking good, now you need to view the graph 1 time in DEBUG mode and cut and paste the output from the log file into your next post.

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?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Good night,

Here's the log part for the device using the graph:

The DS used by the %RxErrors graph are 5926 and 5927, and look's like their're returning OK.

Code: Select all

09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] SNMP Result: Host responded to SNMP
09/18/2005 08:25:11 PM - CACTID: Poller[0] DEBUG: SQLCMD: update host set status='3',status_event_count='0', status_fail_date='2005-09-15 00:10:00',status_rec_date='2005-09-11 07:35:00',status_last_error='Host did not respond to SNMP',min_time='1.768110',max_time='513.111830',cur_time='6.616120',avg_time='4.959066',total_polls='14293',failed_polls='38',availability='99.7341'where id='209'
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] RECACHE: Processing 1 items in the auto reindex cache for '10.56.29.2'
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5973] SNMP: v1: 10.56.29.2, dsname: apgRssi, oid: .1.3.6.1.4.1.1150.6.
1.3.3.1.2.1, value: -61
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5923] SNMP: v1: 10.56.29.2, dsname: Errors, oid: .1.3.6.1.4.1.1150.6.1
.3.2.3.0, value: 43742
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5926] SNMP: v1: 10.56.29.2, dsname: Errors, oid: .1.3.6.1.4.1.1150.6.1
.3.2.3.0, value: 43742
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5924] SNMP: v1: 10.56.29.2, dsname: Frames, oid: .1.3.6.1.4.1.1150.6.1
.3.2.1.0, value: 17766255
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5927] SNMP: v1: 10.56.29.2, dsname: Frames, oid: .1.3.6.1.4.1.1150.6.1
.3.2.1.0, value: 17766256
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DEBUG: The POPEN returned the following File Descriptor 17
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[3030] SCRIPT: perl /usr/local/cacti-0.8.6e/scripts/ping.pl 10.56.29.2,
 output: 1.43
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5925] SNMP: v1: 10.56.29.2, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.
1.10.1, value: 1754424060
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DS[5925] SNMP: v1: 10.56.29.2, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2
.1.16.1, value: 3231128598
09/18/2005 08:25:11 PM - CACTID: Poller[0] Host[209] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

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

Post by TheWitness »

You misunderstood me. When you set logging to DEBUG and then go and view a graph under "Graph Management" an entry is placed in the log that looks something like "CACTI2RRD ...". You need to find that entry and paste it into the forum.

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?
User avatar
thewall
Posts: 24
Joined: Thu Mar 03, 2005 9:13 am
Location: Brasil

Post by thewall »

Sorry,

Here is the correct log file:

Code: Select all

09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_traffic_in_5925.rrd --template traffic_out:traffic_in 1127085901:3231128598:1754424060
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_ping_3030.rrd --template ping 1127085901:1.43
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_frames_5927.rrd --template Frames 1127085901:17766256
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_frames_5924.rrd --template Frames 1127085901:17766255
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_errors_5926.rrd --template Errors 1127085901:43742
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_errors_5923.rrd --template Errors 1127085901:43742
09/18/2005 08:25:11 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool/bin/rrdtool update /usr/local/cacti-0.8.6e/rra/pcombtt_s9_apgrssi_5973.rrd --template apgRssi 1127085901:-61
This log was captured from debug log file using VI. At graph_management nothing was shown except this line:

Code: Select all

RRDTool Says:
ERROR: Could not parse line 'GPRINT::LAST:      Current\:%8.3lf'
Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest