haproxy/admin/netsnmp-perl/cacti_data_query_haproxy_backends.xml

751 lines
30 KiB
XML
Raw Normal View History

[CONTRIB] add templates for Cacti. Hi, I've attached the templates I've built for monitoring backends and frontends of haproxy. To install these, you will need to copy the XML files from the contrib/ directory of the haproxy distribution into a directory that Cacti can reach, and edit the Data Queries "HaProxy Backends" and "HAProxy Frontends" accordingly (the "XML Path" field. It's also dependant on having a version of net-snmp that supports embedded Perl, and including the "perl do 'path_to_haproxy.pl';" directive in your snmpd.conf file. As for what is created: - For the devices, you have two new data queries to choose from, they can be added from the Devices page for each device, at the very end in the drop-down box, then click "Add". The data queries are called "HaProxy Backends" and "HAProxy Frontends". - From "HaProxy Backends": in the new graphs page, you can choose which backend to graph, and create one of two graphs: - Haproxy backend traffic: ingress and egress bytes. - Haproxy backend sessions: total sessions with _reponse_ errors. - From "HAProxy Frontends": in the new graphs page again, you can choose which frontend to graph, which will include aggregated data for the backends behind it, obviously. You can create one of two graphs: - Haproxy frontend traffic: ingress and egress bytes. - Haproxy frontend sessions: total sessions with _request_ errors. In the graphs and data sources, limits are set to reasonably high values to support up to nearly 10G traffic, and up to 10000 concurrent connections. / Matt (cherry picked from commit f63090f2e85cdb7448071cdceb2eb5fabd2b9320)
2010-10-22 15:08:48 +00:00
<cacti>
<hash_040013d1dd43e3e5cee941860ea277826c4fe2>
<name>HaProxy Backends</name>
<description></description>
<xml_path>&lt;path_cacti&gt;/resource/snmp_queries/haproxy_backend.xml</xml_path>
<data_input_id>hash_030013bf566c869ac6443b0c75d1c32b5a350e</data_input_id>
<graphs>
<hash_1100134d2954fa52f51ed186916f2cf624a8b9>
<name>HAProxy Backend Sessions</name>
<graph_template_id>hash_000013cdbf9accfcd57d9e0a7c97896313ddee</graph_template_id>
<rrd>
<item_000>
<snmp_field_name>beSTot</snmp_field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<data_template_rrd_id>hash_080013230e04055a4228154123e74c6586d435</data_template_rrd_id>
</item_000>
<item_001>
<snmp_field_name>beEResp</snmp_field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<data_template_rrd_id>hash_080013088549c8d7e8cdc80f19bae4d78dc296</data_template_rrd_id>
</item_001>
</rrd>
<sv_graph>
<hash_12001368ff8a0bfc447cb94d02e0d17cc3e252>
<field_name>ResponseErrors</field_name>
<sequence>1</sequence>
<text>ResponseErrors</text>
</hash_12001368ff8a0bfc447cb94d02e0d17cc3e252>
<hash_120013c2e81996ac5a70f67fa4a07e95eea035>
<field_name>TotalSessions</field_name>
<sequence>1</sequence>
<text>TotalSessions</text>
</hash_120013c2e81996ac5a70f67fa4a07e95eea035>
</sv_graph>
<sv_data_source>
<hash_130013169b7ea71d2aa3a8abaece19de7feeff>
<field_name>ResponseErrors</field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<sequence>1</sequence>
<text>ResponseErrors</text>
</hash_130013169b7ea71d2aa3a8abaece19de7feeff>
<hash_130013a61ea1bb051f2162ba635c815324678d>
<field_name>TotalSessions</field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<sequence>1</sequence>
<text>TotalSessions</text>
</hash_130013a61ea1bb051f2162ba635c815324678d>
</sv_data_source>
</hash_1100134d2954fa52f51ed186916f2cf624a8b9>
<hash_110013abc35ade0aae030d90f817dfd91486f4>
<name>HAProxy Backend Traffic</name>
<graph_template_id>hash_000013b6d238ff2532fcc19ab498043c7c65c2</graph_template_id>
<rrd>
<item_000>
<snmp_field_name>beBOut</snmp_field_name>
<data_template_id>hash_010013a63ddba34026d2c07d73c0ef2ae64b54</data_template_id>
<data_template_rrd_id>hash_0800136c0e4debeb9b084231d858faabd82f8f</data_template_rrd_id>
</item_000>
<item_001>
<snmp_field_name>beBIn</snmp_field_name>
<data_template_id>hash_010013a63ddba34026d2c07d73c0ef2ae64b54</data_template_id>
<data_template_rrd_id>hash_0800132f5283f17a7cde63137189d4d3ea7e4e</data_template_rrd_id>
</item_001>
</rrd>
<sv_graph>
<hash_1200133ba4a6c8aacf161f3e2411afd7053b8d>
<field_name>BytesIn</field_name>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_1200133ba4a6c8aacf161f3e2411afd7053b8d>
<hash_1200130f8f674b52f6ea2e09608b505abfb3a1>
<field_name>BytesOut</field_name>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_1200130f8f674b52f6ea2e09608b505abfb3a1>
</sv_graph>
<sv_data_source>
<hash_130013d9fb3064081d77e553c5ce732f15c909>
<field_name>BytesIn</field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_130013d9fb3064081d77e553c5ce732f15c909>
<hash_1300134fc96e4392a7a86d05fda31c2d5d334c>
<field_name>BytesOut</field_name>
<data_template_id>hash_010013fa4d4fff334b60e9064e89082173fe34</data_template_id>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_1300134fc96e4392a7a86d05fda31c2d5d334c>
<hash_130013a7aad3557880ac197539a1d658f5d5da>
<field_name>BytesIn</field_name>
<data_template_id>hash_010013a63ddba34026d2c07d73c0ef2ae64b54</data_template_id>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_130013a7aad3557880ac197539a1d658f5d5da>
<hash_130013acb469b673f6adbaa21ad5c634c3683f>
<field_name>BytesOut</field_name>
<data_template_id>hash_010013a63ddba34026d2c07d73c0ef2ae64b54</data_template_id>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_130013acb469b673f6adbaa21ad5c634c3683f>
</sv_data_source>
</hash_110013abc35ade0aae030d90f817dfd91486f4>
</graphs>
</hash_040013d1dd43e3e5cee941860ea277826c4fe2>
<hash_030013bf566c869ac6443b0c75d1c32b5a350e>
<name>Get SNMP Data (Indexed)</name>
<type_id>3</type_id>
<input_string></input_string>
<fields>
<hash_070013617cdc8a230615e59f06f361ef6e7728>
<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_070013617cdc8a230615e59f06f361ef6e7728>
<hash_070013acb449d1451e8a2a655c2c99d31142c7>
<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_070013acb449d1451e8a2a655c2c99d31142c7>
<hash_070013f4facc5e2ca7ebee621f09bc6d9fc792>
<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_070013f4facc5e2ca7ebee621f09bc6d9fc792>
<hash_0700131cc1493a6781af2c478fa4de971531cf>
<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_0700131cc1493a6781af2c478fa4de971531cf>
<hash_070013b5c23f246559df38662c255f4aa21d6b>
<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_070013b5c23f246559df38662c255f4aa21d6b>
<hash_0700136027a919c7c7731fbe095b6f53ab127b>
<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_0700136027a919c7c7731fbe095b6f53ab127b>
<hash_070013cbbe5c1ddfb264a6e5d509ce1c78c95f>
<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_070013cbbe5c1ddfb264a6e5d509ce1c78c95f>
<hash_070013e6deda7be0f391399c5130e7c4a48b28>
<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_070013e6deda7be0f391399c5130e7c4a48b28>
<hash_070013c1f36ee60c3dc98945556d57f26e475b>
<name>SNMP Port</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>snmp_port</type_code>
<input_output>in</input_output>
<data_name>snmp_port</data_name>
</hash_070013c1f36ee60c3dc98945556d57f26e475b>
</fields>
</hash_030013bf566c869ac6443b0c75d1c32b5a350e>
<hash_000013cdbf9accfcd57d9e0a7c97896313ddee>
<name>HAProxy Backend Sessions</name>
<graph>
<t_title></t_title>
<title>|host_description| - HaProxy - |query_bePxName| Backend Sessions</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></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>10000</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></vertical_label>
</graph>
<items>
<hash_1000131ecaf3728447913a30dfa80cdd9cdff4>
<task_item_id>hash_080013230e04055a4228154123e74c6586d435</task_item_id>
<color_id>0000FF</color_id>
<graph_type_id>5</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Total Sessions:</text_format>
<hard_return></hard_return>
<sequence>5</sequence>
</hash_1000131ecaf3728447913a30dfa80cdd9cdff4>
<hash_1000132171a00b34d33f99ef24bcc235fbb6a3>
<task_item_id>hash_080013230e04055a4228154123e74c6586d435</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_1000132171a00b34d33f99ef24bcc235fbb6a3>
<hash_1000132129590e72a46480422f85e063d8cf4d>
<task_item_id>hash_080013230e04055a4228154123e74c6586d435</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_1000132129590e72a46480422f85e063d8cf4d>
<hash_1000138d11fec869f88ccf2fa3227bcffadfc3>
<task_item_id>hash_080013230e04055a4228154123e74c6586d435</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>8</sequence>
</hash_1000138d11fec869f88ccf2fa3227bcffadfc3>
<hash_100013783d295131617ad996e4699533a134ea>
<task_item_id>hash_080013088549c8d7e8cdc80f19bae4d78dc296</task_item_id>
<color_id>EA8F00</color_id>
<graph_type_id>5</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Response Errors:</text_format>
<hard_return></hard_return>
<sequence>9</sequence>
</hash_100013783d295131617ad996e4699533a134ea>
<hash_1000139bc04e5072b25ca992ee0b0eec981b95>
<task_item_id>hash_080013088549c8d7e8cdc80f19bae4d78dc296</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>10</sequence>
</hash_1000139bc04e5072b25ca992ee0b0eec981b95>
<hash_1000136333a9334fa0dc0d2f75c031dee1dcc5>
<task_item_id>hash_080013088549c8d7e8cdc80f19bae4d78dc296</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>11</sequence>
</hash_1000136333a9334fa0dc0d2f75c031dee1dcc5>
<hash_10001386e0e18d79915cd21ff123fb830e150e>
<task_item_id>hash_080013088549c8d7e8cdc80f19bae4d78dc296</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>12</sequence>
</hash_10001386e0e18d79915cd21ff123fb830e150e>
<hash_100013206b0b016daf267ff0a1daa7733ecf25>
<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_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Graph Last Updated: |date_time|</text_format>
<hard_return>on</hard_return>
<sequence>13</sequence>
</hash_100013206b0b016daf267ff0a1daa7733ecf25>
</items>
<inputs>
<hash_090013871102d568ae1a0d7d79aa4b0d3a6411>
<name>Data Source [TotalSessions]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000131ecaf3728447913a30dfa80cdd9cdff4|hash_0000132171a00b34d33f99ef24bcc235fbb6a3|hash_0000132129590e72a46480422f85e063d8cf4d|hash_0000138d11fec869f88ccf2fa3227bcffadfc3</items>
</hash_090013871102d568ae1a0d7d79aa4b0d3a6411>
<hash_090013320fd0edeb30465be51274fa3ecbe168>
<name>Data Source [ResponseErrors]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000013783d295131617ad996e4699533a134ea|hash_0000139bc04e5072b25ca992ee0b0eec981b95|hash_0000136333a9334fa0dc0d2f75c031dee1dcc5|hash_00001386e0e18d79915cd21ff123fb830e150e</items>
</hash_090013320fd0edeb30465be51274fa3ecbe168>
</inputs>
</hash_000013cdbf9accfcd57d9e0a7c97896313ddee>
<hash_000013b6d238ff2532fcc19ab498043c7c65c2>
<name>HAProxy Backend Traffic</name>
<graph>
<t_title></t_title>
<title>|host_description| - HaProxy |query_bePxName| Backend 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></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>10000000000</upper_limit>
<t_lower_limit></t_lower_limit>
<lower_limit>0</lower_limit>
<t_base_value></t_base_value>
<base_value>1024</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>bytes</vertical_label>
</graph>
<items>
<hash_100013184e60d8dac2421c2787887fe07f6d25>
<task_item_id>hash_0800132f5283f17a7cde63137189d4d3ea7e4e</task_item_id>
<color_id>6EA100</color_id>
<graph_type_id>5</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Ingress Traffic:</text_format>
<hard_return></hard_return>
<sequence>2</sequence>
</hash_100013184e60d8dac2421c2787887fe07f6d25>
<hash_100013f3889b4094b935798483e489b5f5e16e>
<task_item_id>hash_0800132f5283f17a7cde63137189d4d3ea7e4e</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>3</sequence>
</hash_100013f3889b4094b935798483e489b5f5e16e>
<hash_1000134bbdf263db6461f5d76717c12564c42c>
<task_item_id>hash_0800132f5283f17a7cde63137189d4d3ea7e4e</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>4</sequence>
</hash_1000134bbdf263db6461f5d76717c12564c42c>
<hash_1000131b708578244e36caba0f4dea67230c80>
<task_item_id>hash_0800132f5283f17a7cde63137189d4d3ea7e4e</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>5</sequence>
</hash_1000131b708578244e36caba0f4dea67230c80>
<hash_1000133e2f02edb1a55bcdd20e925a3849fd37>
<task_item_id>hash_0800136c0e4debeb9b084231d858faabd82f8f</task_item_id>
<color_id>FF0000</color_id>
<graph_type_id>5</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Egress Traffic:</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_1000133e2f02edb1a55bcdd20e925a3849fd37>
<hash_1000134517c9799c71e03dcd2278681858d70f>
<task_item_id>hash_0800136c0e4debeb9b084231d858faabd82f8f</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_1000134517c9799c71e03dcd2278681858d70f>
<hash_1000132edf24a4592c9537d2341ec20c588fc2>
<task_item_id>hash_0800136c0e4debeb9b084231d858faabd82f8f</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>8</sequence>
</hash_1000132edf24a4592c9537d2341ec20c588fc2>
<hash_100013150e680935bfccc75f1f88c7c60030f7>
<task_item_id>hash_0800136c0e4debeb9b084231d858faabd82f8f</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>9</sequence>
</hash_100013150e680935bfccc75f1f88c7c60030f7>
<hash_1000135dcb7625a1a21d8d94fdf2f97d302a42>
<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_060013e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Graph Last Updated: |date_time|</text_format>
<hard_return>on</hard_return>
<sequence>10</sequence>
</hash_1000135dcb7625a1a21d8d94fdf2f97d302a42>
</items>
<inputs>
<hash_090013952f2971b58b10f88a55d63a0388a429>
<name>Data Source [BytesIn]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000013184e60d8dac2421c2787887fe07f6d25|hash_000013f3889b4094b935798483e489b5f5e16e|hash_0000134bbdf263db6461f5d76717c12564c42c|hash_0000131b708578244e36caba0f4dea67230c80</items>
</hash_090013952f2971b58b10f88a55d63a0388a429>
<hash_09001393a65aa111654d6801846a6cb523580b>
<name>Data Source [BytesOut]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000133e2f02edb1a55bcdd20e925a3849fd37|hash_0000134517c9799c71e03dcd2278681858d70f|hash_0000132edf24a4592c9537d2341ec20c588fc2|hash_000013150e680935bfccc75f1f88c7c60030f7</items>
</hash_09001393a65aa111654d6801846a6cb523580b>
</inputs>
</hash_000013b6d238ff2532fcc19ab498043c7c65c2>
<hash_010013fa4d4fff334b60e9064e89082173fe34>
<name>HAProxy Backend Session Stats</name>
<ds>
<t_name></t_name>
<name>|host_description| - HAProxy - |query_bePxName| Backend Session Stats</name>
[CONTRIB] add templates for Cacti. Hi, I've attached the templates I've built for monitoring backends and frontends of haproxy. To install these, you will need to copy the XML files from the contrib/ directory of the haproxy distribution into a directory that Cacti can reach, and edit the Data Queries "HaProxy Backends" and "HAProxy Frontends" accordingly (the "XML Path" field. It's also dependant on having a version of net-snmp that supports embedded Perl, and including the "perl do 'path_to_haproxy.pl';" directive in your snmpd.conf file. As for what is created: - For the devices, you have two new data queries to choose from, they can be added from the Devices page for each device, at the very end in the drop-down box, then click "Add". The data queries are called "HaProxy Backends" and "HAProxy Frontends". - From "HaProxy Backends": in the new graphs page, you can choose which backend to graph, and create one of two graphs: - Haproxy backend traffic: ingress and egress bytes. - Haproxy backend sessions: total sessions with _reponse_ errors. - From "HAProxy Frontends": in the new graphs page again, you can choose which frontend to graph, which will include aggregated data for the backends behind it, obviously. You can create one of two graphs: - Haproxy frontend traffic: ingress and egress bytes. - Haproxy frontend sessions: total sessions with _request_ errors. In the graphs and data sources, limits are set to reasonably high values to support up to nearly 10G traffic, and up to 10000 concurrent connections. / Matt (cherry picked from commit f63090f2e85cdb7448071cdceb2eb5fabd2b9320)
2010-10-22 15:08:48 +00:00
<data_input_id>hash_030013bf566c869ac6443b0c75d1c32b5a350e</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_150013c21df5178e5c955013591239eb0afd46|hash_1500130d9c0af8b8acdc7807943937b3208e29|hash_1500136fc2d038fb42950138b0ce3e9874cc60|hash_150013e36f3adb9f152adfa5dc50fd2b23337e|hash_15001352829408ab566127eede2c74d201c678|hash_150013e73fb797d3ab2a9b97c3ec29e9690910</rra_items>
</ds>
<items>
<hash_080013230e04055a4228154123e74c6586d435>
<t_data_source_name></t_data_source_name>
<data_source_name>TotalSessions</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>10000</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_080013230e04055a4228154123e74c6586d435>
<hash_080013088549c8d7e8cdc80f19bae4d78dc296>
<t_data_source_name></t_data_source_name>
<data_source_name>ResponseErrors</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>10000</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_080013088549c8d7e8cdc80f19bae4d78dc296>
</items>
<data>
<item_000>
<data_input_field_id>hash_070013c1f36ee60c3dc98945556d57f26e475b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070013e6deda7be0f391399c5130e7c4a48b28</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_070013cbbe5c1ddfb264a6e5d509ce1c78c95f</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_0700136027a919c7c7731fbe095b6f53ab127b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_070013b5c23f246559df38662c255f4aa21d6b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_0700131cc1493a6781af2c478fa4de971531cf</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
<item_006>
<data_input_field_id>hash_070013f4facc5e2ca7ebee621f09bc6d9fc792</data_input_field_id>
<t_value></t_value>
<value></value>
</item_006>
<item_007>
<data_input_field_id>hash_070013acb449d1451e8a2a655c2c99d31142c7</data_input_field_id>
<t_value></t_value>
<value></value>
</item_007>
<item_008>
<data_input_field_id>hash_070013617cdc8a230615e59f06f361ef6e7728</data_input_field_id>
<t_value></t_value>
<value></value>
</item_008>
</data>
</hash_010013fa4d4fff334b60e9064e89082173fe34>
<hash_010013a63ddba34026d2c07d73c0ef2ae64b54>
<name>HAProxy Backend Traffic Stats</name>
<ds>
<t_name></t_name>
<name>|host_description| - HAProxy - |query_bePxName| Backend Traffic Stats</name>
[CONTRIB] add templates for Cacti. Hi, I've attached the templates I've built for monitoring backends and frontends of haproxy. To install these, you will need to copy the XML files from the contrib/ directory of the haproxy distribution into a directory that Cacti can reach, and edit the Data Queries "HaProxy Backends" and "HAProxy Frontends" accordingly (the "XML Path" field. It's also dependant on having a version of net-snmp that supports embedded Perl, and including the "perl do 'path_to_haproxy.pl';" directive in your snmpd.conf file. As for what is created: - For the devices, you have two new data queries to choose from, they can be added from the Devices page for each device, at the very end in the drop-down box, then click "Add". The data queries are called "HaProxy Backends" and "HAProxy Frontends". - From "HaProxy Backends": in the new graphs page, you can choose which backend to graph, and create one of two graphs: - Haproxy backend traffic: ingress and egress bytes. - Haproxy backend sessions: total sessions with _reponse_ errors. - From "HAProxy Frontends": in the new graphs page again, you can choose which frontend to graph, which will include aggregated data for the backends behind it, obviously. You can create one of two graphs: - Haproxy frontend traffic: ingress and egress bytes. - Haproxy frontend sessions: total sessions with _request_ errors. In the graphs and data sources, limits are set to reasonably high values to support up to nearly 10G traffic, and up to 10000 concurrent connections. / Matt (cherry picked from commit f63090f2e85cdb7448071cdceb2eb5fabd2b9320)
2010-10-22 15:08:48 +00:00
<data_input_id>hash_030013bf566c869ac6443b0c75d1c32b5a350e</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_150013c21df5178e5c955013591239eb0afd46|hash_1500130d9c0af8b8acdc7807943937b3208e29|hash_1500136fc2d038fb42950138b0ce3e9874cc60|hash_150013e36f3adb9f152adfa5dc50fd2b23337e|hash_150013a4aa6f4de84eaa00008f88d3f5bd8520|hash_150013e73fb797d3ab2a9b97c3ec29e9690910</rra_items>
</ds>
<items>
<hash_0800136c0e4debeb9b084231d858faabd82f8f>
<t_data_source_name></t_data_source_name>
<data_source_name>BytesOut</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>10000000000</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_0800136c0e4debeb9b084231d858faabd82f8f>
<hash_0800132f5283f17a7cde63137189d4d3ea7e4e>
<t_data_source_name></t_data_source_name>
<data_source_name>BytesIn</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>10000000000</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_0800132f5283f17a7cde63137189d4d3ea7e4e>
</items>
<data>
<item_000>
<data_input_field_id>hash_070013c1f36ee60c3dc98945556d57f26e475b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070013e6deda7be0f391399c5130e7c4a48b28</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_070013cbbe5c1ddfb264a6e5d509ce1c78c95f</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_0700136027a919c7c7731fbe095b6f53ab127b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_070013b5c23f246559df38662c255f4aa21d6b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_0700131cc1493a6781af2c478fa4de971531cf</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
<item_006>
<data_input_field_id>hash_070013f4facc5e2ca7ebee621f09bc6d9fc792</data_input_field_id>
<t_value></t_value>
<value></value>
</item_006>
<item_007>
<data_input_field_id>hash_070013acb449d1451e8a2a655c2c99d31142c7</data_input_field_id>
<t_value></t_value>
<value></value>
</item_007>
<item_008>
<data_input_field_id>hash_070013617cdc8a230615e59f06f361ef6e7728</data_input_field_id>
<t_value></t_value>
<value></value>
</item_008>
</data>
</hash_010013a63ddba34026d2c07d73c0ef2ae64b54>
<hash_150013c21df5178e5c955013591239eb0afd46>
<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|2|3|4</cf_items>
</hash_150013c21df5178e5c955013591239eb0afd46>
<hash_1500130d9c0af8b8acdc7807943937b3208e29>
<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|2|3|4</cf_items>
</hash_1500130d9c0af8b8acdc7807943937b3208e29>
<hash_1500136fc2d038fb42950138b0ce3e9874cc60>
<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|2|3|4</cf_items>
</hash_1500136fc2d038fb42950138b0ce3e9874cc60>
<hash_150013e36f3adb9f152adfa5dc50fd2b23337e>
<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|2|3|4</cf_items>
</hash_150013e36f3adb9f152adfa5dc50fd2b23337e>
<hash_1500130028a19ed71b758898eaa55ab1c59694>
<name>Three days (5 minutes average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>6</steps>
<rows>700</rows>
<timespan>302400</timespan>
<cf_items>1|2|3|4</cf_items>
</hash_1500130028a19ed71b758898eaa55ab1c59694>
<hash_150013e73fb797d3ab2a9b97c3ec29e9690910>
<name>Hourly (1 Minute Average)</name>
<x_files_factor>0.5</x_files_factor>
<steps>1</steps>
<rows>500</rows>
<timespan>14400</timespan>
<cf_items>1|3</cf_items>
</hash_150013e73fb797d3ab2a9b97c3ec29e9690910>
<hash_060013e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060013e9c43831e54eca8069317a2ce8c6f751>
</cacti>