BigIP v9 Template
Moderators: Developers, Moderators
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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
/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" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
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:I see this in the log file:
When I execute the script manually:
and then the correct data. Is there a way to suppress these warnings?
Thanks,
AL
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);
}
?>
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
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:/var/www/cacti/log# php /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php a.b.c.d Public 2 161 500 "" ""
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
Thanks,
AL
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
http://www.cacti.net/downloads/patches/ ... tion.patch
Patch was released on 3/2/09
Thanks bq. This did the trick!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
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
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.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
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.
Not possible.OrionX wrote:Any ideas on how to get the version-7 templates to import into 0.8.7b?
No problems here getting PIA 2.4 (using pre-patched files) installed on 0.8.7d.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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:
A search so far is turning up very little in the way of how to diagnose and solve this......
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';
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]
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]
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:
to:
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests