Not all values are graphed.

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

Moderators: Developers, Moderators

Post Reply
Cornmeister
Posts: 17
Joined: Tue Aug 26, 2008 1:10 am

Not all values are graphed.

Post by Cornmeister »

Hi all,

I made a little Perl script,
the output is quite simple, just 4 values:

Code: Select all

BitrateInstant:45926221 BitrateMin:34936386 BitrateMax:58646912 BitrateAvg:45079603
I made a data input method, with 4 output fields, exactly the same as the script output.

I also made a graph Template and a data source.
As shown in the attached graph example, only one item is graphed, instead of the four.

The cacti log doesn't show any errors, the script output seems ok.

my cacti version is 0.8.7b
Attachments
graph output example
graph output example
graph.jpg (28.67 KiB) Viewed 1269 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

cacti 0.8.7e is the latest.

Did you follow http://docs.cacti.net/manual:087:3a_adv ... ut_methods ?

In cacti.log with debugging mode, do you see all the script output being mapped to all the data input / template fields?
Cornmeister
Posts: 17
Joined: Tue Aug 26, 2008 1:10 am

Post by Cornmeister »

BSOD2600 wrote:cacti 0.8.7e is the latest.

Did you follow http://docs.cacti.net/manual:087:3a_adv ... ut_methods ?

In cacti.log with debugging mode, do you see all the script output being mapped to all the data input / template fields?
I followed the manual, and it looks like all mappings are ok:

Code: Select all

07/13/2009 09:36:30 AM - POLLER: Poller[0] Parsed MULTI output field 'BitrateAvg:106002954' [map BitrateAvg->BitrateAvg]  
07/13/2009 09:36:30 AM - POLLER: Poller[0] Parsed MULTI output field 'BitrateMax:133967920' [map BitrateMax->BitrateMax]  
07/13/2009 09:36:30 AM - POLLER: Poller[0] Parsed MULTI output field 'BitrateMin:58777305' [map BitrateMin->BitrateMin]  
07/13/2009 09:36:30 AM - POLLER: Poller[0] Parsed MULTI output field 'BitrateInstant:120059117' [map BitrateInstant->BitrateInstant]  
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright, good. Next, is the rrd file getting updated with all of those values?
Cornmeister
Posts: 17
Joined: Tue Aug 26, 2008 1:10 am

Post by Cornmeister »

BSOD2600 wrote:Alright, good. Next, is the rrd file getting updated with all of those values?
What's the easiest way to check it out ? :)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Same way you saw the mapping -- cacti.log in debug mode. Track the DS[##] for your script -- the rrd file should have that DS ## in it too.
Cornmeister
Posts: 17
Joined: Tue Aug 26, 2008 1:10 am

Post by Cornmeister »

BSOD2600 wrote:Same way you saw the mapping -- cacti.log in debug mode. Track the DS[##] for your script -- the rrd file should have that DS ## in it too.
This is the part of the log I was able to find:

Code: Select all


07/14/2009 10:11:08 AM - CACTID: Poller[0] Host[0] DS[36193] SCRIPT: perl /usr/share/cacti/site/scripts/vodbw.pl, output: BitrateInstant:76614037 BitrateMin:46136299 BitrateMax:117503313 BitrateAvg:86080661
07/14/2009 10:11:26 AM - CACTID: Poller[0] DEBUG: MySQL Insert ID '2094': 'INSERT INTO poller_output (local_data_id, rrd_name, time, output) VALUES (36193,'','2009-07-14 10:10:01','BitrateInstant:76614037 BitrateMin:46136299 BitrateMax:117503313 BitrateAvg:86080661'),(35429,'streams','2009-07-14 10:10:01','22')'
07/14/2009 10:11:27 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select     data_template_rrd.data_source_name,     data_input_fields.data_name     from (data_template_rrd,data_input_fields)     where data_template_rrd.data_input_field_id=data_input_fields.id     and data_template_rrd.local_data_id=36193"
07/14/2009 10:11:27 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='36193' and rrd_name='' and time='2009-07-14 10:10:01'"
07/14/2009 10:11:27 AM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "select thold_data.cdef, thold_data.rra_id, thold_data.data_id, thold_data.lastread, thold_data.oldvalue, data_template_rrd.data_source_name as name, data_template_rrd.data_source_type_id from thold_data       LEFT JOIN data_template_rrd on (data_template_rrd.id = thold_data.data_id)       WHERE data_template_rrd.data_source_name != '' AND thold_data.rra_id = 35429 OR thold_data.rra_id = 36193"
07/14/2009 10:11:27 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/share/cacti/site/var/lib/cacti/rra/bitratemax_36193.rrd --template BitrateInstant:BitrateMin:BitrateMax:BitrateAvg 1247559001:76614037:46136299:117503313:86080661
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Alright that portion of the log looks ok too.

Please post the graph debugging output (should've had you do this first).
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests