Problem with "TMM memory"-template on F5 Big IP Lo

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

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
Kini
Posts: 25
Joined: Mon Jul 27, 2009 9:07 am
Location: Germany

Problem with "TMM memory"-template on F5 Big IP Lo

#1 Post by Kini » Fri Sep 25, 2009 3:21 am

Host = F5 Big IP Loadbalancer 6400
Problem = Graph is not built up

XML-File
<cacti>
<hash_000019d519d6dcbbad5730ae89448b60a1117a>
<name>F5 BigIP - TMM memory</name>
<graph>
<t_title></t_title>
<title>|host_description| - TMM memory</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_slope_mode>0</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>0</t_scale_log_units>
<scale_log_units></scale_log_units>
<t_auto_scale_rigid></t_auto_scale_rigid>
<auto_scale_rigid>on</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>1000</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_1000190e2facb8652af7bdb5d55612e3e88213>
<task_item_id>hash_080019ab96a48fd88bc81c1035534793cd20c0</task_item_id>
<color_id>0000FF</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Avilable memory</text_format>
<hard_return></hard_return>
<sequence>1</sequence>
</hash_1000190e2facb8652af7bdb5d55612e3e88213>
<hash_1000191a37627427faafee4dd382a0ad7df14d>
<task_item_id>hash_080019ab96a48fd88bc81c1035534793cd20c0</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return>on</hard_return>
<sequence>5</sequence>
</hash_1000191a37627427faafee4dd382a0ad7df14d>
<hash_10001989d77ffcbcaa2a5624af76d55cd14b6d>
<task_item_id>hash_0800196bc7b9c1b9989172015ca74283d7af9a</task_item_id>
<color_id>FFAB00</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Memory in use</text_format>
<hard_return></hard_return>
<sequence>6</sequence>
</hash_10001989d77ffcbcaa2a5624af76d55cd14b6d>
<hash_10001948693a9d2edd8a516e568f6dc3b447d1>
<task_item_id>hash_0800196bc7b9c1b9989172015ca74283d7af9a</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Current:</text_format>
<hard_return></hard_return>
<sequence>7</sequence>
</hash_10001948693a9d2edd8a516e568f6dc3b447d1>
<hash_10001937d59ce765dd630406551c04ca109ace>
<task_item_id>hash_0800196bc7b9c1b9989172015ca74283d7af9a</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Average:</text_format>
<hard_return></hard_return>
<sequence>8</sequence>
</hash_10001937d59ce765dd630406551c04ca109ace>
<hash_100019dd166ba9baeb4fcc147bb67a7e23064b>
<task_item_id>hash_0800196bc7b9c1b9989172015ca74283d7af9a</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_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>Maximum:</text_format>
<hard_return>on</hard_return>
<sequence>9</sequence>
</hash_100019dd166ba9baeb4fcc147bb67a7e23064b>
<hash_100019ea3b08f9f1f8ebdc48525156edf9996e>
<task_item_id>0</task_item_id>
<color_id>0</color_id>
<alpha>FF</alpha>
<graph_type_id>1</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value></value>
<gprint_id>hash_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format>The graph shows the total memory avilable to TMM compared to the memory in use.</text_format>
<hard_return></hard_return>
<sequence>10</sequence>
</hash_100019ea3b08f9f1f8ebdc48525156edf9996e>
<hash_1000194c82f5e1a730215a450b4212cc3e96ed>
<task_item_id>0</task_item_id>
<color_id>000000</color_id>
<alpha>FF</alpha>
<graph_type_id>3</graph_type_id>
<consolidation_function_id>1</consolidation_function_id>
<cdef_id>0</cdef_id>
<value>00:00</value>
<gprint_id>hash_060019e9c43831e54eca8069317a2ce8c6f751</gprint_id>
<text_format></text_format>
<hard_return></hard_return>
<sequence>11</sequence>
</hash_1000194c82f5e1a730215a450b4212cc3e96ed>
</items>
<inputs>
<hash_09001950c6d156fb3decd42021e6192a3dd6b7>
<name>Legend Color used memory</name>
<description></description>
<column_name>color_id</column_name>
<items>hash_00001989d77ffcbcaa2a5624af76d55cd14b6d</items>
</hash_09001950c6d156fb3decd42021e6192a3dd6b7>
<hash_090019233b9928fdc55a7493a86d9b759d5322>
<name>Data Source [TmmMemUsed]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_00001989d77ffcbcaa2a5624af76d55cd14b6d|hash_00001948693a9d2edd8a516e568f6dc3b447d1|hash_00001937d59ce765dd630406551c04ca109ace|hash_000019dd166ba9baeb4fcc147bb67a7e23064b</items>
</hash_090019233b9928fdc55a7493a86d9b759d5322>
<hash_090019c91f3ac7f4e5330965e371bde0c3f6a2>
<name>Data Source [TmmMemTotal]</name>
<description></description>
<column_name>task_item_id</column_name>
<items>hash_0000190e2facb8652af7bdb5d55612e3e88213|hash_0000191a37627427faafee4dd382a0ad7df14d</items>
</hash_090019c91f3ac7f4e5330965e371bde0c3f6a2>
<hash_0900191fd55ddde47685753dc3533edd4bb283>
<name>Legend color total memory</name>
<description></description>
<column_name>color_id</column_name>
<items>hash_0000190e2facb8652af7bdb5d55612e3e88213</items>
</hash_0900191fd55ddde47685753dc3533edd4bb283>
</inputs>
</hash_000019d519d6dcbbad5730ae89448b60a1117a>
<hash_01001940837c5ac943efaf9c1769749f0a71cb>
<name>F5 BigIP - TMM Memory</name>
<ds>
<t_name></t_name>
<name>|host_description| - TMM Memory</name>
<data_input_id>hash_03001983952596e3db19fb419b3812dbe244b4</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_150019c21df5178e5c955013591239eb0afd46|hash_1500190d9c0af8b8acdc7807943937b3208e29|hash_1500196fc2d038fb42950138b0ce3e9874cc60|hash_150019e36f3adb9f152adfa5dc50fd2b23337e|hash_150019283ea2bf1634d92ce081ec82a634f513</rra_items>
</ds>
<items>
<hash_080019ab96a48fd88bc81c1035534793cd20c0>
<t_data_source_name></t_data_source_name>
<data_source_name>TmmMemTotal</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>0</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_0700197d4c50ccbf1fbfe6986c107a63bd9035</data_input_field_id>
</hash_080019ab96a48fd88bc81c1035534793cd20c0>
<hash_0800196bc7b9c1b9989172015ca74283d7af9a>
<t_data_source_name></t_data_source_name>
<data_source_name>TmmMemUsed</data_source_name>
<t_rrd_minimum></t_rrd_minimum>
<rrd_minimum>0</rrd_minimum>
<t_rrd_maximum></t_rrd_maximum>
<rrd_maximum>0</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_070019af3a78a77e70644ff2529e348c67286e</data_input_field_id>
</hash_0800196bc7b9c1b9989172015ca74283d7af9a>
</items>
<data>
<item_000>
<data_input_field_id>hash_070019eb5f00100b0a51aa635013891e6bc28d</data_input_field_id>
<t_value></t_value>
<value></value>
</item_000>
<item_001>
<data_input_field_id>hash_0700194580a43c123eb6f427188989e2c83422</data_input_field_id>
<t_value></t_value>
<value></value>
</item_001>
<item_002>
<data_input_field_id>hash_0700191c80c34c4bb25029c4fdddf00c98deaa</data_input_field_id>
<t_value></t_value>
<value></value>
</item_002>
<item_003>
<data_input_field_id>hash_070019ff0dde7e80b46a4a9bebaa0e2ca8c04b</data_input_field_id>
<t_value></t_value>
<value></value>
</item_003>
<item_004>
<data_input_field_id>hash_07001914a4ca54af9de39a229fb2c6f9d72fc2</data_input_field_id>
<t_value></t_value>
<value></value>
</item_004>
<item_005>
<data_input_field_id>hash_070019c4082164ae062102e813871457304cef</data_input_field_id>
<t_value></t_value>
<value></value>
</item_005>
<item_006>
<data_input_field_id>hash_0700198cd5745a1665bec27f8f39c37972efc8</data_input_field_id>
<t_value></t_value>
<value></value>
</item_006>
</data>
</hash_01001940837c5ac943efaf9c1769749f0a71cb>
<hash_03001983952596e3db19fb419b3812dbe244b4>
<name>F5 BigIP - TMM memory</name>
<type_id>5</type_id>
<input_string>/srv/www/htdocs/cacti/scripts/ss_f5-bigip-tmm-memory.php ss_f5tmm_mem hostnamesnmp_communitysnmp_versionsnmp_portsnmp_timeoutsnmpv3_auth_usernamesnmpv3_auth_password</input_string>
<fields>
<hash_070019eb5f00100b0a51aa635013891e6bc28d>
<name>SNMP Timeout</name>
<update_rra></update_rra>
<regexp_match></regexp_match>
<allow_nulls></allow_nulls>
<type_code>snmp_timeout</type_code>
<input_output>in</input_output>
<data_name>snmp_timeout</data_name>
</hash_070019eb5f00100b0a51aa635013891e6bc28d>
<hash_070019af3a78a77e70644ff2529e348c67286e>
<name>Memory used by TMM</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>sysStatMemoryUsed</data_name>
</hash_070019af3a78a77e70644ff2529e348c67286e>
<hash_0700197d4c50ccbf1fbfe6986c107a63bd9035>
<name>Total memory avilable to TMM.</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>sysStatMemoryTotal</data_name>
</hash_0700197d4c50ccbf1fbfe6986c107a63bd9035>
<hash_0700194580a43c123eb6f427188989e2c83422>
<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_0700194580a43c123eb6f427188989e2c83422>
<hash_0700191c80c34c4bb25029c4fdddf00c98deaa>
<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_0700191c80c34c4bb25029c4fdddf00c98deaa>
<hash_070019ff0dde7e80b46a4a9bebaa0e2ca8c04b>
<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_070019ff0dde7e80b46a4a9bebaa0e2ca8c04b>
<hash_0700198cd5745a1665bec27f8f39c37972efc8>
<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_0700198cd5745a1665bec27f8f39c37972efc8>
<hash_070019c4082164ae062102e813871457304cef>
<name>SNMPv3 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>snmpv3_auth_password</data_name>
</hash_070019c4082164ae062102e813871457304cef>
<hash_07001914a4ca54af9de39a229fb2c6f9d72fc2>
<name>SNMPv3 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>snmpv3_auth_username</data_name>
</hash_07001914a4ca54af9de39a229fb2c6f9d72fc2>
</fields>
</hash_03001983952596e3db19fb419b3812dbe244b4>
<hash_150019c21df5178e5c955013591239eb0afd46>
<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_150019c21df5178e5c955013591239eb0afd46>
<hash_1500190d9c0af8b8acdc7807943937b3208e29>
<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_1500190d9c0af8b8acdc7807943937b3208e29>
<hash_1500196fc2d038fb42950138b0ce3e9874cc60>
<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_1500196fc2d038fb42950138b0ce3e9874cc60>
<hash_150019e36f3adb9f152adfa5dc50fd2b23337e>
<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_150019e36f3adb9f152adfa5dc50fd2b23337e>
<hash_150019283ea2bf1634d92ce081ec82a634f513>
<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_150019283ea2bf1634d92ce081ec82a634f513>
<hash_060019e9c43831e54eca8069317a2ce8c6f751>
<name>Normal</name>
<gprint_text>%8.2lf %s</gprint_text>
</hash_060019e9c43831e54eca8069317a2ce8c6f751>
</cacti>
Graph Debug Mode
RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Unique-LB01-028 - TMM memory" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti/rra/unique-lb01-028_tmmmemtotal_3654.rrd":TmmMemTotal:AVERAGE \
DEF:b="/srv/www/htdocs/cacti/rra/unique-lb01-028_tmmmemtotal_3654.rrd":TmmMemUsed:AVERAGE \
AREA:a#0000FFFF:"Avilable memory" \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" \
AREA:b#FFAB00FF:"Memory in use" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"The graph shows the total memory avilable to TMM compared to the memory in use." \
VRULE:1253829600#000000FF:""

RRDTool Says:

ERROR: opening '/srv/www/htdocs/cacti/rra/unique-lb01-028_tmmmemtotal_3654.rrd': No such file or directory
Whats wrong? Why is there no graph built up?
I can see the information of the memory on the interface of the F5. But Cacti doesn't graph anything here.

citizen_elah
Posts: 4
Joined: Thu Nov 29, 2007 5:48 pm
Location: St Louis, MO

#2 Post by citizen_elah » Fri Sep 25, 2009 10:28 am

did you put the script in the <cacti_path>/scripts directory?

User avatar
Kini
Posts: 25
Joined: Mon Jul 27, 2009 9:07 am
Location: Germany

#3 Post by Kini » Thu Oct 01, 2009 3:49 am

Yes there is the following file in .../cacti/scripts/

ss_f5-bigip-tmm-memory.php

I tested the two MIBs which are written in that file manually directly on the Loadbalancer.

Total = .1.3.6.1.4.1.3375.2.1.1.2.1.44.0
Used = .1.3.6.1.4.1.3375.2.1.1.2.1.45.0

There is something answering. But the value isn't correct or it is not the total/used memory.

What shall I do to get a graph? On the webinterface of the Loadbalancer I can see the total and used memory.

User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

#4 Post by BSOD2600 » Thu Oct 01, 2009 4:37 am

My rev7 bigip templates, http://forums.cacti.net/viewtopic.php?t=17030, I rewrote the TMM cpu/memory queries to be more efficient. Well anyways, you need to figure out whats broken with your current installation. Follow http://docs.cacti.net/manual:088:4_help ... #debugging

User avatar
Kini
Posts: 25
Joined: Mon Jul 27, 2009 9:07 am
Location: Germany

#5 Post by Kini » Wed Oct 07, 2009 7:50 am

I tested your new templates. They are all working like the other. Only the TMM Memory isnt working like before.

I dont think, that anything is wrong with my current installation.
Are there any other ways to try fixing that problem?

User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

#6 Post by BSOD2600 » Wed Oct 07, 2009 3:50 pm

Kini wrote:I tested the two MIBs which are written in that file manually directly on the Loadbalancer.

Total = .1.3.6.1.4.1.3375.2.1.1.2.1.44.0
Used = .1.3.6.1.4.1.3375.2.1.1.2.1.45.0

There is something answering. But the value isn't correct or it is not the total/used memory.
Kini wrote:I dont think, that anything is wrong with my current installation.
Your statements contradict each other. If the device isn't returning the correct data for the OIDs, then the graphs will be wrong...

I thought TmmStatMemoryTotal = .1.3.6.1.4.1.3375.2.1.8.2.3.1.31.3 and TmmStatMemoryUsed = .1.3.6.1.4.1.3375.2.1.8.2.3.1.32.3

Post Reply