BigIP v9 Template

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

Moderators: Developers, Moderators

Post Reply
bq
Posts: 7
Joined: Mon Mar 02, 2009 6:18 pm

Post by bq »

sorry - here's the CPU debug output:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="bwi40b-scripps-bigip-1-p - TMM CPU Usage" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/cacti/rra/bwi40b-scripps-bigip-1-p_tmmcpu_91.rrd":tmmcpu:AVERAGE \
AREA:a#FF0000FF:"TMM CPU Usage" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

Guys, have you managed to make the TMM memory graph working? It used to work just fine in the older Cacti revisions (If I am not mistaken the graph was rendering correctly even in 0.8.7b), but it does not work in 0.8.7d.

Here is what my script looks like:

Code: Select all

<?php
$no_http_headers = true;
/* display No errors */
error_reporting(E_ERROR);
include_once(dirname(__FILE__) . "/../include/global.php");
include_once(dirname(__FILE__) . "/../lib/snmp.php");
if (!isset($called_by_script_server)) {
        array_shift($_SERVER["argv"]);
        print call_user_func_array("ss_f5tmm_mem", $_SERVER["argv"]);
}
function ss_f5tmm_mem($hostname, $snmp_community, $snmp_version, $snmp_port, $snmp_timeout, $snmpv3_auth_username, $snmpv3_auth_password) {
        if (($snmp_version == "1" | $snmp_version == "2")) {
             $snmpv3_auth_username = "";
             $snmpv3_auth_password = "";
             $snmpv3_auth_protocol = "";
             $snmpv3_priv_passphrase = "";
             $snmpv3_priv_protocol = "";
        }
        $result = "";
        $oids = array(
                "sysStatMemoryTotal" => ".1.3.6.1.4.1.3375.2.1.1.2.1.44.0",
                "sysStatMemoryUsed" => ".1.3.6.1.4.1.3375.2.1.1.2.1.45.0"
                );
        for ($i=0;$i<(count($oids));$i++) {
                $row = each($oids);
                $var = (cacti_snmp_get($hostname, $snmp_community, $row["value"], $snmp_version, $snmpv3_auth_username, $snmpv3_auth_password, "", "", "", "", $snmp_port, $snmp_timeout, SNMP_POLLER));
                $result = is_numeric($var) ? ($result . $row["key"] . ":" . $var . " ") : ($result . $row["key"] . ":NaN ");
        }
        return trim($result);
}
?>
I see this in the log file:

Code: Select all

SPINE: Poller[0] Host[127] DS[8071] SS[0] SERVER: /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php ss_f5tmm_mem a.b.c.d Public 2 161 500  , output: U
When I execute the script manually:
/var/www/cacti/log# php /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php a.b.c.d Public 2 161 500 "" ""
I get the correct values. It must have to do with the last two "" "". Cacti seems to have difficulties with the script response when not all of the input fields are populated. If I execute the script manually without the last two fields (SNMP v2), I get the following response:

Code: Select all

Warning: Missing argument 6 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15
Warning: Missing argument 7 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15
and then the correct data. Is there a way to suppress these warnings?

Thanks,
AL
bq
Posts: 7
Joined: Mon Mar 02, 2009 6:18 pm

Post by bq »

Yes I was able to resolve this issue. You need to download and install the SNMP Value Trim Issue official patch for 0.8.7d .... Here's the direct link
http://www.cacti.net/downloads/patches/ ... tion.patch
Patch was released on 3/2/09
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bq wrote:Yes I was able to resolve this issue. You need to download and install the SNMP Value Trim Issue official patch for 0.8.7d .... Here's the direct link
http://www.cacti.net/downloads/patches/ ... tion.patch
Patch was released on 3/2/09
Thanks bq. This did the trick!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

After downloading the rev6 templates, I fould a lot missing/broken. Spent some time fixing/adding various things. Attached is my rev7 copy of things. I also exported single Data Queries / graph templates, in addition to the massive host template. This makes it easier for others to upgrade pieces they want. Re-wrote the TMM cpu/memory usage for pure SNMP and a complex CDEF to do the math.

Exported on Cacti 0.8.7d.

Data Queries
F5 BigIP - Chassis Fan
F5 BigIP - Chassis Temperature
F5 BigIP - Interface Statistics
- In/Out Errors/Drops/Collisions
- Traffic (bits/sec)
F5 BigIP - System CPU Enviroment Statistics
- Fan
- Temperature
F5 BigIP - TMM CPU Statistics
-TMM CPU Usage
-TMM Memory
F5 BigIP - VS Statistics
-VS Connection Duration
-VS Connection Rate (Connections/sec)
-VS Connections
-VS Traffic (bits/sec)

Graph Templates
F5 BigIP - Chassis Fan
F5 BigIP - Chassis Temperature
F5 BigIP - Global Connections
F5 BigIP - Global HTTP 2xx/3xx Responses
F5 BigIP - Global HTTP Requests
F5 BigIP - Global HTTP Response Errors
F5 BigIP - Global HTTP Responses
F5 BigIP - Global packets/sec
F5 BigIP - Host Memory
F5 BigIP - Interface Errors/Drops/Collisions
F5 BigIP - Interface Traffic (bits/sec)
F5 BigIP - SSL TPS
F5 BigIP - System CPU Fan
F5 BigIP - System CPU Temperature
F5 BigIP - TMM CPU Usage
F5 BigIP - TMM Memory
F5 BigIP - VS Connection Duration
F5 BigIP - VS Connection Rate
F5 BigIP - VS Connections
F5 BigIP - VS Traffic (bits/sec)

Rev 7 file removed. See the first post
Last edited by BSOD2600 on Tue Apr 07, 2009 7:11 pm, edited 1 time in total.
srossen
Posts: 43
Joined: Mon Jun 13, 2005 1:10 pm

Post by srossen »

Nice work on Rev 7, working just fine on my BigIP's.
OrionX
Posts: 7
Joined: Tue Apr 07, 2009 6:42 pm

Post by OrionX »

Unfortunately, when I try to import the host, graph and/or data templates, I get:

"Error: XML: Hash version does not exist."

I am using 0.8.7b. Are these templates specific to 0.8.7d?
OrionX
Posts: 7
Joined: Tue Apr 07, 2009 6:42 pm

Post by OrionX »

Ok, I found a thread referencing that error that essentially says that templates exported from a newer version of cacti will not import into an older version.

Any ideas on how to get the version-7 templates to import into 0.8.7b? I really want to try and avoid having to "upgrade" 0.8.7d since I already have PIA installed and working and I have read about tons of problems getting PIA going with 0.8.7d.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

OrionX wrote:Any ideas on how to get the version-7 templates to import into 0.8.7b?
Not possible.

No problems here getting PIA 2.4 (using pre-patched files) installed on 0.8.7d.
OrionX
Posts: 7
Joined: Tue Apr 07, 2009 6:42 pm

Post by OrionX »

BSOD2600 wrote: Not possible.

No problems here getting PIA 2.4 (using pre-patched files) installed on 0.8.7d.
Ah, figured as much. I'll try upgrading to 0.8.7d with PIA 2.4 tonight then.
OrionX
Posts: 7
Joined: Tue Apr 07, 2009 6:42 pm

Post by OrionX »

Well, I installed 0.8.7d and PA 2.4, and that all seemed to go well, but now, I have no plugins showing up under Plugin Management, same as this guy:

http://forums.cacti.net/viewtopic.php?t=32043

Even though there are plugins defined:

Code: Select all

$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'settings';
$plugins[] = 'realtime';
A search so far is turning up very little in the way of how to diagnose and solve this......
:(
OrionX
Posts: 7
Joined: Tue Apr 07, 2009 6:42 pm

Post by OrionX »

This turned out to be a permissions issue - see my post in the Plugin Architecture forum.

The version 7 template is very nice. :D
bq
Posts: 7
Joined: Mon Mar 02, 2009 6:18 pm

Post by bq »

Does anyone know how to query compression information off the LTM - global & per virtual server? I've just installed rev7 as I thought I saw some reference to global HTTP compression stats ... but turns out I was wrong!

Thanks.
bq
Posts: 7
Joined: Mon Mar 02, 2009 6:18 pm

Post by bq »

Installed rev 7 and now I'm constantly getting these errors:

04/22/2009 01:56:20 PM - CMDPHP: Poller[0] Host[10] DS[263] WARNING: Result from SNMP not valid. Partial Result: U

The Data Source Fields are for Errors index value .3.49.46.55 and traffic index value .3.49.46.49.

The last time this issue was resolved with the "SNMP value trim issue" patch for 0.8.7d ... anyone else having this issue? The graphs for errors and traffic are reporting values of nan!

Thanks[/img]
bq
Posts: 7
Joined: Mon Mar 02, 2009 6:18 pm

Post by bq »

I referenced the f5_bigip_ifStat.xml from the original post at http://devcentral.f5.com/Default.aspx?t ... icleId=136 and changed the current rev 7 lines:

Code: Select all

- <interface>
  <name>Get F5 Big-IP interface statistics</name> 
  <oid_index>.1.3.6.1.4.1.3375.2.1.2.4.1.2.1.1</oid_index> 
  <oid_num_indexes>.1.3.6.1.4.1.3375.2.1.2.4.1.1.0</oid_num_indexes> 
  <oid_index_parse>OID/REGEXP:^.{33}(.*)</oid_index_parse> 
  <index_order>ifIndex</index_order> 
  <index_order_type>alphabetic</index_order_type>



to:

Code: Select all

- <interface>
  <name>Get F5 Big-IP interface statistics</name> 
  <oid_index>.1.3.6.1.4.1.3375.2.1.2.4.4.3.1.1</oid_index> 
  <oid_num_indexes>.1.3.6.1.4.1.3375.2.1.2.4.1.1.0</oid_num_indexes> 
  <oid_index_parse>OID/REGEXP:^.*\.3375\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\.(.*)</oid_index_parse> 
  <index_order>ifIndex</index_order> 
  <index_order_type>alphabetic</index_order_type>


My graphs are now working. Not certain if its the oid_index or the oid_index_parse ... but I'm running 9.3.1 on my LTM's and it works now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest