Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Feb 18, 2018 6:52 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Need help using |sum:0:current:2:auto|
PostPosted: Thu Jan 04, 2018 4:02 am 
Offline

Joined: Tue Sep 13, 2005 5:30 am
Posts: 29
Hello

I am trying to tear my hair after the upgrade cacti in 1.1.29. The problem is also reproduced with cacti-1.1.30. Cacti runs on a debian 8.10. All system updates have been made.

On a graph, I use a CDEF that allows a calculation
Code:
cdef=CURRENT_DATA_SOURCE,POP,|sum:0:total:2:auto|,1,*

This CDEF, before the upgrade, was like VDEF Preset
Code:
vdef=CURRENT_DATA_SOURCE, TOTAL

I need this CDEF to use it on same graph for a specific GPRINT.

The rrdtool error gave me a way to investigate :
Code:
ERROR: RPN final stack size != 1


I have found that |sum:0:total:2:auto| returns two values instead of one.


So I had a POP function :
Code:
cdef=CURRENT_DATA_SOURCE,POP,|sum:0:total:2:auto|,POP,1,*


And of course this is not working fine.
The output format is not correct. The output is using, in English format, a comma separator for thousand, or a space in french format.

English langage in cacti : 66,268.949 1.57

French language in cacti : 66 268,949 1.57

Is there Something I am doing wrong ?
How can I get rid of the second value ?
How can I get rid of thousand separator ?

Thanks in advance for your help !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group