Seperating 95th percentile In and Out
Moderators: Developers, Moderators
Seperating 95th percentile In and Out
I want to post this because i have seen some other users ask for it too and the template ion the forum for this doesnt seem to work on the latest cacti. I am trying to seperate out the 95th percentile in and out. (Cacti adds them together by default). This is because our bandwidth provider charges us on the 95th % of the highest number (its always out for us) so trying to find a way to match up to what they are billing us for. Anyhelp is appreciated. Thanks
I figured i would provide the graph template for anyone else who was looking to do this. It provides 95% for incomming / outgoing & total.
- Attachments
-
- cacti_graph_template_interface_traffic_bitssec_95th_percentile_in_out.xml
- (18.3 KiB) Downloaded 315 times
Hi,
First of all, I'm using Cacti 0.86c.
Now, I would like to use this template but I don't really know how to proceed. I tried to import the template using the functionnality provided on the web interface. But this doesn't work, neither using the file import, neither pasting the code.
In both case, I get : "Error: XML parse error.".
Help will be appreciated.
First of all, I'm using Cacti 0.86c.
Now, I would like to use this template but I don't really know how to proceed. I tried to import the template using the functionnality provided on the web interface. But this doesn't work, neither using the file import, neither pasting the code.
In both case, I get : "Error: XML parse error.".
Help will be appreciated.
the code's there.....
....but you have to "view source" bercause your browser is tryng to parse it.
...but here's the code anyway:
(nice work amentges)
...but here's the code anyway:
(nice work amentges)
Code: Select all
<cacti>
<hash_000006e977133f2b1c58965c30d8a312d50318>
<name>Interface - Traffic (bits/sec, 95th Percentile) In & Out</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></unit_exponent_value>
<t_vertical_label></t_vertical_label>
<vertical_label>bits per second</vertical_label>
</graph>
<items>
<hash_100006aa0f3d9abbe268ff672ec0627aeb7630>
<task_item_id>hash_0800062df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>00CF00</color_id>
<graph_type_id>7</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Inbound</text_format>
<hard_return></hard_return>
<sequence>1</sequence>
</hash_100006aa0f3d9abbe268ff672ec0627aeb7630>
<hash_10000631eceaa22d366574c16d4c84dbc208ea>
<task_item_id>hash_0800062df25c57022b0c7e7d0be4c035ada1a0</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>2</sequence>
</hash_10000631eceaa22d366574c16d4c84dbc208ea>
<hash_100006e3990919c11fe45e48a44b1438df811f>
<task_item_id>hash_0800062df25c57022b0c7e7d0be4c035ada1a0</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>3</sequence>
</hash_100006e3990919c11fe45e48a44b1438df811f>
<hash_1000062a439c807ecf2f7cdc2331b00651267d>
<task_item_id>hash_0800062df25c57022b0c7e7d0be4c035ada1a0</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return></hard_return>
<sequence>4</sequence>
</hash_1000062a439c807ecf2f7cdc2331b00651267d>
<hash_1000069a5d19358f44c43f3cc81d797d4f16d2>
<task_item_id>hash_0800062df25c57022b0c7e7d0be4c035ada1a0</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value>5</value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th: |95:bits:6:current:2|M</text_format>
<hard_return>on</hard_return>
<sequence>5</sequence>
</hash_1000069a5d19358f44c43f3cc81d797d4f16d2>
<hash_100006e3869f4a8f9994585da22f5b9a6f320b>
<task_item_id>hash_080006721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>002A97</color_id>
<graph_type_id>4</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Outbound</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_100006e3869f4a8f9994585da22f5b9a6f320b>
<hash_1000063646e19995e0689e6b0b59fedb582fb7>
<task_item_id>hash_080006721c0794526d1ac1c359f27dc56faa49</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_1000063646e19995e0689e6b0b59fedb582fb7>
<hash_10000687e00960bca58bc0cbfee0659c8499af>
<task_item_id>hash_080006721c0794526d1ac1c359f27dc56faa49</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>8</sequence>
</hash_10000687e00960bca58bc0cbfee0659c8499af>
<hash_1000065fece96d5a7de57a9a50eaf2039a3cff>
<task_item_id>hash_080006721c0794526d1ac1c359f27dc56faa49</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_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return></hard_return>
<sequence>9</sequence>
</hash_1000065fece96d5a7de57a9a50eaf2039a3cff>
<hash_1000062fe7adbac2815154e97e5a0bea5cbff8>
<task_item_id>hash_080006721c0794526d1ac1c359f27dc56faa49</task_item_id>
<color_id>0</color_id>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>hash_05000673f95f8b77b5508157d64047342c421e</cdef_id>
<value></value>
<gprint_id>hash_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th: |95:bits:6:current:2|M</text_format>
<hard_return>on</hard_return>
<sequence>10</sequence>
</hash_1000062fe7adbac2815154e97e5a0bea5cbff8>
<hash_100006c80648c78a0c57c7b1a3dfba7c047ed7>
<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_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format></text_format>
<hard_return>on</hard_return>
<sequence>11</sequence>
</hash_100006c80648c78a0c57c7b1a3dfba7c047ed7>
<hash_100006ad103ca947ff76b4998f622a6ddb447f>
<task_item_id>0</task_item_id>
<color_id>FF0000</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_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>95th Percentile</text_format>
<hard_return></hard_return>
<sequence>12</sequence>
</hash_100006ad103ca947ff76b4998f622a6ddb447f>
<hash_100006e5e16f90db875b16668a319488eb938f>
<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_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>(in+out) |95:bits:6:total:2|M</text_format>
<hard_return></hard_return>
<sequence>13</sequence>
</hash_100006e5e16f90db875b16668a319488eb938f>
<hash_10000679ee7ebb5eb988fbc8e305dbf3fe94f9>
<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_060006e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Total Transfer: |sum:auto:total:2:auto|</text_format>
<hard_return></hard_return>
<sequence>14</sequence>
</hash_10000679ee7ebb5eb988fbc8e305dbf3fe94f9>
</items>
<inputs>
<hash_09000637cff1f167b7dc3ac8fee9731f05f939>
<name>Outbound Data Source</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_00000659eb77fd07c0ad584386c267174d6d4d|hash_000006d7178577f1b6d9a2c11cbbfb4ce40f1e|hash_00000682452b41e3536a0615f027e93bd8e007|hash_000006bf230a266802d03be720ad03871efba0|hash_00000634943c4c36b7817ad398ab3bce8d908d|hash_000006f0eabaa4a9187dce1cacddb51a9daadc</items>
</hash_09000637cff1f167b7dc3ac8fee9731f05f939>
<hash_090006c450d77ae2a0d5c70285a11d08d87ca0>
<name>Inbound Data Source</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_00000614c90a413c9a36544d398e708416fd8c|hash_0000061bf74e286c5ca691eb6ed5351a02bb0f|hash_0000067ee2fcb5aae2143d7c4947bba069234f|hash_000006785cca5eb8b2b77d97acc85389a83eef|hash_0000062401060d9596c5a2ab4232a9ecda9922|hash_0000061f3034bc9ea44871be813e2ba8443494</items>
</hash_090006c450d77ae2a0d5c70285a11d08d87ca0>
</inputs>
</hash_000006e977133f2b1c58965c30d8a312d50318>
<hash_0100066632e1e0b58a565c135d7ff90440c335>
<name>Interface - Traffic</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Traffic</name>
<data_input_id>hash_030006bf566c869ac6443b0c75d1c32b5a350e</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_150006c21df5178e5c955013591239eb0afd46|hash_1500060d9c0af8b8acdc7807943937b3208e29|hash_1500066fc2d038fb42950138b0ce3e9874cc60|hash_150006e36f3adb9f152adfa5dc50fd2b23337e|hash_150006380ac7e2021de7bc67314eb9dfd69cee|hash_150006fc20734b3839f644ccbb5e7a1f53752b</rra_items>
</ds>
<items>
<hash_0800062df25c57022b0c7e7d0be4c035ada1a0>
<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_0800062df25c57022b0c7e7d0be4c035ada1a0>
<hash_080006721c0794526d1ac1c359f27dc56faa49>
<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_080006721c0794526d1ac1c359f27dc56faa49>
</items>
<data>
<item_000>
<data_input_field_id>hash_070006f4facc5e2ca7ebee621f09bc6d9fc792</data_input_field_id>
<t_value></t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070006acb449d1451e8a2a655c2c99d31142c7</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_070006617cdc8a230615e59f06f361ef6e7728</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_0700061cc1493a6781af2c478fa4de971531cf</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_070006b5c23f246559df38662c255f4aa21d6b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_0700066027a919c7c7731fbe095b6f53ab127b</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_005>
<item_006>
<data_input_field_id>hash_070006cbbe5c1ddfb264a6e5d509ce1c78c95f</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_006>
<item_007>
<data_input_field_id>hash_070006e6deda7be0f391399c5130e7c4a48b28</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_007>
</data>
</hash_0100066632e1e0b58a565c135d7ff90440c335>
<hash_030006bf566c869ac6443b0c75d1c32b5a350e>
<name>Get SNMP Data (Indexed)</name>
<type_id>3</type_id>
<input_string></input_string>
<fields>
<hash_070006617cdc8a230615e59f06f361ef6e7728>
<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_070006617cdc8a230615e59f06f361ef6e7728>
<hash_070006acb449d1451e8a2a655c2c99d31142c7>
<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_070006acb449d1451e8a2a655c2c99d31142c7>
<hash_070006f4facc5e2ca7ebee621f09bc6d9fc792>
<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_070006f4facc5e2ca7ebee621f09bc6d9fc792>
<hash_0700061cc1493a6781af2c478fa4de971531cf>
<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_0700061cc1493a6781af2c478fa4de971531cf>
<hash_070006b5c23f246559df38662c255f4aa21d6b>
<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_070006b5c23f246559df38662c255f4aa21d6b>
<hash_0700066027a919c7c7731fbe095b6f53ab127b>
<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_0700066027a919c7c7731fbe095b6f53ab127b>
<hash_070006cbbe5c1ddfb264a6e5d509ce1c78c95f>
<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_070006cbbe5c1ddfb264a6e5d509ce1c78c95f>
<hash_070006e6deda7be0f391399c5130e7c4a48b28>
<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_070006e6deda7be0f391399c5130e7c4a48b28>
</fields>
</hash_030006bf566c869ac6443b0c75d1c32b5a350e>
<hash_150006c21df5178e5c955013591239eb0afd46>
<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|4</cf_items>
</hash_150006c21df5178e5c955013591239eb0afd46>
<hash_1500060d9c0af8b8acdc7807943937b3208e29>
<name>Weekly (30 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>6</steps>
<rows>700</rows>
<timespan>604800</timespan>
<cf_items>1|3|4</cf_items>
</hash_1500060d9c0af8b8acdc7807943937b3208e29>
<hash_1500066fc2d038fb42950138b0ce3e9874cc60>
<name>Monthly (2 Hour Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>24</steps>
<rows>775</rows>
<timespan>2678400</timespan>
<cf_items>1|3|4</cf_items>
</hash_1500066fc2d038fb42950138b0ce3e9874cc60>
<hash_150006e36f3adb9f152adfa5dc50fd2b23337e>
<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|4</cf_items>
</hash_150006e36f3adb9f152adfa5dc50fd2b23337e>
<hash_150006380ac7e2021de7bc67314eb9dfd69cee>
<name>Weekly (5 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>2016</rows>
<timespan>604800</timespan>
<cf_items></cf_items>
</hash_150006380ac7e2021de7bc67314eb9dfd69cee>
<hash_150006fc20734b3839f644ccbb5e7a1f53752b>
<name>Monthly (5 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>8928</rows>
<timespan>2678400</timespan>
<cf_items>1|3|4</cf_items>
</hash_150006fc20734b3839f644ccbb5e7a1f53752b>
<hash_05000673f95f8b77b5508157d64047342c421e>
<name>Turn Bytes into Bits</name>
<items>
<hash_1400069bbf6b792507bb9bb17d2af0970f9be9>
<sequence>1</sequence>
<type>4</type>
<value>CURRENT_DATA_SOURCE</value>
</hash_1400069bbf6b792507bb9bb17d2af0970f9be9>
<hash_140006a4b8eb2c3bf4920a3ef571a7a004be53>
<sequence>2</sequence>
<type>6</type>
<value>8</value>
</hash_140006a4b8eb2c3bf4920a3ef571a7a004be53>
<hash_140006caa4e023ac2d7b1c4b4c8c4adfd55dfe>
<sequence>3</sequence>
<type>2</type>
<value>3</value>
</hash_140006caa4e023ac2d7b1c4b4c8c4adfd55dfe>
</items>
</hash_05000673f95f8b77b5508157d64047342c421e>
<hash_060006e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf%s</gprint_text>
</hash_060006e9c43831e54eca8069317a2ce8c6f751>
</cacti>
Who is online
Users browsing this forum: No registered users and 3 guests