[Solved] Read multiple data from file

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

Moderators: Developers, Moderators

Post Reply
frenchviking
Posts: 3
Joined: Thu Nov 21, 2013 10:40 am

[Solved] Read multiple data from file

Post by frenchviking »

Hello,

I have a script that generates data to a flat text file :

Code: Select all

ping:123.424 download:6.78 upload:0.69
Whereas the data seems correctly gathered :
11/10/2015 11:18:31 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool graph - --imgformat=PNG --start=-60 --end=-5 --title="Sequoia - Speedtest" --base=1000 --height=240 --width=1000 --x-grid SECOND:10:MINUTE:1:SECOND:10:0:%M:%S --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/volume1/web/cacti/plugins/realtime/cache/realtime_22_5.rrd":ping:AVERAGE DEF:b="/volume1/web/cacti/plugins/realtime/cache/realtime_21_5.rrd":download:AVERAGE DEF:c="/volume1/web/cacti/plugins/realtime/cache/realtime_23_5.rrd":upload:AVERAGE LINE1:a#FF0000FF:"" AREA:b#00FF00FF:"" AREA:c#0000FFFF:"" COMMENT:"Download" GPRINT:b:MIN:"Min\: %8.2lf %s" GPRINT:b:AVERAGE:"Avg\: %8.2lf %s" GPRINT:b:MAX:"Max\: %8.2lf %s" GPRINT:b:LAST:"Last\: %8.2lf %s\n" COMMENT:"Upload" GPRINT:c:MIN:"Min\: %8.2lf %s" GPRINT:c:AVERAGE:"Avg\: %8.2lf %s" GPRINT:c:MAX:"Max\: %8.2lf %s" GPRINT:c:LAST:"Last\: %8.2lf %s\n" COMMENT:"Ping" GPRINT:a:MIN:"Min\: %8.2lf %s" GPRINT:a:AVERAGE:"Avg%8.2lf %s" GPRINT:a:MAX:"Max\: %8.2lf %s" GPRINT:a:LAST:"Last\: %8.2lf %s"
11/10/2015 11:18:31 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool info /volume1/web/cacti/rra/sequoia_ping_22.rrd
11/10/2015 11:18:31 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool info /volume1/web/cacti/rra/sequoia_download_21.rrd
11/10/2015 11:18:31 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_21_5.rrd --template download 1447150711:6.78
11/10/2015 11:18:31 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_22_5.rrd --template ping 1447150711:123.424
11/10/2015 11:18:31 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_23_5.rrd --template upload 1447150711:0.69
11/10/2015 11:18:25 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool graph - --imgformat=PNG --start=-60 --end=-5 --title="Sequoia - Speedtest" --base=1000 --height=240 --width=1000 --x-grid SECOND:10:MINUTE:1:SECOND:10:0:%M:%S --alt-autoscale-max --lower-limit=0 --vertical-label="" --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/volume1/web/cacti/plugins/realtime/cache/realtime_22_5.rrd":ping:AVERAGE DEF:b="/volume1/web/cacti/plugins/realtime/cache/realtime_21_5.rrd":download:AVERAGE DEF:c="/volume1/web/cacti/plugins/realtime/cache/realtime_23_5.rrd":upload:AVERAGE LINE1:a#FF0000FF:"" AREA:b#00FF00FF:"" AREA:c#0000FFFF:"" COMMENT:"Download" GPRINT:b:MIN:"Min\: %8.2lf %s" GPRINT:b:AVERAGE:"Avg\: %8.2lf %s" GPRINT:b:MAX:"Max\: %8.2lf %s" GPRINT:b:LAST:"Last\: %8.2lf %s\n" COMMENT:"Upload" GPRINT:c:MIN:"Min\: %8.2lf %s" GPRINT:c:AVERAGE:"Avg\: %8.2lf %s" GPRINT:c:MAX:"Max\: %8.2lf %s" GPRINT:c:LAST:"Last\: %8.2lf %s\n" COMMENT:"Ping" GPRINT:a:MIN:"Min\: %8.2lf %s" GPRINT:a:AVERAGE:"Avg%8.2lf %s" GPRINT:a:MAX:"Max\: %8.2lf %s" GPRINT:a:LAST:"Last\: %8.2lf %s"
11/10/2015 11:18:25 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool info /volume1/web/cacti/rra/sequoia_ping_22.rrd
11/10/2015 11:18:25 AM - WEBLOG: Poller[0] CACTI2RRD: /opt/bin/rrdtool info /volume1/web/cacti/rra/sequoia_download_21.rrd
11/10/2015 11:18:25 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_21_5.rrd --template download 1447150705:6.78
11/10/2015 11:18:25 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_22_5.rrd --template ping 1447150705:123.424
11/10/2015 11:18:25 AM - POLLER: Poller[0] CACTI2RRD: /opt/bin/rrdtool update /volume1/web/cacti/plugins/realtime/cache/realtime_23_5.rrd --template upload 1447150705:0.69
My graph are not completely updated an only the Ping data is updated (see the attached image). I have checked my data templates, they are all configured the same way, internal data source name & output field apart of course.

Thank you for your help.
Attachments
sequoia.JPG
sequoia.JPG (62.69 KiB) Viewed 513 times
Last edited by frenchviking on Tue Nov 10, 2015 5:37 am, edited 1 time in total.
frenchviking
Posts: 3
Joined: Thu Nov 21, 2013 10:40 am

Re: Read multiple data from file

Post by frenchviking »

Alright, plugin my brain in. Forgot to add all my data sources to my data template. Sorry !
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests