Skip to content

Instantly share code, notes, and snippets.

@r-plus
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save r-plus/09e4452b50a26db31a27 to your computer and use it in GitHub Desktop.

Select an option

Save r-plus/09e4452b50a26db31a27 to your computer and use it in GitHub Desktop.
Cacti templace - DNS received query request/sec for Windows via WMI
<cacti>
<hash_0000247a26072efb1c6c5b9358fa308220a69a>
<name>Windows - DNS(WMI)</name>
<graph>
<t_title>on</t_title>
<title>|host_description| - DNS</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>750</width>
<t_slope_mode></t_slope_mode>
<slope_mode>on</slope_mode>
<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_scale_log_units></t_scale_log_units>
<scale_log_units></scale_log_units>
<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>100</upper_limit>
<t_lower_limit></t_lower_limit>
<lower_limit>0</lower_limit>
<t_base_value></t_base_value>
<base_value>1000</base_value>
<t_unit_value></t_unit_value>
<unit_value></unit_value>
<t_unit_exponent_value></t_unit_exponent_value>
<unit_exponent_value></unit_exponent_value>
<t_vertical_label></t_vertical_label>
<vertical_label>Operations Per Sec</vertical_label>
</graph>
<items>
<hash_100024d7e0e7f9006b82382435b073582b2e7c>
<task_item_id>hash_080024551e5d68a5806cd4e644b549a2c26cc5</task_item_id>
<color_id>F51D30</color_id>
<alpha>FF</alpha>
<graph_type_id>7</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Total:</text_format>
<hard_return></hard_return>
<sequence>1</sequence>
</hash_100024d7e0e7f9006b82382435b073582b2e7c>
<hash_100024cdc2115f0106b0e36646d6e594b82f50>
<task_item_id>hash_080024551e5d68a5806cd4e644b549a2c26cc5</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>2</sequence>
</hash_100024cdc2115f0106b0e36646d6e594b82f50>
<hash_100024561e361cdd8499af0d550806eda23fa0>
<task_item_id>hash_080024551e5d68a5806cd4e644b549a2c26cc5</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>3</sequence>
</hash_100024561e361cdd8499af0d550806eda23fa0>
<hash_100024b50eab06b3e69f1289678949ad998abb>
<task_item_id>hash_080024551e5d68a5806cd4e644b549a2c26cc5</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>4</sequence>
</hash_100024b50eab06b3e69f1289678949ad998abb>
<hash_100024492bb01fb523aac6d41855bbf784d1aa>
<task_item_id>hash_0800245bcb3eede95caf166e6517b26ae087ea</task_item_id>
<color_id>0000FF</color_id>
<alpha>FF</alpha>
<graph_type_id>4</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>RecursiveQueries:</text_format>
<hard_return></hard_return>
<sequence>5</sequence>
</hash_100024492bb01fb523aac6d41855bbf784d1aa>
<hash_100024e835665d6e243a09c3ee19909d66c92e>
<task_item_id>hash_0800245bcb3eede95caf166e6517b26ae087ea</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>4</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_100024e835665d6e243a09c3ee19909d66c92e>
<hash_10002402160793d61baaa15b4a095aa5448931>
<task_item_id>hash_0800245bcb3eede95caf166e6517b26ae087ea</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_10002402160793d61baaa15b4a095aa5448931>
<hash_100024bd0e40773528b21baaa65392ee980257>
<task_item_id>hash_0800245bcb3eede95caf166e6517b26ae087ea</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>3</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060024e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>8</sequence>
</hash_100024bd0e40773528b21baaa65392ee980257>
</items>
<inputs>
<hash_090024e24a5773ee3a60aa45525260c756374d>
<name>Data Source [TotalQueryReceived]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000024d7e0e7f9006b82382435b073582b2e7c|hash_000024cdc2115f0106b0e36646d6e594b82f50|hash_000024561e361cdd8499af0d550806eda23fa0|hash_000024b50eab06b3e69f1289678949ad998abb</items>
</hash_090024e24a5773ee3a60aa45525260c756374d>
<hash_0900245d65c70761dcca6a82faa6c1e6efb208>
<name>Data Source [RecursiceQueries]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000024492bb01fb523aac6d41855bbf784d1aa|hash_000024e835665d6e243a09c3ee19909d66c92e|hash_00002402160793d61baaa15b4a095aa5448931|hash_000024bd0e40773528b21baaa65392ee980257</items>
</hash_0900245d65c70761dcca6a82faa6c1e6efb208>
</inputs>
</hash_0000247a26072efb1c6c5b9358fa308220a69a>
<hash_010024ef67918a14e56e755366b8d39535e540>
<name>Windows - DNS(WMI)</name>
<ds>
<t_name></t_name>
<name>|host_description| - Windows - DNS</name>
<data_input_id>hash_030024ac3179fee753d5efcf6faf111d6290ee</data_input_id>
<t_rra_id></t_rra_id>
<t_rrd_step></t_rrd_step>
<rrd_step>60</rrd_step>
<t_active></t_active>
<active>on</active>
<rra_items>hash_150024c21df5178e5c955013591239eb0afd46|hash_1500240d9c0af8b8acdc7807943937b3208e29|hash_1500246fc2d038fb42950138b0ce3e9874cc60|hash_150024e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_0800245bcb3eede95caf166e6517b26ae087ea>
<t_data_source_name></t_data_source_name>
<data_source_name>RecursiceQueries</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100000000000</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>hash_070024a24e2fd3a723149f4a06af0987e067a7</data_input_field_id>
</hash_0800245bcb3eede95caf166e6517b26ae087ea>
<hash_080024551e5d68a5806cd4e644b549a2c26cc5>
<t_data_source_name></t_data_source_name>
<data_source_name>TotalQueryReceived</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>100000000000</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>hash_070024df4053627b400370f7761138ccea0339</data_input_field_id>
</hash_080024551e5d68a5806cd4e644b549a2c26cc5>
</items>
<data>
<item_000>
<data_input_field_id>hash_070024d88d3048d435c1b7f977ad562aa82c29</data_input_field_id>
<t_value></t_value>
<value>TotalQueryReceived,RecursiveQueries</value>
</item_000>
<item_001>
<data_input_field_id>hash_070024c72e24669364a792f30631af6506611b</data_input_field_id>
<t_value></t_value>
<value>Win32_PerfRawData_DNS_DNS</value>
</item_001>
<item_002>
<data_input_field_id>hash_070024256b6e66a4e8c79d30a306e8914d13c8</data_input_field_id>
<t_value>on</t_value>
<value>/etc/cacti/cactiwmi.pw</value>
</item_002>
<item_003>
<data_input_field_id>hash_070024bf8e9ae029fd1fc9f004c9883511b1c9</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
</data>
</hash_010024ef67918a14e56e755366b8d39535e540>
<hash_030024ac3179fee753d5efcf6faf111d6290ee>
<name>WMI - DNS</name>
<type_id>1</type_id>
<input_string>/usr/bin/php -q &lt;path_cacti&gt;/scripts/wmi.php -h &#039;&lt;host&gt;&#039; -u &#039;&lt;credential&gt;&#039; -w &lt;class&gt; -c &lt;columns&gt;</input_string>
<fields>
<hash_070024bf8e9ae029fd1fc9f004c9883511b1c9>
<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>host</data_name>
</hash_070024bf8e9ae029fd1fc9f004c9883511b1c9>
<hash_070024256b6e66a4e8c79d30a306e8914d13c8>
<name>Credential</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>in</input_output>
<data_name>credential</data_name>
</hash_070024256b6e66a4e8c79d30a306e8914d13c8>
<hash_070024c72e24669364a792f30631af6506611b>
<name>Class</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>in</input_output>
<data_name>class</data_name>
</hash_070024c72e24669364a792f30631af6506611b>
<hash_070024d88d3048d435c1b7f977ad562aa82c29>
<name>Columns</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code></type_code>
<input_output>in</input_output>
<data_name>columns</data_name>
</hash_070024d88d3048d435c1b7f977ad562aa82c29>
<hash_070024df4053627b400370f7761138ccea0339>
<name>TotalQueryReceived</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>TotalQueryReceived</data_name>
</hash_070024df4053627b400370f7761138ccea0339>
<hash_070024a24e2fd3a723149f4a06af0987e067a7>
<name>RecursiveQueries</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>RecursiveQueries</data_name>
</hash_070024a24e2fd3a723149f4a06af0987e067a7>
</fields>
</hash_030024ac3179fee753d5efcf6faf111d6290ee>
<hash_150024c21df5178e5c955013591239eb0afd46>
<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_150024c21df5178e5c955013591239eb0afd46>
<hash_1500240d9c0af8b8acdc7807943937b3208e29>
<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_1500240d9c0af8b8acdc7807943937b3208e29>
<hash_1500246fc2d038fb42950138b0ce3e9874cc60>
<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_1500246fc2d038fb42950138b0ce3e9874cc60>
<hash_150024e36f3adb9f152adfa5dc50fd2b23337e>
<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_150024e36f3adb9f152adfa5dc50fd2b23337e>
<hash_060024e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060024e9c43831e54eca8069317a2ce8c6f751>
</cacti>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment