Commit 646d7741 authored by Jan Grewe's avatar Jan Grewe
Browse files

initial commit

parents
#!/bin/bash
PATH='/sys/fs/bcache'
if [ ! -d ${PATH} ]; then
echo "Error: bcache not loaded"
exit 1
fi
DIRTY_DATA=0
BYPASSED=0
get_dirty_data () {
for dev in "${PATH}/${1}/bdev*/"; do
local size=$(<${dev}/dirty_data)
local bytes=$(/usr/bin/numfmt --from=iec ${size})
DIRTY_DATA=$(( ${DIRTY_DATA} + ${bytes} ))
done
}
get_hitrate () {
local hitrate=""
for dev in "${PATH}/${1}/bdev*/"; do
local dev_hr=$(<${dev}/stats_${2}/cache_hit_ratio)
if [ -z ${hitrate} ]; then
hitrate=${dev_hr}
fi
hitrate=$(( (${hitrate} + ${dev_hr}) / 2 ))
done
eval HITRATE_${2}=${hitrate}
}
get_requests () {
for dev in "${PATH}/${1}/bdev*/"; do
local value=$(<${dev}/stats_five_minute/cache_${2})
eval REQUEST_${2}=$(( $REQUEST_${2} + ${value} ))
done
}
get_bypassed () {
for dev in "${PATH}/${1}/bdev*/"; do
local size=$(<${dev}/stats_five_minute/bypassed)
local bytes=$(/usr/bin/numfmt --from=iec ${size})
BYPASSED=$(( ${BYPASSED} + ${bytes} ))
done
}
for cache in "${PATH}/*/"; do
uuid=$(/usr/bin/basename ${cache})
get_bypassed ${uuid}
get_dirty_data ${uuid}
get_hitrate ${uuid} total
get_hitrate ${uuid} day
get_hitrate ${uuid} hour
get_hitrate ${uuid} five_minute
get_requests ${uuid} bypass_hits
get_requests ${uuid} bypass_misses
get_requests ${uuid} hits
get_requests ${uuid} misses
get_requests ${uuid} miss_collisions
get_requests ${uuid} readaheads
done
echo "bb:${BYPASSED}\
dd:${DIRTY_DATA}\
hr:${HITRATE_total}\
hr_1d:${HITRATE_day}\
hr_1h:${HITRATE_hour}\
hr_5m:${HITRATE_five_minute}\
req_bh:${REQUEST_bypass_hits}\
req_bm:${REQUEST_bypass_misses}\
req_h:${REQUEST_hits}\
req_m:${REQUEST_misses}\
req_mc:${REQUEST_miss_collisions}\
req_ra:${REQUEST_readaheads}"
exit 0
<cacti>
<hash_0100259c477921e6f496c433ff192fa69370a0>
<name>bcache - Bypassed Bytes</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - bcache - Bypassed Bytes</name>
<data_input_id>hash_0300251cd962214f207896cf48fa357bb5d96f</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_150025c21df5178e5c955013591239eb0afd46|hash_1500250d9c0af8b8acdc7807943937b3208e29|hash_1500256fc2d038fb42950138b0ce3e9874cc60|hash_150025e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_0800253225abebb1cbc6aac4b60da32c748892>
<t_data_source_name></t_data_source_name>
<data_source_name>bb</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_070025b49a88ab08d2df018be04d47574aeef6</data_input_field_id>
</hash_0800253225abebb1cbc6aac4b60da32c748892>
</items>
<data>
<item_000>
<data_input_field_id>hash_070025ee053d73bf400d1e49ad808555f83ffa</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070025fab9bd6c6b4d3ef205a66fd56c304404</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
</data>
</hash_0100259c477921e6f496c433ff192fa69370a0>
<hash_0300251cd962214f207896cf48fa357bb5d96f>
<name>bcache</name>
<type_id>1</type_id>
<input_string>bash &lt;path_cacti&gt;/scripts/get_bcache.sh &lt;hostname&gt; &lt;community&gt;</input_string>
<fields>
<hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<name>Hostname</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>hostname</data_name>
</hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<hash_070025ee053d73bf400d1e49ad808555f83ffa>
<name>Community</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>community</type_code>
<input_output>in</input_output>
<data_name>community</data_name>
</hash_070025ee053d73bf400d1e49ad808555f83ffa>
<hash_070025454d171076accb8182ad2fae6cb0ba48>
<name>Dirty Data</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>dd</data_name>
</hash_070025454d171076accb8182ad2fae6cb0ba48>
<hash_070025012209bf01118ff3038069add21e0cb1>
<name>Hit Rate (5 min)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_5m</data_name>
</hash_070025012209bf01118ff3038069add21e0cb1>
<hash_070025c99f507e7fbc2e216c5f82ec3f7e5963>
<name>Hit Rate (1 hour)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_1h</data_name>
</hash_070025c99f507e7fbc2e216c5f82ec3f7e5963>
<hash_07002505884e35a1041636902ea2ca3d7a9178>
<name>Hit Rate (1 day)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_1d</data_name>
</hash_07002505884e35a1041636902ea2ca3d7a9178>
<hash_07002533a25b28a76c5349cee549f9eeb64be5>
<name>Hit Rate (total)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr</data_name>
</hash_07002533a25b28a76c5349cee549f9eeb64be5>
<hash_07002515055b1dd0618a8814d9bc1d7591020b>
<name>Cache Hits</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_h</data_name>
</hash_07002515055b1dd0618a8814d9bc1d7591020b>
<hash_0700256bc0f789f5b77ac6e30b10b97daadf8d>
<name>Cache Misses</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_m</data_name>
</hash_0700256bc0f789f5b77ac6e30b10b97daadf8d>
<hash_070025e102370ce9a0086ce829d90d64c98f8d>
<name>Cache Hits (Bypassed)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_bh</data_name>
</hash_070025e102370ce9a0086ce829d90d64c98f8d>
<hash_070025e65273796504b550831277746b780b52>
<name>Cache Misses (Bypassed)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_bm</data_name>
</hash_070025e65273796504b550831277746b780b52>
<hash_070025c9a1312215f7f79e8a64fa55207547d4>
<name>Miss Collisions</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_mc</data_name>
</hash_070025c9a1312215f7f79e8a64fa55207547d4>
<hash_07002518311929bbe7cfe1431b6db91083f768>
<name>Readaheads</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_ra</data_name>
</hash_07002518311929bbe7cfe1431b6db91083f768>
<hash_070025b49a88ab08d2df018be04d47574aeef6>
<name>Bypassed</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>bb</data_name>
</hash_070025b49a88ab08d2df018be04d47574aeef6>
</fields>
</hash_0300251cd962214f207896cf48fa357bb5d96f>
<hash_150025c21df5178e5c955013591239eb0afd46>
<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_150025c21df5178e5c955013591239eb0afd46>
<hash_1500250d9c0af8b8acdc7807943937b3208e29>
<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</cf_items>
</hash_1500250d9c0af8b8acdc7807943937b3208e29>
<hash_1500256fc2d038fb42950138b0ce3e9874cc60>
<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</cf_items>
</hash_1500256fc2d038fb42950138b0ce3e9874cc60>
<hash_150025e36f3adb9f152adfa5dc50fd2b23337e>
<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_150025e36f3adb9f152adfa5dc50fd2b23337e>
</cacti>
\ No newline at end of file
<cacti>
<hash_01002526c3611eb89f5edd7b4ad7acdb9dffd7>
<name>bcache - Dirty Data</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - bcache - Dirty Data</name>
<data_input_id>hash_0300251cd962214f207896cf48fa357bb5d96f</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_150025c21df5178e5c955013591239eb0afd46|hash_1500250d9c0af8b8acdc7807943937b3208e29|hash_1500256fc2d038fb42950138b0ce3e9874cc60|hash_150025e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_0800255c1aacfa9dc313970cd0a76fdd63055f>
<t_data_source_name></t_data_source_name>
<data_source_name>dd</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>U</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_070025454d171076accb8182ad2fae6cb0ba48</data_input_field_id>
</hash_0800255c1aacfa9dc313970cd0a76fdd63055f>
</items>
<data>
<item_000>
<data_input_field_id>hash_070025ee053d73bf400d1e49ad808555f83ffa</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070025fab9bd6c6b4d3ef205a66fd56c304404</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
</data>
</hash_01002526c3611eb89f5edd7b4ad7acdb9dffd7>
<hash_0300251cd962214f207896cf48fa357bb5d96f>
<name>bcache</name>
<type_id>1</type_id>
<input_string>bash &lt;path_cacti&gt;/scripts/get_bcache.sh &lt;hostname&gt; &lt;community&gt;</input_string>
<fields>
<hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<name>Hostname</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>hostname</data_name>
</hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<hash_070025ee053d73bf400d1e49ad808555f83ffa>
<name>Community</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>community</type_code>
<input_output>in</input_output>
<data_name>community</data_name>
</hash_070025ee053d73bf400d1e49ad808555f83ffa>
<hash_070025454d171076accb8182ad2fae6cb0ba48>
<name>Dirty Data</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>dd</data_name>
</hash_070025454d171076accb8182ad2fae6cb0ba48>
<hash_070025012209bf01118ff3038069add21e0cb1>
<name>Hit Rate (5 min)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_5m</data_name>
</hash_070025012209bf01118ff3038069add21e0cb1>
<hash_070025c99f507e7fbc2e216c5f82ec3f7e5963>
<name>Hit Rate (1 hour)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_1h</data_name>
</hash_070025c99f507e7fbc2e216c5f82ec3f7e5963>
<hash_07002505884e35a1041636902ea2ca3d7a9178>
<name>Hit Rate (1 day)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr_1d</data_name>
</hash_07002505884e35a1041636902ea2ca3d7a9178>
<hash_07002533a25b28a76c5349cee549f9eeb64be5>
<name>Hit Rate (total)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>hr</data_name>
</hash_07002533a25b28a76c5349cee549f9eeb64be5>
<hash_07002515055b1dd0618a8814d9bc1d7591020b>
<name>Cache Hits</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_h</data_name>
</hash_07002515055b1dd0618a8814d9bc1d7591020b>
<hash_0700256bc0f789f5b77ac6e30b10b97daadf8d>
<name>Cache Misses</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_m</data_name>
</hash_0700256bc0f789f5b77ac6e30b10b97daadf8d>
<hash_070025e102370ce9a0086ce829d90d64c98f8d>
<name>Cache Hits (Bypassed)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_bh</data_name>
</hash_070025e102370ce9a0086ce829d90d64c98f8d>
<hash_070025e65273796504b550831277746b780b52>
<name>Cache Misses (Bypassed)</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_bm</data_name>
</hash_070025e65273796504b550831277746b780b52>
<hash_070025c9a1312215f7f79e8a64fa55207547d4>
<name>Miss Collisions</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_mc</data_name>
</hash_070025c9a1312215f7f79e8a64fa55207547d4>
<hash_07002518311929bbe7cfe1431b6db91083f768>
<name>Readaheads</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>req_ra</data_name>
</hash_07002518311929bbe7cfe1431b6db91083f768>
<hash_070025b49a88ab08d2df018be04d47574aeef6>
<name>Bypassed</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>
<data_name>bb</data_name>
</hash_070025b49a88ab08d2df018be04d47574aeef6>
</fields>
</hash_0300251cd962214f207896cf48fa357bb5d96f>
<hash_150025c21df5178e5c955013591239eb0afd46>
<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_150025c21df5178e5c955013591239eb0afd46>
<hash_1500250d9c0af8b8acdc7807943937b3208e29>
<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</cf_items>
</hash_1500250d9c0af8b8acdc7807943937b3208e29>
<hash_1500256fc2d038fb42950138b0ce3e9874cc60>
<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</cf_items>
</hash_1500256fc2d038fb42950138b0ce3e9874cc60>
<hash_150025e36f3adb9f152adfa5dc50fd2b23337e>
<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_150025e36f3adb9f152adfa5dc50fd2b23337e>
</cacti>
\ No newline at end of file
<cacti>
<hash_010025a922f2bb651ce4cc79c040aab34ee789>
<name>bcache - Hit Rate</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - bcache - Hit Rate</name>
<data_input_id>hash_0300251cd962214f207896cf48fa357bb5d96f</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_150025c21df5178e5c955013591239eb0afd46|hash_1500250d9c0af8b8acdc7807943937b3208e29|hash_1500256fc2d038fb42950138b0ce3e9874cc60|hash_150025e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_08002538cdee443da45d2c9f3c2620c1f2aabc>
<t_data_source_name></t_data_source_name>
<data_source_name>hr_1h</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_070025c99f507e7fbc2e216c5f82ec3f7e5963</data_input_field_id>
</hash_08002538cdee443da45d2c9f3c2620c1f2aabc>
<hash_080025ce4b99427bc8a486a8c8df1df1f446c8>
<t_data_source_name></t_data_source_name>
<data_source_name>hr_1d</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_07002505884e35a1041636902ea2ca3d7a9178</data_input_field_id>
</hash_080025ce4b99427bc8a486a8c8df1df1f446c8>
<hash_080025a805eaf851b542294d21f880f06c2192>
<t_data_source_name></t_data_source_name>
<data_source_name>hr</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_07002533a25b28a76c5349cee549f9eeb64be5</data_input_field_id>
</hash_080025a805eaf851b542294d21f880f06c2192>
<hash_0800258ce6c66bb278370312229f8543f573ae>
<t_data_source_name></t_data_source_name>
<data_source_name>hr_5m</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100</rrd_maximum>
<t_data_source_type_id></t_data_source_type_id>
<data_source_type_id>1</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>hash_070025012209bf01118ff3038069add21e0cb1</data_input_field_id>
</hash_0800258ce6c66bb278370312229f8543f573ae>
</items>
<data>
<item_000>
<data_input_field_id>hash_070025ee053d73bf400d1e49ad808555f83ffa</data_input_field_id>
<t_value>on</t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_070025fab9bd6c6b4d3ef205a66fd56c304404</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
</data>
</hash_010025a922f2bb651ce4cc79c040aab34ee789>
<hash_0300251cd962214f207896cf48fa357bb5d96f>
<name>bcache</name>
<type_id>1</type_id>
<input_string>bash &lt;path_cacti&gt;/scripts/get_bcache.sh &lt;hostname&gt; &lt;community&gt;</input_string>
<fields>
<hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<name>Hostname</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>hostname</data_name>
</hash_070025fab9bd6c6b4d3ef205a66fd56c304404>
<hash_070025ee053d73bf400d1e49ad808555f83ffa>
<name>Community</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>community</type_code>
<input_output>in</input_output>
<data_name>community</data_name>
</hash_070025ee053d73bf400d1e49ad808555f83ffa>
<hash_070025454d171076accb8182ad2fae6cb0ba48>
<name>Dirty Data</name>
<update_rra>on</update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>out</input_output>