Hello.
Some of my graphs in cacti are not getting updated at all.
They always show "nan" values.
Other graphs that I have (similar to the ones that are failing) get updated successfully.
I'm using the following:
- Ubuntu server 14.04
- Cacti 0.8.8.b
- Poller type: cmd.php
- Input type: Script/Command
Turning the debug level on, I have seen that there is one line saying:
03/02/2015 11:05:20 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
I'm not sure whether this can be a problem or not. If so, it is only affecting these particular failing graphs, since other similar graphs are getting updated without any problem.
For the failing graphs, I can see that cacti is receiving and parsing the values successfully (for example, the userid_UpdatedPercentage is 0.0).
Values from external JMX, and cacti says:
03/02/2015 11:05:20 AM - CMDPHP: Poller[0] Host[5] DS[466] CMD: java -jar /usr/share/cacti/site/scripts/JMX2Cacti.jar -c /usr/share/cacti/site/scripts/jmx-radius.json -a 192.168.11.129:8816 -u glassEye -p xmEefrdd, output: javalang_Memory_HeapMemoryUsage_committed:259522560 javalang_Memory_HeapMemoryUsage_init:268435456 javalang_Memory_HeapMemoryUsage_max:259522560 javalang_Memory_HeapMemoryUsage_used:60610640 javalang_Memory_NonHeapMemoryUsage_committed:24313856 javalang_Memory_NonHeapMemoryUsage_init:24313856 javalang_Memory_NonHeapMemoryUsage_max:136314880 javalang_Memory_NonHeapMemoryUsage_used:23013632 javalang_Threading_ThreadCount:16 decoder_ErrorPercentage:0.0 decoder_FilteredPercentage:0.0 decoder_Requests:0.0 decoder_SuccessPercentage:0.0 userid_AddedPercentage:0.0 userid_RemovedPercentage:0.0 userid_Requests:0.0 userid_UpdatedErrorPercentage:0.0 userid_UpdatedPercentage:0.0
So, the values are being received, indeed.
Then, they are mapped onto data fields, and that is done successfully:
03/02/2015 11:05:20 AM - WEATHERMAP: Poller[0] WM poller_output: ENDING
03/02/2015 11:05:20 AM - WEATHERMAP: Poller[0] WM poller_output: STARTING
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'userid_UpdatedPercentage:0.0' [map userid_UpdatedPercentage->userid_updatesuccpe]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'userid_UpdatedErrorPercentage:0.0' [map userid_UpdatedErrorPercentage->userid_updateerrper]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'userid_Requests:0.0' [map userid_Requests->userid_requests]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'userid_RemovedPercentage:0.0' [map userid_RemovedPercentage->userid_removedperce]
03/02/2015 11:05:20 AM - CMDPHP: Poller[0] Host[6] RECACHE DQ[6] OID: .1.3.6.1.2.1.1.3.0, output: 512380
03/02/2015 11:05:20 AM - CMDPHP: Poller[0] Host[6] RECACHE DQ[6] OID: .1.3.6.1.2.1.1.3.0
03/02/2015 11:05:20 AM - CMDPHP: Poller[0] Host[6] RECACHE: Processing 1 items in the auto reindex cache for '192.168.11.136'.
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'userid_AddedPercentage:0.0' [map userid_AddedPercentage->userid_addedpercent]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'decoder_SuccessPercentage:0.0' [map decoder_SuccessPercentage->decoder_successperc]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'decoder_Requests:0.0' [map decoder_Requests->decoder_requests]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'decoder_FilteredPercentage:0.0' [map decoder_FilteredPercentage->decoder_filterperce]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'decoder_ErrorPercentage:0.0' [map decoder_ErrorPercentage->decoder_errorpercen]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Threading_ThreadCount:16' [map javalang_Threading_ThreadCount->ThreadCount]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_NonHeapMemoryUsage_used:23013632' [map javalang_Memory_NonHeapMemoryUsage_used->NonHeapmem_used]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_NonHeapMemoryUsage_max:136314880' [map javalang_Memory_NonHeapMemoryUsage_max->NonHeapmem_max]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_NonHeapMemoryUsage_init:24313856' [map javalang_Memory_NonHeapMemoryUsage_init->NonHeapmem_init]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_NonHeapMemoryUsage_committed:24313856' [map javalang_Memory_NonHeapMemoryUsage_committed->NonHeapmem_committe]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_HeapMemoryUsage_used:60610640' [map javalang_Memory_HeapMemoryUsage_used->Heapmem_used]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_HeapMemoryUsage_max:259522560' [map javalang_Memory_HeapMemoryUsage_max->Heapmem_max]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_HeapMemoryUsage_init:268435456' [map javalang_Memory_HeapMemoryUsage_init->Heapmem_init]
03/02/2015 11:05:20 AM - POLLER: Poller[0] Parsed MULTI output field 'javalang_Memory_HeapMemoryUsage_committed:259522560' [map javalang_Memory_HeapMemoryUsage_committed->Heapmem_committed]
03/02/2015 11:05:20 AM - CMDPHP: Poller[0] Host[6] SNMP: Host responded to SNMP
Now, when it comes to graphing the whole thing, cacti says:
03/02/2015 11:05:56 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1425204356' --end='1425290756' --title='server1 - Radius JMX Heap Memory Usage' --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/03/01 11\:05\:56 To 2015/03/02 11\:05\:56\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/usr/share/cacti/rra/server1_radius_466.rrd':'Heapmem_committed':AVERAGE DEF:b='/usr/share/cacti/rra/server1_radius_466.rrd':'Heapmem_used':AVERAGE DEF:c='/usr/share/cacti/rra/server1_radius_466.rrd':'Heapmem_init':AVERAGE DEF:d='/usr/share/cacti/rra/server1_radius_466.rrd':'Heapmem_max':AVERAGE AREA:a#D8ACE0FF:'Committed' GPRINTLAST:'Current\:%8.2lf %s' GPRINTAVERAGE:'Average\:%8.2lf %s' GPRINTMAX:'Maximum\:%8.2lf %s\n' AREA:b#2175D9FF:'Used' GPRINTLAST:' Current\:%8.2lf %s' GPRINTAVERAGE:'Average\:%8.2lf %s' GPRINTMAX:'Maximum\:%8.2lf %s\n' LINE1:c#00BBB4FF:'Init' GPRINT:c:LAST:' Current\:%8.2lf %s' GPRINT:c:AVERAGE:'Average\:%8.2lf %s' GPRINT:c:MAX:'Maximum\:%8.2lf %s\n' LINE1:d#FF0000FF:'Max' GPRINT:d:LAST:' Current\:%8.2lf %s' GPRINT:d:AVERAGE:'Average\:%8.2lf %s' GPRINT:d:MAX:'Maximum\:%8.2lf %s\n'
03/02/2015 11:05:56 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1425204356' --end='1425290756' --title='server1 - Radius JMX NonHeap Memory Usage' --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/03/01 11\:05\:56 To 2015/03/02 11\:05\:56\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/usr/share/cacti/rra/server1_radius_466.rrd':'NonHeapmem_committe':AVERAGE DEF:b='/usr/share/cacti/rra/server1_radius_466.rrd':'NonHeapmem_used':AVERAGE DEF:c='/usr/share/cacti/rra/server1_radius_466.rrd':'NonHeapmem_init':AVERAGE DEF:d='/usr/share/cacti/rra/server1_radius_466.rrd':'NonHeapmem_max':AVERAGE AREA:a#D8ACE0FF:'Committed' GPRINTLAST:'Current\:%8.2lf %s' GPRINTAVERAGE:'Average\:%8.2lf %s' GPRINTMAX:'Maximum\:%8.2lf %s\n' AREA:b#2175D9FF:'Used' GPRINTLAST:' Current\:%8.2lf %s' GPRINTAVERAGE:'Average\:%8.2lf %s' GPRINTMAX:'Maximum\:%8.2lf %s\n' LINE1:c#00BBB4FF:'Init' GPRINT:c:LAST:' Current\:%8.2lf %s' GPRINT:c:AVERAGE:'Average\:%8.2lf %s' GPRINT:c:MAX:'Maximum\:%8.2lf %s\n' LINE1:d#FF0000FF:'Max' GPRINT:d:LAST:' Current\:%8.2lf %s' GPRINT:d:AVERAGE:'Average\:%8.2lf %s' GPRINT:d:MAX:'Maximum\:%8.2lf %s\n'
03/02/2015 11:05:56 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1425204356' --end='1425290756' --title='server1 - Radius JMX Threads Count' --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/03/01 11\:05\:56 To 2015/03/02 11\:05\:56\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/usr/share/cacti/rra/server1_radius_466.rrd':'ThreadCount':AVERAGE AREA:a#0000FFFF:'Threads' GPRINTLAST:'Current\:%8.2lf %s' GPRINTAVERAGE:'Average\:%8.2lf %s' GPRINTMAX:'Maximum\:%8.2lf %s'
03/02/2015 11:05:53 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1425204353' --end='1425290753' --title='server1 - Radius decoder (JMX)' --base='1000' --height='120' --width='600' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/03/01 11\:05\:53 To 2015/03/02 11\:05\:53\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/usr/share/cacti/rra/server1_radius_466.rrd':'decoder_errorpercen':AVERAGE DEF:b='/usr/share/cacti/rra/server1_radius_466.rrd':'decoder_filterperce':AVERAGE DEF:c='/usr/share/cacti/rra/server1_radius_466.rrd':'decoder_requests':AVERAGE DEF:d='/usr/share/cacti/rra/server1_radius_466.rrd':'decoder_successperc':AVERAGE LINE1:a#000000FF:'Errors' GPRINTLAST:' Current\:%8.2lf %% %s' GPRINTAVERAGE:'Average\:%8.2lf %% %s' GPRINTMAX:'Maximum\:%8.2lf %% %s\n' LINE1:b#FF7D00FF:'Filtered requests' GPRINTLAST:' Current\:%8.2lf %% %s' GPRINTAVERAGE:'Average\:%8.2lf %% %s' GPRINTMAX:'Maximum\:%8.2lf %% %s\n' LINE1:c#FF00FFFF:'Requests' GPRINT:c:LAST:' Current\:%8.2lf %s' GPRINT:c:AVERAGE:'Average\:%8.2lf %s' GPRINT:c:MAX:'Maximum\:%8.2lf %s\n' LINE1:d#4444FFFF:'Successful requests' GPRINT:d:LAST:'Current\:%8.2lf %% %s' GPRINT:d:AVERAGE:'Average\:%8.2lf %% %s' GPRINT:d:MAX:'Maximum\:%8.2lf %% %s\n'
03/02/2015 11:05:53 AM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start='1425204353' --end='1425290753' --title='server1 - Radius userId (JMX)' --base='1000' --height='120' --width='600' --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/03/01 11\:05\:53 To 2015/03/02 11\:05\:53\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/usr/share/cacti/rra/server1_radius_466.rrd':'userid_addedpercent':AVERAGE DEF:b='/usr/share/cacti/rra/server1_radius_466.rrd':'userid_removedperce':AVERAGE DEF:c='/usr/share/cacti/rra/server1_radius_466.rrd':'decoder_requests':AVERAGE DEF:d='/usr/share/cacti/rra/server1_radius_466.rrd':'userid_updateerrper':AVERAGE DEF:e='/usr/share/cacti/rra/server1_radius_466.rrd':'userid_updatesuccpe':AVERAGE LINE1:a#000000FF:'Added items' GPRINTLAST:' Current\:%8.2lf %% %s' GPRINTAVERAGE:'Average\:%8.2lf %% %s' GPRINTMAX:'Maximum\:%8.2lf %% %s\n' LINE1:b#FF7D00FF:'Removed items'
I cannot see any problem, but these particular graphs are not getting updated.
Do you have any idea why this is happening?
Thanks.
-Bob
Graphs not updated, always nan
Moderators: Developers, Moderators
Re: Graphs not updated, always nan
Hello everyone.
Any idea on what the problem could be?
It's pretty weird that it is happening only for a specific input type (script/command) and working fine for the remaining script/commands that I have.
Do you think that the following line in the log file is causing the error?
03/02/2015 11:05:20 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
Thanks a lot.
Any idea on what the problem could be?
It's pretty weird that it is happening only for a specific input type (script/command) and working fine for the remaining script/commands that I have.
Do you think that the following line in the log file is causing the error?
03/02/2015 11:05:20 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
Thanks a lot.
Who is online
Users browsing this forum: No registered users and 4 guests