BigIP v9 Template

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

Moderators: Developers, Moderators

Post Reply
gwooden
Posts: 15
Joined: Fri Dec 29, 2006 2:56 pm

Post by gwooden »

Sorry apuye, I haven't have time to circle back to it. I am going to try bsdboy's template that he just posted and see. We are doing an upgrade to our units this week (from 9.1.1 to 9.2.4) and will look again at it when that gets done. Thanks,
gwooden
Posts: 15
Joined: Fri Dec 29, 2006 2:56 pm

Post by gwooden »

Nope, still not working for me. I have tried all the regex ideas forementioned in this thread, and still not working. We are running 9.2.4 on LTM6800s.

I am able to get some graphs to appear, but none of the VS related ones.

Thoughts anyone?

03/07/2007 10:35:20 AM - CACTID: Poller[0] Host[209] ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.4.1.3375.2.2.10.2.3.1.11..98.104.45.108.100.97.112.45.51.56.57)
03/07/2007 10:35:20 AM - CACTID: Poller[0] Host[209] ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.4.1.3375.2.2.10.2.3.1.11..98.104.45.108.100.97.112.45.51.56.57)
03/07/2007 10:35:20 AM - CACTID: Poller[0] Host[209] ERROR: Problems parsing Multi SNMP OID! (oid: .1.3.6.1.4.1.3375.2.2.10.2.3.1.11..119.105.110.98.104.95.112.114.111.118.95.56.56.56.56)
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

Guys I am having problems with this template. The following two graphs are not created:

- F5 BigIP - Global HTTP 2xx/3xx Responses
- F5 BigIP - TMM memory

I mean they are not created at all. It is not that the data does not appear on the graph, it is the graph does not appear at all. Please help me out.

Thanks
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

So I had to rebuild my box yesterday due to the fact that Fedora is... well... whatever it is :)

Just wanted to say that everything worked just fine the first time when I did the following using CentOS4.4:

1) Follow the directions as the OP stated:
2) Replaced the OID parse with the below strings
3) Replaced the F5_BigIP_v9-Host_Template-rev_6.xml in my post a few posts back and imported twice
4) Edited the 200/300 Global graph template by changing the HRULE option in line 11 to VRULE.

I'm updating my original post because changing the HRULE value to '0' from '00:00' is incorrect, the correct way to fix this graph is to make line 11 a VRULE value instead of an HRULE value like all of the other graphs. Apologize for the misinformation, but it seemed to work :)
bsdboy wrote:Hmmm, mine is now working...

Using the following regex:

Code: Select all

f5_bigip_ifStat.xml:
<oid_index_parse>OID/REGEXP:^.*\.3375\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.(.*)$</oid_index_parse>
f5_bigip_vs.xml:
<oid_index_parse>OID/REGEXP:^.*\.3375\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.(.*)$</oid_index_parse> 
There is an error in F5_BigIP_v9-Host_Template-rev_6.xml, there is a 'traffic_in' where it should be 'traffic_out'. Attached is the file that is working for me. Also, there is an error in the HTTP2xx/3xx part, the HRULE is defined as 00:00 where it should be just 0. I did not fix this in the XML file, sorry I'm lazy, I don't know where this needs to be changed and I'm tired of mucking around :)

So if you re-import this file, change the REGEXP in the above files, blast the device and re-create you may see an improvement... as usual, YMMV
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:So I had to rebuild my box yesterday due to the fact that Fedora is... well... whatever it is :)
Could someone please post the final version of the host template, with all the necessary changes?

Thanks
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

aleu wrote:
bsdboy wrote:So I had to rebuild my box yesterday due to the fact that Fedora is... well... whatever it is :)
Could someone please post the final version of the host template, with all the necessary changes?

Thanks
Here ya go...

edit: Still "might" have to edit the OID Parse manually, fyi
edit2: Another change in this file is that the VSTraffic has a 95th on each VIP
Attachments
cacti_host_template_f5_bigip_v9_rev_6.1.xml
(174.1 KiB) Downloaded 1492 times
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Here ya go...
edit: Still "might" have to edit the OID Parse manually, fyi
edit2: Another change in this file is that the VSTraffic has a 95th on each VIP
Thanks. I have managed to get all the graphs, except for TMM memory. This graph is not even created. Is there a way I can debug it somehow to find out what is causing them not to appear?

When I run

php ss_f5-bigip-tmm-memory.php

in a shell I get plenty of errors. See below:

Warning: Missing argument 1 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15

Warning: Missing argument 2 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15

Warning: Missing argument 3 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15

Warning: Missing argument 4 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15

Warning: Missing argument 5 for ss_f5tmm_mem() in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 15

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

Notice: Undefined variable: snmp_version in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 17

Notice: Undefined variable: snmp_version in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 17

Notice: Undefined variable: hostname in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_community in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_version in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmpv3_auth_username in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmpv3_auth_password in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_port in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_timeout in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: hostname in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_community in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_version in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmpv3_auth_username in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmpv3_auth_password in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_port in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Notice: Undefined variable: snmp_timeout in /var/www/cacti/scripts/ss_f5-bigip-tmm-memory.php on line 34

Please advise.

Thanks
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Hmm, I hadn't looked for awhile but apparently my memory has stopped graphing as well. I have a nice yellow and blue stripe where it used to show :)

If I get it worked out I'll let you know!
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

aleu wrote:Thanks. I have managed to get all the graphs, except for TMM memory.
Here is the output from the debug mode:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="BIGIP - TMM memory" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Bytes" \
--slope-mode \
DEF:a="/var/www/cacti/rra/bigip_tmmmemtotal_232.rrd":TmmMemTotal:AVERAGE \
DEF:b="/var/www/cacti/rra/bigip_tmmmemtotal_232.rrd":TmmMemUsed:AVERAGE \
AREA:a#0000FF:"Avilable memory" \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" \
AREA:b#FFAB00:"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:1176177600#000000:""
RRDTool Says:

ERROR: opening '/var/www/cacti/rra/bigip_tmmmemtotal_232.rrd': No such file or directory

Indeed, this file does not exist!

Please advise
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Looks like this is a PHP problem, maybe missing a module. I had an incorrect path for a bit which pointed to the canned RPM version of PHP and the memory worked.

Did you build from source? What OS are you using?
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Looks like this is a PHP problem, maybe missing a module. I had an incorrect path for a bit which pointed to the canned RPM version of PHP and the memory worked.

Did you build from source? What OS are you using?
Thanks for your prompt response. Yes, that is very probable. I had some PHP module related errors lately (related to other things). I am using Debian Etch (testing). Other specs listed below:
Cacti Version - 0.8.6j
Plugin Architecture - 1.1
Poller Type - CMD.php
Server Info - Linux 2.6.18-4-686
Web Server - Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch1 mod_perl/2.0.2 Perl/v5.8.8
PHP - 5.2.0-8+etch1
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, gd, ldap, mysqli, PDO, pdo_mysql, pdo_pgsql, pgsql, snmp, xmlrpc
MySQL - 5.0.32-Debian_7etch1-log
RRDTool - 1.2.15
SNMP - 5.2.3
Plugins
  • Thresholds (thold - v0.3.0)
    Network Discovery (discovery - v0.7)
    Network Tools (tools - v0.2)
    PHP Network Managing (manage - v0.4)
    Host Info (hostinfo - v0.1)
    Device Monitoring (monitor - v0.7)
    Update Checker (update - v0.3)
Please let me know what else I could let you know in order to help me resolve this error.
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Think I'm getting close, I can run the script manually with cmp.php and get valid results but from within cacti it borks...

Running by hand:
04/11/2007 03:32:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.19/bin/rrdtool update /data/www/cacti/rra/dcbigip1_tmmmemtotal_1770.rrd --template TmmMemTotal:TmmMemUsed 1176330587:3942645760:1926445304

Running via Cacti:
04/11/2007 03:35:47 PM - POLLER: Poller[0] CACTI2RRD: /usr/local/rrdtool-1.2.19/bin/rrdtool update /data/www/cacti/rra/dcbigip1_tmmmemtotal_1770.rrd --template 1176330793:U
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Ah ha, looks like php didn't have enough memory. I've set php.ini memory_limit to 512M and I have graphs again.

bash-3.00# /usr/local/php/bin/php -i |grep -ir memory
Zend Memory Manager => enabled
memory_limit => 512M => 512M
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Ah ha, looks like php didn't have enough memory. I've set php.ini memory_limit to 512M and I have graphs again.

bash-3.00# /usr/local/php/bin/php -i |grep -ir memory
Zend Memory Manager => enabled
memory_limit => 512M => 512M
OK. In my case it is:
root@black:/var/www/cacti/scripts# php -i |grep -ir memory
Zend Memory Manager => enabled
memory_limit => 16M => 16M
I have changed this to 512. Let's see.
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

aleu wrote:I have changed this to 512. Let's see.
Keep in mind that 512M is quite a bit, my box has a couple Gig's and it's only purpose is Cacti

If your box is dedicated and has plenty available then roll with it, if it does other stuff make sure to keep an eye out for other problems :wink:
Post Reply

Who is online

Users browsing this forum: mokeyfraggle and 7 guests