95th Percentile Based on Greater of In/Out Bound traffic.

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
Guest

95th Percentile Based on Greater of In/Out Bound traffic.

Post by Guest »

Hi, it seems the 95th percentile functionality is fairly new in Cacti, however, I would like to request a change to this function. Right now it seems that the 95 percentile is based on the sum of the inbound and outbound traffic. I would like to have the ability to change this from the sum to the greater of either inbound or outbound traffic. Alot of our customers stay with us because we don't sum up the bandwith and we have accomplished this with MRTG up to now. I like Cacti alot, but without this ability we can't really implement it for our entire network. I've looked at rrd_functions.php and I found the right place but I don't want to break it ;)

Thanks in advance,

Emi.
cwlab-admin
Posts: 15
Joined: Sat Jul 26, 2003 1:10 am
Location: Chicago, IL
Contact:

Post by cwlab-admin »

I solved this by creating a new graph template with just a few more items that are for the breakdown. here is a copy of the items in my new graph:

Item # 9 COMMENT: <HR> COMMENT AVERAGE
Item # 10 HRULE: |95:bits:0:total:2| HRULE AVERAGE FF0000
Item # 11 COMMENT: (|95:bits:6:total:2| mbit in+out)<HR> COMMENT AVERAGE
Item # 12 HRULE: |95:bits:0:current| HRULE AVERAGE FFF200
Item # 13 COMMENT: (|95:bits:3:current| kbit in)<HR> COMMENT AVERAGE
Item # 14 HRULE: |95:bits:0:current| HRULE AVERAGE A150AA
Item # 15 COMMENT: (|95:bits:3:current| kbit out)<HR> COMMENT AVERAGE

just be sure to link item pairs [12 & 13] , [14 & 15] to the correct data source to get the correct values.
absynth
Posts: 7
Joined: Mon Jan 05, 2004 8:07 am

Post by absynth »

cwlab-admin wrote:I solved this by creating a new graph template with just a few more items that are for the breakdown. here is a copy of the items in my new graph:

Item # 9 COMMENT: <HR> COMMENT AVERAGE
Item # 10 HRULE: |95:bits:0:total:2| HRULE AVERAGE FF0000
Item # 11 COMMENT: (|95:bits:6:total:2| mbit in+out)<HR> COMMENT AVERAGE
Item # 12 HRULE: |95:bits:0:current| HRULE AVERAGE FFF200
Item # 13 COMMENT: (|95:bits:3:current| kbit in)<HR> COMMENT AVERAGE
Item # 14 HRULE: |95:bits:0:current| HRULE AVERAGE A150AA
Item # 15 COMMENT: (|95:bits:3:current| kbit out)<HR> COMMENT AVERAGE

just be sure to link item pairs [12 & 13] , [14 & 15] to the correct data source to get the correct values.
Hm - that doesn't work for me. I duly selected "traffic_in" and "traffic_out" as the data sources for my graph, and yet the hrule is set to 0 and rrdtool bails out.

This is the source of the rrdtool output:

Code: Select all

 ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/home/absynth/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="3com 3300 #1 - Traffic - 101/Uplink" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/absynth/public_html/cacti/rra/3com_3300_1_traffic_in_201.rrd":traffic_in:AVERAGE \
DEF:b="/home/absynth/public_html/cacti/rra/3com_3300_1_traffic_in_201.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:3606965.69#FF0000:"95th Percentile"  \
HRULE:0#FF00FF:"95th in"  \
HRULE:0#FFC3C0:""  \
COMMENT:"(3.61 mbit 95th)" 
Any ideas?
I have looked into ninety_fifth_percentile(), but it really doesn't give me insight - too many arrays and nested function calls for me...
cwlab-admin
Posts: 15
Joined: Sat Jul 26, 2003 1:10 am
Location: Chicago, IL
Contact:

Post by cwlab-admin »

absynth wrote:
Hm - that doesn't work for me. I duly selected "traffic_in" and "traffic_out" as the data sources for my graph, and yet the hrule is set to 0 and rrdtool bails out.

This is the source of the rrdtool output:

Code: Select all

 ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/home/absynth/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="3com 3300 #1 - Traffic - 101/Uplink" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/home/absynth/public_html/cacti/rra/3com_3300_1_traffic_in_201.rrd":traffic_in:AVERAGE \
DEF:b="/home/absynth/public_html/cacti/rra/3com_3300_1_traffic_in_201.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:3606965.69#FF0000:"95th Percentile"  \
HRULE:0#FF00FF:"95th in"  \
HRULE:0#FFC3C0:""  \
COMMENT:"(3.61 mbit 95th)" 
Any ideas?
I have looked into ninety_fifth_percentile(), but it really doesn't give me insight - too many arrays and nested function calls for me...
Did you link your graph item #11 to just the inbound data source? and im assuming that graph item #12 is going to be 95th out, and that should be linked to the outbound data source.

I have this working in cacti .8.4 so I can provide a xml export if that would help.
absynth
Posts: 7
Joined: Mon Jan 05, 2004 8:07 am

Post by absynth »

cwlab-admin wrote: Did you link your graph item #11 to just the inbound data source? and im assuming that graph item #12 is going to be 95th out, and that should be linked to the outbound data source.
Well, I don't know how to link a graph item to more than one data source, so the answer would be yes.
cwlab-admin wrote:I have this working in cacti .8.4 so I can provide a xml export if that would help.
That would propably help a lot, thanks for your help.
cwlab-admin
Posts: 15
Joined: Sat Jul 26, 2003 1:10 am
Location: Chicago, IL
Contact:

Post by cwlab-admin »

<cacti>
<hash_0000000b1c19d0717ced97f5462a579b579728>
<name>Interface - Traffic (bits/sec, 95th Percentile Breakdown)</name>
<graph>
<t_title>on</t_title>
<title>|host_description| - Traffic</title>
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
<t_width></t_width>
<width>500</width>
<t_auto_scale></t_auto_scale>
<auto_scale>on</auto_scale>
<t_auto_scale_opts></t_auto_scale_opts>
<auto_scale_opts>2</auto_scale_opts>
<t_auto_scale_log></t_auto_scale_log>
<auto_scale_log></auto_scale_log>
<t_auto_scale_rigid></t_auto_scale_rigid>
<auto_scale_rigid>on</auto_scale_rigid>
<t_auto_padding></t_auto_padding>
<auto_padding>on</auto_padding>
<t_export></t_export>
<export>on</export>
<t_upper_limit></t_upper_limit>
<upper_limit>100</upper_limit>
<t_lower_limit></t_lower_limit>
<lower_limit>0</lower_limit>
<t_base_value></t_base_value>
<base_value>1000</base_value>
<t_unit_value></t_unit_value>
<unit_value></unit_value>
<t_unit_exponent_value></t_unit_exponent_value>
<unit_exponent_value>0</unit_exponent_value>
<t_vertical_label></t_vertical_label>
<vertical_label>bits per second</vertical_label>
</graph>
<items>
<hash_1000004a3bcd19b33835b08bed0438e284b45e>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>22</color_id>
<graph_type_id>7</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Inbound</text_format>
<hard_return></hard_return>
<sequence>1</sequence>
</hash_1000004a3bcd19b33835b08bed0438e284b45e>
<hash_1000001a6b2a3eaf11be01d3ac94696257e4b1>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>2</sequence>
</hash_1000001a6b2a3eaf11be01d3ac94696257e4b1>
<hash_100000f4a9cb1830b1b5b43aa6aeb91e9f4475>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>3</sequence>
</hash_100000f4a9cb1830b1b5b43aa6aeb91e9f4475>
<hash_10000037193631e914ed3d24cee5005e908876>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>4</sequence>
</hash_10000037193631e914ed3d24cee5005e908876>
<hash_1000004f4d623ce1c0630c81e61eeb49cf1d25>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>20</color_id>
<graph_type_id>4</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Outbound</text_format>
<hard_return></hard_return>
<sequence>5</sequence>
</hash_1000004f4d623ce1c0630c81e61eeb49cf1d25>
<hash_1000004b98ffae607037f106c10e3c2def75f2>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_1000004b98ffae607037f106c10e3c2def75f2>
<hash_100000ee7de160391ca1d8d5cc6c72d2fc74bc>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_100000ee7de160391ca1d8d5cc6c72d2fc74bc>
<hash_1000002d13ab5d4a7ba9525fcebd592c18bc66>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>hash_05000073f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>8</sequence>
</hash_1000002d13ab5d4a7ba9525fcebd592c18bc66>
<hash_1000004a6c3f1e5b8b5bd2905245d9ba609499>
<task_item_id>0</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format></text_format>
<hard_return>on</hard_return>
<sequence>9</sequence>
</hash_1000004a6c3f1e5b8b5bd2905245d9ba609499>
<hash_10000074c5689785d2a0bb2c770dad135f51e7>
<task_item_id>0</task_item_id>
<color_id>9</color_id>
<graph_type_id>2</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value>|95:bits:0:total:2|</value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th Percentile</text_format>
<hard_return></hard_return>
<sequence>10</sequence>
</hash_10000074c5689785d2a0bb2c770dad135f51e7>
<hash_10000045e7b95593e572bb567cc088ba7aed17>
<task_item_id>0</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>(|95:bits:6:total:2| mbit in+out)</text_format>
<hard_return>on</hard_return>
<sequence>11</sequence>
</hash_10000045e7b95593e572bb567cc088ba7aed17>
<hash_10000008414f81ad19cb782718c3cf41d64d91>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>25</color_id>
<graph_type_id>2</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value>|95:bits:0:current|</value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th Percentile</text_format>
<hard_return></hard_return>
<sequence>12</sequence>
</hash_10000008414f81ad19cb782718c3cf41d64d91>
<hash_1000007cf86bbde3e709ce77e0f6d5dd48676d>
<task_item_id>hash_0800002df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>(|95:bits:3:current| kbit in)</text_format>
<hard_return>on</hard_return>
<sequence>13</sequence>
</hash_1000007cf86bbde3e709ce77e0f6d5dd48676d>
<hash_100000e9e5452f8667da6cbd8d38ce8d09f567>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>56</color_id>
<graph_type_id>2</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value>|95:bits:0:current|</value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th Percentile</text_format>
<hard_return></hard_return>
<sequence>14</sequence>
</hash_100000e9e5452f8667da6cbd8d38ce8d09f567>
<hash_10000033fe7d730766e81f5ca36ba72d7c7958>
<task_item_id>hash_080000721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060000e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>(|95:bits:3:current| kbit out)</text_format>
<hard_return>on</hard_return>
<sequence>15</sequence>
</hash_10000033fe7d730766e81f5ca36ba72d7c7958>
</items>
<inputs>
<hash_0900000e19cd7f4fc2c70808c24eddcb90b643>
<name>Inbound Data Source</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000002d345f7ad7bd69eb389e13e4b7895643|hash_00000033d57aa596c82d87e4859d3fa89598f2|hash_000000a88fb938afac23468417dc0f2829eca0|hash_0000007b0eaeb1a5901dfd8544a127ac733a35|hash_00000008414f81ad19cb782718c3cf41d64d91|hash_0000007cf86bbde3e709ce77e0f6d5dd48676d</items>
</hash_0900000e19cd7f4fc2c70808c24eddcb90b643>
<hash_090000cef957d00a2f34b1c69835e2b9c6229d>
<name>Outbound Data Source</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000000056ac1dc48bf11197e3d0b5d27cce100|hash_00000042d96a2d82faa56a59523d07844350ef|hash_000000e1445cdbe72cd5d25de243bc666b2c54|hash_000000a2736290f78f106adbbea0c8b8295bd7|hash_000000e9e5452f8667da6cbd8d38ce8d09f567|hash_00000033fe7d730766e81f5ca36ba72d7c7958</items>
</hash_090000cef957d00a2f34b1c69835e2b9c6229d>
</inputs>
</hash_0000000b1c19d0717ced97f5462a579b579728>
<hash_0100006632e1e0b58a565c135d7ff90440c335>
<name>Interface - Traffic</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Traffic</name>
<data_input_id>hash_030000bf566c869ac6443b0c75d1c32b5a350e</data_input_id>
<t_rra_id></t_rra_id>
<t_rrd_step></t_rrd_step>
<rrd_step>300</rrd_step>
<t_active></t_active>
<active>on</active>
<rra_items>hash_150000c21df5178e5c955013591239eb0afd46|hash_1500000d9c0af8b8acdc7807943937b3208e29|hash_1500006fc2d038fb42950138b0ce3e9874cc60|hash_150000e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_0800002df25c57022b0c7e7d0be4c035ada1a0>
<t_data_source_name></t_data_source_name>
<data_source_name>traffic_in</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum>on</t_rrd_maximum>
<rrd_maximum>100000000</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>2</data_source_type_id>
<t_rrd_heartbeat></t_rrd_heartbeat>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id></t_data_input_field_id>
<data_input_field_id>0</data_input_field_id>
</hash_0800002df25c57022b0c7e7d0be4c035ada1a0>
<hash_080000721c0794526d1ac1c359f27dc56faa49>
<t_data_source_name></t_data_source_name>
<data_source_name>traffic_out</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum>on</t_rrd_maximum>
<rrd_maximum>100000000</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>2</data_source_type_id>
<t_rrd_heartbeat></t_rrd_heartbeat>
<rrd_heartbeat>600</rrd_heartbeat>
<t_data_input_field_id></t_data_input_field_id>
<data_input_field_id>0</data_input_field_id>
</hash_080000721c0794526d1ac1c359f27dc56faa49>
</items>
<data>
<item_000>
<data_input_field_id>hash_070000e6deda7be0f391399c5130e7c4a48b28</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070000cbbe5c1ddfb264a6e5d509ce1c78c95f</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700006027a919c7c7731fbe095b6f53ab127b</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_002>
</data>
</hash_0100006632e1e0b58a565c135d7ff90440c335>
<hash_030000bf566c869ac6443b0c75d1c32b5a350e>
<name>Get SNMP Data (Indexed)</name>
<type_id>3</type_id>
<input_string></input_string>
<fields>
<hash_070000617cdc8a230615e59f06f361ef6e7728>
<name>SNMP IP Address</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>hostname</type_code>
<input_output>in</input_output>
<data_name>management_ip</data_name>
</hash_070000617cdc8a230615e59f06f361ef6e7728>
<hash_070000acb449d1451e8a2a655c2c99d31142c7>
<name>SNMP Community</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>snmp_community</type_code>
<input_output>in</input_output>
<data_name>snmp_community</data_name>
</hash_070000acb449d1451e8a2a655c2c99d31142c7>
<hash_070000f4facc5e2ca7ebee621f09bc6d9fc792>
<name>SNMP Username (v3)</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls>on</allow_nulls>
<type_code>snmp_username</type_code>
<input_output>in</input_output>
<data_name>snmp_username</data_name>
</hash_070000f4facc5e2ca7ebee621f09bc6d9fc792>
<hash_0700001cc1493a6781af2c478fa4de971531cf>
<name>SNMP Password (v3)</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls>on</allow_nulls>
<type_code>snmp_password</type_code>
<input_output>in</input_output>
<data_name>snmp_password</data_name>
</hash_0700001cc1493a6781af2c478fa4de971531cf>
<hash_070000b5c23f246559df38662c255f4aa21d6b>
<name>SNMP Version (1, 2, or 3)</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>snmp_version</type_code>
<input_output>in</input_output>
<data_name>snmp_version</data_name>
</hash_070000b5c23f246559df38662c255f4aa21d6b>
<hash_0700006027a919c7c7731fbe095b6f53ab127b>
<name>Index Type</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>index_type</type_code>
<input_output>in</input_output>
<data_name>index_type</data_name>
</hash_0700006027a919c7c7731fbe095b6f53ab127b>
<hash_070000cbbe5c1ddfb264a6e5d509ce1c78c95f>
<name>Index Value</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>index_value</type_code>
<input_output>in</input_output>
<data_name>index_value</data_name>
</hash_070000cbbe5c1ddfb264a6e5d509ce1c78c95f>
<hash_070000e6deda7be0f391399c5130e7c4a48b28>
<name>Output Type ID</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>output_type</type_code>
<input_output>in</input_output>
<data_name>output_type</data_name>
</hash_070000e6deda7be0f391399c5130e7c4a48b28>
</fields>
</hash_030000bf566c869ac6443b0c75d1c32b5a350e>
<hash_150000c21df5178e5c955013591239eb0afd46>
<name>Daily (5 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>600</rows>
<timespan>86400</timespan>
<cf_items>1|3</cf_items>
</hash_150000c21df5178e5c955013591239eb0afd46>
<hash_1500000d9c0af8b8acdc7807943937b3208e29>
<name>Weekly (30 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>4200</rows>
<timespan>604800</timespan>
<cf_items>1|3</cf_items>
</hash_1500000d9c0af8b8acdc7807943937b3208e29>
<hash_1500006fc2d038fb42950138b0ce3e9874cc60>
<name>Monthly (2 Hour Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>18000</rows>
<timespan>2678400</timespan>
<cf_items>1|3</cf_items>
</hash_1500006fc2d038fb42950138b0ce3e9874cc60>
<hash_150000e36f3adb9f152adfa5dc50fd2b23337e>
<name>Yearly (1 Day Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>288</steps>
<rows>797</rows>
<timespan>33053184</timespan>
<cf_items>1|3</cf_items>
</hash_150000e36f3adb9f152adfa5dc50fd2b23337e>
<hash_05000073f95f8b77b5508157d64047342c421e>
<name>Turn Bytes into Bits</name>
<items>
<hash_1400009bbf6b792507bb9bb17d2af0970f9be9>
<sequence>1</sequence>
<type>4</type>
<value>CURRENT_DATA_SOURCE</value>
</hash_1400009bbf6b792507bb9bb17d2af0970f9be9>
<hash_140000a4b8eb2c3bf4920a3ef571a7a004be53>
<sequence>2</sequence>
<type>6</type>
<value>8</value>
</hash_140000a4b8eb2c3bf4920a3ef571a7a004be53>
<hash_140000caa4e023ac2d7b1c4b4c8c4adfd55dfe>
<sequence>3</sequence>
<type>2</type>
<value>3</value>
</hash_140000caa4e023ac2d7b1c4b4c8c4adfd55dfe>
</items>
</hash_05000073f95f8b77b5508157d64047342c421e>
<hash_060000e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060000e9c43831e54eca8069317a2ce8c6f751>
</cacti>
absynth
Posts: 7
Joined: Mon Jan 05, 2004 8:07 am

Post by absynth »

Well, that does not help much either. I suspect I'm going very wrong somewhere.

What I did was the following:
1. Import the Graph template with the "Import Template" menu item.
2. Edit the Graph template and look at the items:
- 10 and 11: Data Source: none
- 12 and 13: Data Source: traffic_in
- 14 and 15: Data Source: traffic_out
3. Check input and output data source:
- items 1-4 and 12+13 are linked to the inbound data source
- items 5-8 and 14+15 are linked to the outbound data source^

Still, I get this output:

Code: Select all

 ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/home/absynth/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="3com 3300 #1 - Traffic - 101/Uplink" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:0#FF0000:"95th Percentile"  \
COMMENT:"(0 mbit in+out)\n"  \
HRULE:0#FFF200:"95th Percentile"  \
COMMENT:"(0 kbit in)\n"  \
HRULE:0#A150AA:"95th Percentile"  \
COMMENT:"(0 kbit out)\n" 
Seems like both DEFs are missing. Did I oversee anything?
cwlab-admin
Posts: 15
Joined: Sat Jul 26, 2003 1:10 am
Location: Chicago, IL
Contact:

Post by cwlab-admin »

absynth wrote:Well, that does not help much either. I suspect I'm going very wrong somewhere.

What I did was the following:
1. Import the Graph template with the "Import Template" menu item.
2. Edit the Graph template and look at the items:
- 10 and 11: Data Source: none
- 12 and 13: Data Source: traffic_in
- 14 and 15: Data Source: traffic_out
3. Check input and output data source:
- items 1-4 and 12+13 are linked to the inbound data source
- items 5-8 and 14+15 are linked to the outbound data source^

Still, I get this output:

Code: Select all

 ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source

/home/absynth/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="3com 3300 #1 - Traffic - 101/Uplink" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \

GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"  \
COMMENT:"\n"  \
HRULE:0#FF0000:"95th Percentile"  \
COMMENT:"(0 mbit in+out)\n"  \
HRULE:0#FFF200:"95th Percentile"  \
COMMENT:"(0 kbit in)\n"  \
HRULE:0#A150AA:"95th Percentile"  \
COMMENT:"(0 kbit out)\n" 
Seems like both DEFs are missing. Did I oversee anything?
When you go into "Graph Management" and select a graph with this template, are the "Graph Item Inputs" defined ?
absynth
Posts: 7
Joined: Mon Jan 05, 2004 8:07 am

Post by absynth »

cwlab-admin wrote: When you go into "Graph Management" and select a graph with this template, are the "Graph Item Inputs" defined ?
D'oh. That fixed it. Thanks a lot :)
Now, there's only one thing I'm missing: Is it possible to conditionally display only the line with the greater value? Have you (or someone else) ever done that?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

This has been added and is included in 0.8.5. See the new "max" type:

http://www.raxnet.net/downloads/cacti/d ... _VARIABLES

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests