Hi Cacti people,
I am trying to graph some values coming from an application. The rrd file was generated and 'last_ds' shows valid values for each of the data sources (DS) but 'value' keeps showing as NaN.
Values are generated through an script. Output values increase (or remain equal) each new smaple, so ds_type was set as counter. Minimum and maximum data values have been set for each of the data sources (maximum is well beyond any values given by the script, minimum values was set to -2 (that represents no output from that variable).
Since graph aws not generated, I changed ds_types to gauge. Parameter 'value' in rrd files starts showing its value. Unfortunately, graph becomes an ever increase curve (because of the gauge ds_type) and it does not reflect the change between one sample value and the previous one as desired.
The same graph template has been used before to graph same variables from another machine/application and there it works fine.
I have set graph debugging and results are shown as OK, but no graph.
Attached file Data_with_Nan_values.txt shows script output and output from rrdtool info for the rrd file that does not work.
To make a comparison with other graph that works, I also include the output from the script and from the corresponding rrd file in file Data_with_OK_values.txt
Additional information
- cacti version:0.8.7g
- OS : Red Hat 4.1.2-46
I am adding the result from the Debug of the graph:
----------------------------------------------------
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='bbnat-001 - CPU Threads' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale \
--vertical-label= \
--slope-mode \
--font TITLE:8: \
--font AXIS:6: \
--font LEGEND:6: \
--font UNIT:6: \
DEF:a="/var/www/cacti/rra/filename.rrd":bbSBCMain:LAST \
DEF:b="/var/www/cacti/rra/filename.rrd":bbSBCRTP:LAST \
DEF:c="/var/www/cacti/rra/filename.rrd":bbSBCLCA:LAST \
DEF:d="/var/www/cacti/rra/filename.rrd":bbSBCRM:LAST \
DEF:e="/var/www/cacti/rra/filename.rrd":bbPing:LAST \
DEF:f="/var/www/cacti/rra/filename":bbTimerSBCCleanUP:LAST \
DEF:g="/var/www/cacti/rra/filename":bbTimerSBCResend:LAST \
DEF:h="/var/www/cacti/rra/filename":bbTimerSBCDOSAtt:LAST \
DEF:i="/var/www/cacti/rra/filename":bbTimerNATNotif:LAST \
DEF:j="/var/www/cacti/rra/filename":bbTimerNATReg:LAST \
CDEF:cdefc=b,10000000000,/ \
CDEF:cdefe=c,10000000000,/,1000,* \
CDEF:cdefg=d,10000000000,/,1000,*,10,*,10,* \
CDEF:cdefba=f,10000000000,/,1000,*,10,*,10,* \
CDEF:cdefbc=g,10000000000,/,1000,*,10,* \
CDEF:cdefbe=h,10000000000,/,1000,*,10,*,10,* \
LINE1:a#000000FF:"bbSBCMain" \
GPRINTLAST:" %8.0lf" \
LINE1:cdefc#FF0000FF:"bbSBCRTP" \
GPRINTLAST:" %8.0lf\n" \
LINE1:cdefe#12B3B5FF:"bbSBCLCA" \
GPRINT:c:LAST:" %8.0lf" \
LINE1:cdefg#35962BFF:"bbSBCRM" \
GPRINT:d:LAST:" %8.0lf\n" \
LINE1:e#EE5019FF:"bbPing" \
GPRINT:e:LAST:" %8.0lf" \
LINE1:cdefba#7CB3F1FF:"bbTimerSBCCleanUP" \
GPRINT:f:LAST:"%8.0lf\n" \
LINE1:cdefbc#CCBB00FF:"bbTimerSBCResend" \
GPRINT:g:LAST:" %8.0lf" \
LINE1:cdefbe#A150AAFF:"bbTimerSBCDOSAtt" \
GPRINT:h:LAST:" %8.0lf\n" \
LINE1:i#4668E4FF:"bbTimerNATNotif" \
GPRINT:i:LAST:" %8.0lf" \
LINE1:j#00A348FF:"bbTimerNATReg" \
GPRINT:j:LAST:" %8.0lf\n"
RRDTool Says:
OK
-----------------------------
Notes regarding the graph:
filename: specific filename of the rrd file.
CDEF functions were used at some point to "see" the graphs, specifically when I set ds_type to gauge, because resulting values grow and reach initial (maximum) limit set.
-----------------------------------------------------
Could you have a look and let me know if I am skipping something or what can I do to make the graph to work?
Your help will be greatly appreciated.
Carlos
rrd files show numbers in last_ds but not in value param
Moderators: Developers, Moderators
rrd files show numbers in last_ds but not in value param
- Attachments
-
- Data_with_OK_values.txt
- (3.82 KiB) Downloaded 257 times
-
- Data_with_NaN_values.txt
- (4.29 KiB) Downloaded 244 times
Who is online
Users browsing this forum: No registered users and 17 guests