haproxy/admin/netsnmp-perl/cacti_data_query_haproxy_fr...

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_0400138cb70c1064bd60742726af23828c4b05>
<name>HAProxy Frontends</name>
<description></description>
<xml_path>&lt;path_cacti&gt;/resource/snmp_queries/haproxy_frontend.xml</xml_path>
<data_input_id>hash_030013bf566c869ac6443b0c75d1c32b5a350e</data_input_id>
<graphs>
<hash_110013c1c2bca3af0ae4e2ce0de096aa79dba5>
<name>HAProxy Frontend Sessions</name>
<graph_template_id>hash_00001328b6727aa54dde6bb3f5dde939ae03aa</graph_template_id>
<rrd>
<item_000>
<snmp_field_name>feSTot</snmp_field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<data_template_rrd_id>hash_080013f9c76e05d0a87b2d32f9a5b014e17aab</data_template_rrd_id>
</item_000>
<item_001>
<snmp_field_name>feEReq</snmp_field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<data_template_rrd_id>hash_080013c137bec94d7220e65a5b3dfa4049c242</data_template_rrd_id>
</item_001>
</rrd>
<sv_graph>
<hash_1200130f0e4ffcd11f807d23794ab805d7901a>
<field_name>TotalSessions</field_name>
<sequence>1</sequence>
<text>TotalSessions</text>
</hash_1200130f0e4ffcd11f807d23794ab805d7901a>
<hash_1200134fc506db9ce45c0e5cb38a429ad8e077>
<field_name>RequestErrors</field_name>
<sequence>1</sequence>
<text>RequestErrors</text>
</hash_1200134fc506db9ce45c0e5cb38a429ad8e077>
</sv_graph>
<sv_data_source>
<hash_1300138a5efc51c95b400c3139b352ce110969>
<field_name>RequestErrors</field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<sequence>1</sequence>
<text>RequestErrors</text>
</hash_1300138a5efc51c95b400c3139b352ce110969>
<hash_130013e374903ab025bc2728f2f9abeb412ac3>
<field_name>TotalSessions</field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<sequence>1</sequence>
<text>TotalSessions</text>
</hash_130013e374903ab025bc2728f2f9abeb412ac3>
</sv_data_source>
</hash_110013c1c2bca3af0ae4e2ce0de096aa79dba5>
<hash_1100130838495d5d82f25f4a675ee7c56543a5>
<name>HAProxy Frontend Traffic</name>
<graph_template_id>hash_000013d0fe9e9efc2746de488fdede0419b051</graph_template_id>
<rrd>
<item_000>
<snmp_field_name>feBOut</snmp_field_name>
<data_template_id>hash_010013a88327df77ea19e333ddd96096c34751</data_template_id>
<data_template_rrd_id>hash_0800137db81cd58fbbbd203af0f55c15c2081a</data_template_rrd_id>
</item_000>
<item_001>
<snmp_field_name>feBIn</snmp_field_name>
<data_template_id>hash_010013a88327df77ea19e333ddd96096c34751</data_template_id>
<data_template_rrd_id>hash_08001305772980bb6de1f12223d7ec53e323c4</data_template_rrd_id>
</item_001>
</rrd>
<sv_graph>
<hash_120013934d1311136bccb4d9ca5a67e240afeb>
<field_name>BytesIn</field_name>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_120013934d1311136bccb4d9ca5a67e240afeb>
<hash_12001399a6e6fb09b025bc60a214cb00e6d1f0>
<field_name>BytesOut</field_name>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_12001399a6e6fb09b025bc60a214cb00e6d1f0>
</sv_graph>
<sv_data_source>
<hash_1300135f35cdaeda1a1169be21e52a85af339e>
<field_name>BytesOut</field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_1300135f35cdaeda1a1169be21e52a85af339e>
<hash_1300136ee916a0c0ce8dad133b9dfcf32e2581>
<field_name>BytesIn</field_name>
<data_template_id>hash_0100139f985697a7530256b4e35c95ef03db20</data_template_id>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_1300136ee916a0c0ce8dad133b9dfcf32e2581>
<hash_13001382c5a3b953f8d1583b168d15beed6e9c>
<field_name>BytesOut</field_name>
<data_template_id>hash_010013a88327df77ea19e333ddd96096c34751</data_template_id>
<sequence>1</sequence>
<text>BytesOut</text>
</hash_13001382c5a3b953f8d1583b168d15beed6e9c>
<hash_1300132c486fa1a5e875179031ea9f5328614b>
<field_name>BytesIn</field_name>
<data_template_id>hash_010013a88327df77ea19e333ddd96096c34751</data_template_id>
<sequence>1</sequence>
<text>BytesIn</text>
</hash_1300132c486fa1a5e875179031ea9f5328614b>
</sv_data_source>
</hash_1100130838495d5d82f25f4a675ee7c56543a5>
</graphs>
</hash_0400138cb70c1064bd60742726af23828c4b05>
<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_00001328b6727aa54dde6bb3f5dde939ae03aa>
<name>HAProxy Frontend Sessions</name>
<graph>
<t_title></t_title>
<title>|host_description| - HaProxy - |query_fePxName| Frontend 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_100013b1ecfd75df9c17c0ba11acc5e9b7d8f8>
<task_item_id>hash_080013f9c76e05d0a87b2d32f9a5b014e17aab</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_100013b1ecfd75df9c17c0ba11acc5e9b7d8f8>
<hash_100013fa878148199aee5bb2a10b7693318347>
<task_item_id>hash_080013f9c76e05d0a87b2d32f9a5b014e17aab</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_100013fa878148199aee5bb2a10b7693318347>
<hash_1000137d834c383afa4863974edc19a337e260>
<task_item_id>hash_080013f9c76e05d0a87b2d32f9a5b014e17aab</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_1000137d834c383afa4863974edc19a337e260>
<hash_1000138b0422b293230883462cfbfe32144d47>
<task_item_id>hash_080013f9c76e05d0a87b2d32f9a5b014e17aab</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_1000138b0422b293230883462cfbfe32144d47>
<hash_1000131c87ed4e76c026cd131418d792822944>
<task_item_id>hash_080013c137bec94d7220e65a5b3dfa4049c242</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>Request Errors:</text_format>
<hard_return></hard_return>
<sequence>9</sequence>
</hash_1000131c87ed4e76c026cd131418d792822944>
<hash_100013a9993114514cb1abea4b929f984222ea>
<task_item_id>hash_080013c137bec94d7220e65a5b3dfa4049c242</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_100013a9993114514cb1abea4b929f984222ea>
<hash_1000131bc67adbaa8b77cd6c73d9622c7eebc1>
<task_item_id>hash_080013c137bec94d7220e65a5b3dfa4049c242</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>12</sequence>
</hash_1000131bc67adbaa8b77cd6c73d9622c7eebc1>
<hash_1000138840d17711368b90a61132ba83e9edb8>
<task_item_id>hash_080013c137bec94d7220e65a5b3dfa4049c242</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>13</sequence>
</hash_1000138840d17711368b90a61132ba83e9edb8>
<hash_100013e8ddbe92933ba99b2d2ebc8f76a06e2e>
<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>14</sequence>
</hash_100013e8ddbe92933ba99b2d2ebc8f76a06e2e>
</items>
<inputs>
<hash_0900134bedc49c15c9557fc95cdbc8850a5cb1>
<name>Data Source [TotalSessions]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000013b1ecfd75df9c17c0ba11acc5e9b7d8f8|hash_000013fa878148199aee5bb2a10b7693318347|hash_0000138b0422b293230883462cfbfe32144d47|hash_0000137d834c383afa4863974edc19a337e260</items>
</hash_0900134bedc49c15c9557fc95cdbc8850a5cb1>
<hash_090013f3f3dfd39bb035006de08df94415e828>
<name>Data Source [RequestErrors]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000131c87ed4e76c026cd131418d792822944|hash_000013a9993114514cb1abea4b929f984222ea|hash_0000131bc67adbaa8b77cd6c73d9622c7eebc1|hash_0000138840d17711368b90a61132ba83e9edb8</items>
</hash_090013f3f3dfd39bb035006de08df94415e828>
</inputs>
</hash_00001328b6727aa54dde6bb3f5dde939ae03aa>
<hash_000013d0fe9e9efc2746de488fdede0419b051>
<name>HAProxy Frontend Traffic</name>
<graph>
<t_title></t_title>
<title>|host_description| - HaProxy |query_fePxName| Frontend 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_100013d5c13ff711cbd645e9f88697b2c5e61b>
<task_item_id>hash_08001305772980bb6de1f12223d7ec53e323c4</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_100013d5c13ff711cbd645e9f88697b2c5e61b>
<hash_10001353cff0cd64c4d70574ef9da42f62c86a>
<task_item_id>hash_08001305772980bb6de1f12223d7ec53e323c4</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_10001353cff0cd64c4d70574ef9da42f62c86a>
<hash_1000136788d44f6207ce323ad40ccc8f15d462>
<task_item_id>hash_08001305772980bb6de1f12223d7ec53e323c4</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_1000136788d44f6207ce323ad40ccc8f15d462>
<hash_100013d4cb02a8fb7fa37ef1e37d8b78333ea3>
<task_item_id>hash_08001305772980bb6de1f12223d7ec53e323c4</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_100013d4cb02a8fb7fa37ef1e37d8b78333ea3>
<hash_1000137d82a7f3c82c698fe4e9cecc03d680b1>
<task_item_id>hash_0800137db81cd58fbbbd203af0f55c15c2081a</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_1000137d82a7f3c82c698fe4e9cecc03d680b1>
<hash_100013d2d059378b521327426b451324bbb608>
<task_item_id>hash_0800137db81cd58fbbbd203af0f55c15c2081a</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_100013d2d059378b521327426b451324bbb608>
<hash_1000132eef0fae129ef21ad2d73e5e80814a23>
<task_item_id>hash_0800137db81cd58fbbbd203af0f55c15c2081a</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_1000132eef0fae129ef21ad2d73e5e80814a23>
<hash_1000138365462951b1f4e6b1a76f20b91be65d>
<task_item_id>hash_0800137db81cd58fbbbd203af0f55c15c2081a</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_1000138365462951b1f4e6b1a76f20b91be65d>
<hash_100013eefc9c0f83c57d6d6f8d75fbd45965a3>
<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_100013eefc9c0f83c57d6d6f8d75fbd45965a3>
</items>
<inputs>
<hash_090013384e7b730bb32653e3fbce5ce509977d>
<name>Data Source [BytesOut]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000013d2d059378b521327426b451324bbb608|hash_0000137d82a7f3c82c698fe4e9cecc03d680b1|hash_0000132eef0fae129ef21ad2d73e5e80814a23|hash_0000138365462951b1f4e6b1a76f20b91be65d</items>
</hash_090013384e7b730bb32653e3fbce5ce509977d>
<hash_090013e5ff60e3069b2d28d905f6affa63250e>
<name>Data Source [BytesIn]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_00001353cff0cd64c4d70574ef9da42f62c86a|hash_000013d5c13ff711cbd645e9f88697b2c5e61b|hash_0000136788d44f6207ce323ad40ccc8f15d462|hash_000013d4cb02a8fb7fa37ef1e37d8b78333ea3</items>
</hash_090013e5ff60e3069b2d28d905f6affa63250e>
</inputs>
</hash_000013d0fe9e9efc2746de488fdede0419b051>
<hash_0100139f985697a7530256b4e35c95ef03db20>
<name>HAProxy Frontend Session Stats</name>
<ds>
<t_name></t_name>
<name>|host_description| - HAProxy - |query_fePxName| Frontend 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_1500139b529013942d5a6891d05a84d17175e0|hash_150013e73fb797d3ab2a9b97c3ec29e9690910</rra_items>
</ds>
<items>
<hash_080013c137bec94d7220e65a5b3dfa4049c242>
<t_data_source_name></t_data_source_name>
<data_source_name>RequestErrors</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_080013c137bec94d7220e65a5b3dfa4049c242>
<hash_080013f9c76e05d0a87b2d32f9a5b014e17aab>
<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_080013f9c76e05d0a87b2d32f9a5b014e17aab>
</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_0100139f985697a7530256b4e35c95ef03db20>
<hash_010013a88327df77ea19e333ddd96096c34751>
<name>HAProxy Frontend Traffic Stats</name>
<ds>
<t_name></t_name>
<name>|host_description| - HAProxy - |query_fePxName| Frontend 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_15001369b0abdb84cea4d93762fd5a5d0c2777|hash_150013e73fb797d3ab2a9b97c3ec29e9690910</rra_items>
</ds>
<items>
<hash_0800137db81cd58fbbbd203af0f55c15c2081a>
<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_0800137db81cd58fbbbd203af0f55c15c2081a>
<hash_08001305772980bb6de1f12223d7ec53e323c4>
<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_08001305772980bb6de1f12223d7ec53e323c4>
</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_010013a88327df77ea19e333ddd96096c34751>
<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_1500136399acb234c65ef56054d5a82b23bc20>
<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_1500136399acb234c65ef56054d5a82b23bc20>
<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>