APC UPS

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Lit
Posts: 14
Joined: Thu Aug 26, 2004 4:19 pm
Location: Ireland

APC UPS

Post by Lit »

Some APC monitoring
Attachments
cacti_host_template_lit_apc_ups.xml
(54.55 KiB) Downloaded 3154 times
Screen032.jpg
Screen032.jpg (81.6 KiB) Viewed 32996 times
ulot
Posts: 4
Joined: Tue Sep 14, 2004 12:52 pm

Post by ulot »

What version did you export this with? On both 0.8.5a and 0.8.6 it just does nothing. I seem to be able to import everything else just fine though.
Lit
Posts: 14
Joined: Thu Aug 26, 2004 4:19 pm
Location: Ireland

Post by Lit »

Was exported with 8.6 but been having issues with graph exports/imports, currently trying to sort out.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

We have addressed import/export with 0.8.6a. Will be released soon.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Jerry

APC Web/SNMP Management Card

Post by Jerry »

I've installed the templates and can query the mib through snmp, but no graphs.

Cacti 0.8.6b
Redhat 7.2
MySql 3.23.58
php 4.3.8
Guest

Battery Details Graph

Post by Guest »

Haven't had time to fix own sys yet so not sure whats working and whats not. Try this graph import.

<cacti>
<hash_00000597e35f6c0b4ab30a0175ce54ca3f93ba>
<name>Lit _APC_Battery_Details</name>
<graph>
<t_title></t_title>
<title>|host_description| - APC Battery Details</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>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></vertical_label>
</graph>
<items>
<hash_1000056ed9a9916e71932a608a641fa08d03a4>
<task_item_id>hash_0800052f4f43f118d8de718b6447b8940a7c67</task_item_id>
<color_id>005199</color_id>
<graph_type_id>7</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Battery Capacity %</text_format>
<hard_return></hard_return>
<sequence>1</sequence>
</hash_1000056ed9a9916e71932a608a641fa08d03a4>
<hash_1000057396b80a3e95e887609d9bdfe658e944>
<task_item_id>hash_0800052f4f43f118d8de718b6447b8940a7c67</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>2</sequence>
</hash_1000057396b80a3e95e887609d9bdfe658e944>
<hash_100005dd4af15a53e4832dc3c4de52e37c572d>
<task_item_id>hash_0800052f4f43f118d8de718b6447b8940a7c67</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>3</sequence>
</hash_100005dd4af15a53e4832dc3c4de52e37c572d>
<hash_100005d389d02f6c4b501e9a520eee161f63b6>
<task_item_id>hash_0800052f4f43f118d8de718b6447b8940a7c67</task_item_id>
<color_id>0</color_id>
<graph_type_id>9</graph_type_id>
<consolidation_function_id>2</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Minimun:</text_format>
<hard_return>on</hard_return>
<sequence>4</sequence>
</hash_100005d389d02f6c4b501e9a520eee161f63b6>
<hash_100005f3ff6f4dad889f27c8b14764f0f0430e>
<task_item_id>hash_080005156c267f433df572095ef6ea4534f78c</task_item_id>
<color_id>dd0000</color_id>
<graph_type_id>7</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Battery Load %</text_format>
<hard_return></hard_return>
<sequence>5</sequence>
</hash_100005f3ff6f4dad889f27c8b14764f0f0430e>
<hash_1000058fd6025ffe84235d111de82d5523b95c>
<task_item_id>hash_080005156c267f433df572095ef6ea4534f78c</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_1000058fd6025ffe84235d111de82d5523b95c>
<hash_100005887f6ec0f5c5ca85c81a44d3f213d196>
<task_item_id>hash_080005156c267f433df572095ef6ea4534f78c</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_100005887f6ec0f5c5ca85c81a44d3f213d196>
<hash_100005a1cf04fa895a84bffb0dc62d7fb8d6f4>
<task_item_id>hash_080005156c267f433df572095ef6ea4534f78c</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>8</sequence>
</hash_100005a1cf04fa895a84bffb0dc62d7fb8d6f4>
<hash_100005a87920facf3c0dff3a266de1dd9b1de3>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</task_item_id>
<color_id>FFFFFF</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Battery Temp</text_format>
<hard_return></hard_return>
<sequence>9</sequence>
</hash_100005a87920facf3c0dff3a266de1dd9b1de3>
<hash_100005dc0e32b0729de8a4ebcf1adb0cfe9770>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>10</sequence>
</hash_100005dc0e32b0729de8a4ebcf1adb0cfe9770>
<hash_10000523acf4dad75a0a4149d089d5dceb5f70>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>11</sequence>
</hash_10000523acf4dad75a0a4149d089d5dceb5f70>
<hash_100005ec31b312b591685546b3a501975af757>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>12</sequence>
</hash_100005ec31b312b591685546b3a501975af757>
<hash_1000057f6be520f1cb1b7ce51cdb2082f05615>
<task_item_id>hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42</task_item_id>
<color_id>FAFD9E</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_06000519414480d6897c8731c7dc6c5310653e</gprint_id>
<text_format>Battery Status</text_format>
<hard_return></hard_return>
<sequence>17</sequence>
</hash_1000057f6be520f1cb1b7ce51cdb2082f05615>
<hash_100005b80414071e65323599816494f5aa6df5>
<task_item_id>hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>18</sequence>
</hash_100005b80414071e65323599816494f5aa6df5>
<hash_100005da5d97f427dad7a6d491d4cf7b00cdf2>
<task_item_id>hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Max:</text_format>
<hard_return>on</hard_return>
<sequence>19</sequence>
</hash_100005da5d97f427dad7a6d491d4cf7b00cdf2>
<hash_1000059fac9ccc2b28659a5f11f9656b230818>
<task_item_id>hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Unable to sustain current load if battery status is over 3</text_format>
<hard_return>on</hard_return>
<sequence>20</sequence>
</hash_1000059fac9ccc2b28659a5f11f9656b230818>
<hash_100005ee6050f0b581df9bcd4eed3a23ce2fd6>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format></text_format>
<hard_return>on</hard_return>
<sequence>21</sequence>
</hash_100005ee6050f0b581df9bcd4eed3a23ce2fd6>
<hash_100005894f885ce370d67181b68da5a31506c8>
<task_item_id>hash_080005118e60c941ca61ccab298a5e9ac8780d</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_060005e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Last Updated: |date_time|</text_format>
<hard_return></hard_return>
<sequence>22</sequence>
</hash_100005894f885ce370d67181b68da5a31506c8>
</items>
<inputs>
<hash_0900054d58ec2421347abeded2c19ceb2046d9>
<name>Data Source [Lit_APC_Battery_Lo]</name>
<description></description>
<column_name>task_item_id</column_name>
<items></items>
</hash_0900054d58ec2421347abeded2c19ceb2046d9>
<hash_0900055206cdd3fe3cf82c86ed6224408f1626>
<name>Data Source [Lit_APC_Battery_Cap]</name>
<description></description>
<column_name>task_item_id</column_name>
<items></items>
</hash_0900055206cdd3fe3cf82c86ed6224408f1626>
<hash_0900055dd616d10da5a9a00d1c900b99e5085e>
<name>Data Source [Lit_APC_Battery_Te]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_000005a87920facf3c0dff3a266de1dd9b1de3</items>
</hash_0900055dd616d10da5a9a00d1c900b99e5085e>
<hash_090005a0578a4e2b8f27332c56b75bc6e2ce75>
<name>Data Source [Lit_APC_Battery_Sa]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000057f6be520f1cb1b7ce51cdb2082f05615|hash_000005da5d97f427dad7a6d491d4cf7b00cdf2|hash_0000059fac9ccc2b28659a5f11f9656b230818</items>
</hash_090005a0578a4e2b8f27332c56b75bc6e2ce75>
</inputs>
</hash_00000597e35f6c0b4ab30a0175ce54ca3f93ba>
<hash_0100059cbea5f6433975185d082a082684f3e6>
<name>Lit _APC_Battery_Status</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Lit _APC_Battery_Status</name>
<data_input_id>hash_0300053eb92bb845b9660a7445cf9740726522</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_150005c21df5178e5c955013591239eb0afd46|hash_1500050d9c0af8b8acdc7807943937b3208e29|hash_1500056fc2d038fb42950138b0ce3e9874cc60|hash_150005e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42>
<t_data_source_name></t_data_source_name>
<data_source_name>Lit_APC_Battery_Sa</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>1000000000</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>0</data_input_field_id>
</hash_080005ce3ed69780cb6c6a4c4f4d444fd38e42>
</items>
<data>
<item_000>
<data_input_field_id>hash_0700054276a5ec6e3fe33995129041b1909762</data_input_field_id>
<t_value></t_value>
<value>.1.3.6.1.4.1.318.1.1.1.2.1.1.0</value>
</item_000>
<item_001>
<data_input_field_id>hash_070005012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700059c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_070005ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_07000532285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_07000592f5906c8dc0f964b41f4253df582c38</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
</data>
</hash_0100059cbea5f6433975185d082a082684f3e6>
<hash_010005847645fa0183d652789d61ca9662fe6b>
<name>Lit _APC_Battery_Capacity %</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Lit _APC_Battery_Capacity</name>
<data_input_id>hash_0300053eb92bb845b9660a7445cf9740726522</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_150005c21df5178e5c955013591239eb0afd46|hash_1500050d9c0af8b8acdc7807943937b3208e29|hash_1500056fc2d038fb42950138b0ce3e9874cc60|hash_150005e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_0800052f4f43f118d8de718b6447b8940a7c67>
<t_data_source_name></t_data_source_name>
<data_source_name>Lit_APC_Battery_Cap</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>1000000000</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>0</data_input_field_id>
</hash_0800052f4f43f118d8de718b6447b8940a7c67>
</items>
<data>
<item_000>
<data_input_field_id>hash_0700054276a5ec6e3fe33995129041b1909762</data_input_field_id>
<t_value></t_value>
<value>.1.3.6.1.4.1.318.1.1.1.2.2.1.0</value>
</item_000>
<item_001>
<data_input_field_id>hash_070005012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700059c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_070005ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_07000532285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_07000592f5906c8dc0f964b41f4253df582c38</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
</data>
</hash_010005847645fa0183d652789d61ca9662fe6b>
<hash_010005065dddf55ba9bb7dc659a14ce2f706d3>
<name>Lit _APC_Battery_Temp</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Lit _APC_Battery_Temp</name>
<data_input_id>hash_0300053eb92bb845b9660a7445cf9740726522</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_150005c21df5178e5c955013591239eb0afd46|hash_1500050d9c0af8b8acdc7807943937b3208e29|hash_1500056fc2d038fb42950138b0ce3e9874cc60|hash_150005e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_080005118e60c941ca61ccab298a5e9ac8780d>
<t_data_source_name></t_data_source_name>
<data_source_name>Lit_APC_Battery_Te</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>1000000000</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>0</data_input_field_id>
</hash_080005118e60c941ca61ccab298a5e9ac8780d>
</items>
<data>
<item_000>
<data_input_field_id>hash_0700054276a5ec6e3fe33995129041b1909762</data_input_field_id>
<t_value></t_value>
<value>.1.3.6.1.4.1.318.1.1.1.2.2.2.0</value>
</item_000>
<item_001>
<data_input_field_id>hash_070005012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700059c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_070005ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_07000532285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_07000592f5906c8dc0f964b41f4253df582c38</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
</data>
</hash_010005065dddf55ba9bb7dc659a14ce2f706d3>
<hash_010005c97f09063f9fa263438641fa3c39223e>
<name>Lit _APC_Battery_Load %</name>
<ds>
<t_name>on</t_name>
<name>|host_description| - Lit _APC_Battery_Load %</name>
<data_input_id>hash_0300053eb92bb845b9660a7445cf9740726522</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_150005c21df5178e5c955013591239eb0afd46|hash_1500050d9c0af8b8acdc7807943937b3208e29|hash_1500056fc2d038fb42950138b0ce3e9874cc60|hash_150005e36f3adb9f152adfa5dc50fd2b23337e</rra_items>
</ds>
<items>
<hash_080005156c267f433df572095ef6ea4534f78c>
<t_data_source_name></t_data_source_name>
<data_source_name>Lit_APC_Battery_Lo</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>1000000000</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>0</data_input_field_id>
</hash_080005156c267f433df572095ef6ea4534f78c>
</items>
<data>
<item_000>
<data_input_field_id>hash_0700054276a5ec6e3fe33995129041b1909762</data_input_field_id>
<t_value></t_value>
<value>.1.3.6.1.4.1.318.1.1.1.4.2.3.0</value>
</item_000>
<item_001>
<data_input_field_id>hash_070005012ccb1d3687d3edb29c002ea66e72da</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700059c55a74bd571b4f00a96fd4b793278c6</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_070005ad14ac90641aed388139f6ba86a2e48b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_07000532285d5bf16e56c478f5e83f32cda9ef</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_07000592f5906c8dc0f964b41f4253df582c38</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
</data>
</hash_010005c97f09063f9fa263438641fa3c39223e>
<hash_0300053eb92bb845b9660a7445cf9740726522>
<name>Get SNMP Data</name>
<type_id>2</type_id>
<input_string></input_string>
<fields>
<hash_07000592f5906c8dc0f964b41f4253df582c38>
<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_07000592f5906c8dc0f964b41f4253df582c38>
<hash_07000532285d5bf16e56c478f5e83f32cda9ef>
<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_07000532285d5bf16e56c478f5e83f32cda9ef>
<hash_070005ad14ac90641aed388139f6ba86a2e48b>
<name>SNMP Username</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_070005ad14ac90641aed388139f6ba86a2e48b>
<hash_0700059c55a74bd571b4f00a96fd4b793278c6>
<name>SNMP Password</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_0700059c55a74bd571b4f00a96fd4b793278c6>
<hash_070005012ccb1d3687d3edb29c002ea66e72da>
<name>SNMP Version (1, 2, or 3)</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls>on</allow_nulls>
<type_code>snmp_version</type_code>
<input_output>in</input_output>
<data_name>snmp_version</data_name>
</hash_070005012ccb1d3687d3edb29c002ea66e72da>
<hash_0700054276a5ec6e3fe33995129041b1909762>
<name>OID</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>snmp_oid</type_code>
<input_output>in</input_output>
<data_name>oid</data_name>
</hash_0700054276a5ec6e3fe33995129041b1909762>
</fields>
</hash_0300053eb92bb845b9660a7445cf9740726522>
<hash_150005c21df5178e5c955013591239eb0afd46>
<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|4</cf_items>
</hash_150005c21df5178e5c955013591239eb0afd46>
<hash_1500050d9c0af8b8acdc7807943937b3208e29>
<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|4</cf_items>
</hash_1500050d9c0af8b8acdc7807943937b3208e29>
<hash_1500056fc2d038fb42950138b0ce3e9874cc60>
<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|4</cf_items>
</hash_1500056fc2d038fb42950138b0ce3e9874cc60>
<hash_150005e36f3adb9f152adfa5dc50fd2b23337e>
<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|4</cf_items>
</hash_150005e36f3adb9f152adfa5dc50fd2b23337e>
<hash_060005e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060005e9c43831e54eca8069317a2ce8c6f751>
<hash_06000519414480d6897c8731c7dc6c5310653e>
<name>Exact Numbers</name>
<gprint_text>%8.0lf</gprint_text>
</hash_06000519414480d6897c8731c7dc6c5310653e>
</cacti>
Jerry

APC UPS

Post by Jerry »

The new template works like a champ after I changed over to SMNP v1. On error codes I'm showing a code 4 blackout? I don't think so?

Jerry
ulot
Posts: 4
Joined: Tue Sep 14, 2004 12:52 pm

Post by ulot »

Still doesn't load on 0.8.6a. I upgraded to 0.8.6b and the orginal imports and works fine. I am using SNMPv1. Haven't tried v2 though. I'm not sure that the APC Network Management card even supports v2.
Lit .

Error Codes

Post by Lit . »

Error code is the reason for the occurrence of the last transfer to ups battery power.

black out 4 = if the duration of the outage is greater than five seconds and the line voltage is between 40% of the rated output voltage and ground
marly
Posts: 3
Joined: Sat Mar 26, 2005 9:00 pm

Post by marly »

Sorry if this out dated, but

I installed these and its working great. However, like Jerry I'm showing the last state of the error for the error code.

So I went and looked up the OID for the current state of the UPS.

The OID I'm looking at is: .1.3.6.1.4.1.318.1.1.1.11.1.1.0

It says in the MIB that it's "an ASCII string containing the 64 flags representing the current state(s) of the UPS"

When I run "snmpget" on the OID, it returns 0001010000000000001000000000000000000000000000000000000000000000

Which I'm assuming is Flag 4, "Online"

I assume that's a binary for something :) I converted it to decimal and I really don't see anything important and then I converted it to Hex and I don't see anything important. So what am I supposed to do with this really long string? :)

If anyone could shed some light on this, I would very much appreciate it.

Thanks,
marly
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

0.8.6d import error with cacti_host_template_lit_apc_ups.xml

Post by mpdsville1 »

Apc template problem ..

I recieve an error " Error: XML: Cacti version does not exist. "
when tying to feed this template to cacti 0.8.6d, but no error when
adding it to 0.8.6c. I was under the impression that templates
wouldnt be "backwards compatible" , but this behavior seems
opposite of that .. Is this a template or cacti version problem?

How do I get around it ?

Thanks !
Mike Donnelly , Albany , NY
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

followup

Post by mpdsville1 »

Problem was unrelated to the APC template ... Resolved. Thanks , and
nice job!
Mike Donnelly , Albany , NY
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
3ngin33r1
Posts: 11
Joined: Mon Jun 06, 2005 4:34 pm

Post by 3ngin33r1 »

Lit,

I hope you don't mind but I took what you did here and added some additional stuff like input/output frequencies, output load amperes, output load voltage and output load wattage.

I did this specificaly for an APC SU5000RM with an AP9606 card. not sure if the OIDs are the same on other APCs.
Attachments
cacti_host_template_apc_su5000rm.xml
APC SU5000RM + Lit's stuff exported with 0.8.6c
(83.94 KiB) Downloaded 2143 times
User avatar
mpdsville1
Cacti User
Posts: 71
Joined: Wed Mar 16, 2005 12:11 pm
Location: Albany , NY , USA

Note on APC template

Post by mpdsville1 »

After Applying this template The Daily, Weekly, Monthly, and Yearly RRA
values are reset back to the defaults. If you have modified your RRA
values , be sure to reset them after applying this template.

My system keeps 7 days of 5min averages, 6 weeks of 30min, 6 months
of 2hour, and 2years of 1day.

Thanks for the updated template!
Mike Donnelly , Albany , NY
| Cacti 0.8.7g | Spine 0.8.7g | MySQL 5.0.77 | Net-SNMP 5.3.2.2 | Apache 2.2.3 | PHP 5.3.3 | RRDtool 1.2.27 | Rhel6 | Dual Xeon E5410@2.33ghz | Sunfire x4150
3ngin33r1
Posts: 11
Joined: Mon Jun 06, 2005 4:34 pm

Post by 3ngin33r1 »

I didn't see this in here anywhere and had seen reports of people not being able to calculate battery runtime remaining on the UPS or only being able to do it if the UPS was on battery.

Here's a template for doing this on battery or not.

I'm not sure if this works on any other UPS since I only have SU5000RMs with AP9606 cards.

Not too complicated, poll the UPS with OID 1.3.6.1.4.1.318.1.1.1.2.2.3.0 and then divide the result by 6000.
Attachments
cacti_graph_template_mgc_apc_battery_runtime.xml
Battery runtime template exported with 0.8.6d.
(10.74 KiB) Downloaded 1664 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests