[原创]个人笔记:关于Cacti的Hash值的说明
正文:下面先以一个简单的XML文件来说明(文件下载见附件)。
此文件是一个通过snmpv2的MIB OID来取得系统uptime的模板文件,下面解析一下此文件:
Line1:
- line2: <hash_0000050a7928571d7330f5e9156ad05b24f1d4>
line3: <name>SNMPv2-MIB - sysUpTimename>
line5: <t_title>ont_title>
line6: <title>|host_hostname| - Uptimetitle>
line7: <t_image_format_id />
line8: <image_format_id>1image_format_id>
line10: <height>120height>
line14: <auto_scale>onauto_scale>
line15: <t_auto_scale_opts />
line16: <auto_scale_opts>2auto_scale_opts>
line17: <t_auto_scale_log />
line18: <auto_scale_log />
llline19: <t_auto_scale_rigid />
liline20: <auto_scale_rigid />
liline21: <t_auto_padding />
line22: <auto_padding>onauto_padding>
line24: <export>onexport>
line25: <t_upper_limit />
line26: <upper_limit>0upper_limit>
line27: <t_lower_limit />
line28: <lower_limit>0lower_limit>
line30: <base_value>1000base_value>
line33: <t_unit_exponent_value />
line34: <unit_exponent_value />
line35: <t_vertical_label />
line36: <vertical_label>Daysvertical_label>
line37: graph>
- <hash_100005983796b725494b16f67d739082e8f9d5>
<task_item_id>hash_0800053f765eaeaf380c6762cf01e44442e53etask_item_id>
<color_id>7EE600color_id>
<graph_type_id>7graph_type_id>
<consolidation_function_id>1consolidation_function_id>
<cdef_id>hash_050005caababff166448da7a0fb2c2dba04e7ecdef_id>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751gprint_id>
hash_100005983796b725494b16f67d739082e8f9d5>
- <hash_1000055e0267f848d7663c9a55acf4e0f23051>
<task_item_id>hash_0800053f765eaeaf380c6762cf01e44442e53etask_item_id>
<graph_type_id>9graph_type_id>
<consolidation_function_id>4consolidation_function_id>
<cdef_id>hash_050005caababff166448da7a0fb2c2dba04e7ecdef_id>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751gprint_id>
<text_format>Current:text_format>
hash_1000055e0267f848d7663c9a55acf4e0f23051>
- <hash_100005fe14380f543ce0950e9fade5f5dee2f2>
<task_item_id>hash_0800053f765eaeaf380c6762cf01e44442e53etask_item_id>
<graph_type_id>9graph_type_id>
<consolidation_function_id>3consolidation_function_id>
<cdef_id>hash_050005caababff166448da7a0fb2c2dba04e7ecdef_id>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751gprint_id>
<text_format>Maximum:text_format>
<hard_return>onhard_return>
hash_100005fe14380f543ce0950e9fade5f5dee2f2>
items>
- <hash_0900054a961dc5e60993470e67bbef5ce40312>
<name>Data Source [sysUpTime]name>
<column_name>task_item_idcolumn_name>
<items>hash_000005983796b725494b16f67d739082e8f9d5|hash_0000055e0267f848d7663c9a55acf4e0f23051|hash_000005fe14380f543ce0950e9fade5f5dee2f2items>
hash_0900054a961dc5e60993470e67bbef5ce40312>
inputs>
hash_0000050a7928571d7330f5e9156ad05b24f1d4>
- <hash_0100050f3b291f75c0bf4a0ef094f967e6b143>
<name>SNMPv2-MIB - sysUpTimename>
<name>|host_hostname| - Uptimename>
<data_input_id>hash_0300053eb92bb845b9660a7445cf9740726522data_input_id>
<rra_items>hash_150005c21df5178e5c955013591239eb0afd46|hash_1500050d9c0af8b8acdc7807943937b3208e29|hash_1500056fc2d038fb42950138b0ce3e9874cc60|hash_150005e36f3adb9f152adfa5dc50fd2b23337erra_items>
ds>
- <hash_0800053f765eaeaf380c6762cf01e44442e53e>
<data_source_name>sysUpTimedata_source_name>
<rrd_minimum>0rrd_minimum>
<rrd_maximum>0rrd_maximum>
<t_data_source_type_id />
<data_source_type_id>1data_source_type_id>
<rrd_heartbeat>600rrd_heartbeat>
<t_data_input_field_id />
<data_input_field_id>0data_input_field_id>
hash_0800053f765eaeaf380c6762cf01e44442e53e>
items>
<data_input_field_id>hash_0700054276a5ec6e3fe33995129041b1909762data_input_field_id>
<value>.1.3.6.1.2.1.1.3.0value>
item_000>
<data_input_field_id>hash_070005012ccb1d3687d3edb29c002ea66e72dadata_input_field_id>
item_001>
<data_input_field_id>hash_0700059c55a74bd571b4f00a96fd4b793278c6data_input_field_id>
item_002>
<data_input_field_id>hash_070005ad14ac90641aed388139f6ba86a2e48bdata_input_field_id>
item_003>
<data_input_field_id>hash_07000532285d5bf16e56c478f5e83f32cda9efdata_input_field_id>
item_004>
<data_input_field_id>hash_07000592f5906c8dc0f964b41f4253df582c38data_input_field_id>
item_005>
data>
hash_0100050f3b291f75c0bf4a0ef094f967e6b143>
- <hash_0300053eb92bb845b9660a7445cf9740726522>
- <hash_07000592f5906c8dc0f964b41f4253df582c38>
<name>SNMP IP Addressname>
<type_code>hostnametype_code>
<input_output>ininput_output>
<data_name>management_ipdata_name>
hash_07000592f5906c8dc0f964b41f4253df582c38>
- <hash_07000532285d5bf16e56c478f5e83f32cda9ef>
<name>SNMP Communityname>
<type_code>snmp_communitytype_code>
<input_output>ininput_output>
<data_name>snmp_communitydata_name>
hash_07000532285d5bf16e56c478f5e83f32cda9ef>
- <hash_070005ad14ac90641aed388139f6ba86a2e48b>
<allow_nulls>onallow_nulls>
<type_code>snmp_usernametype_code>
<input_output>ininput_output>
<data_name>snmp_usernamedata_name>
hash_070005ad14ac90641aed388139f6ba86a2e48b>
- <hash_0700059c55a74bd571b4f00a96fd4b793278c6>
<allow_nulls>onallow_nulls>
<type_code>snmp_passwordtype_code>
<input_output>ininput_output>
<data_name>snmp_passworddata_name>
hash_0700059c55a74bd571b4f00a96fd4b793278c6>
- <hash_070005012ccb1d3687d3edb29c002ea66e72da>
<name>SNMP Version (1, 2, or 3)name>
<allow_nulls>onallow_nulls>
<type_code>snmp_versiontype_code>
<input_output>ininput_output>
<data_name>snmp_versiondata_name>
hash_070005012ccb1d3687d3edb29c002ea66e72da>
- <hash_0700054276a5ec6e3fe33995129041b1909762>
<type_code>snmp_oidtype_code>
<input_output>ininput_output>
hash_0700054276a5ec6e3fe33995129041b1909762>
fields>
hash_0300053eb92bb845b9660a7445cf9740726522>
- <hash_150005c21df5178e5c955013591239eb0afd46>
<name>Daily (5 Minute Average)name>
<x_files_factor>0.5x_files_factor>
hash_150005c21df5178e5c955013591239eb0afd46>
- <hash_1500050d9c0af8b8acdc7807943937b3208e29>
<name>Weekly (30 Minute Average)name>
<x_files_factor>0.5x_files_factor>
<timespan>604800timespan>
hash_1500050d9c0af8b8acdc7807943937b3208e29>
- <hash_1500056fc2d038fb42950138b0ce3e9874cc60>
<name>Monthly (2 Hour Average)name>
<x_files_factor>0.5x_files_factor>
<timespan>2678400timespan>
hash_1500056fc2d038fb42950138b0ce3e9874cc60>
- <hash_150005e36f3adb9f152adfa5dc50fd2b23337e>
<name>Yearly (1 Day Average)name>
<x_files_factor>0.5x_files_factor>
<timespan>33053184timespan>
hash_150005e36f3adb9f152adfa5dc50fd2b23337e>
- <hash_050005caababff166448da7a0fb2c2dba04e7e>
<name>Miliseconds to Daysname>
- <hash_140005c6c097cf4569c485db2014c88dbec532>
<value>CURRENT_DATA_SOURCEvalue>
hash_140005c6c097cf4569c485db2014c88dbec532>
- <hash_140005ee32895cfa811896443c4e39e2399d99>
hash_140005ee32895cfa811896443c4e39e2399d99>
- <hash_1400055aaf0f8f02ab04aaa2e56d3b0217c42c>
hash_1400055aaf0f8f02ab04aaa2e56d3b0217c42c>
items>
hash_050005caababff166448da7a0fb2c2dba04e7e>
- <hash_060005e9c43831e54eca8069317a2ce8c6f751>
<gprint_text>%8.2lf%sgprint_text>
hash_060005e9c43831e54eca8069317a2ce8c6f751>
cacti>
|
文件: |
cacti_graph_template_snmpv2mib_sysuptime.rar |
大小: |
2KB |
下载: |
下载 | |
阅读(2409) | 评论(0) | 转发(0) |