BigIP v9 Template

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

Moderators: Developers, Moderators

Post Reply
yreddy
Posts: 43
Joined: Fri May 02, 2008 7:33 am
Location: Canada

Post by yreddy »

Hi sojourner9,

Is there any error messages in the cacti log file or in the apache log files ?

I once saw similar behavior in the cacti forum (blank page during importation of another host template) and it was due to php memory limit. I understood it was fixed by changing the memory_limit parameter of the php.ini file.

Regards
Youri
ringoseagull
Posts: 6
Joined: Fri Jul 16, 2010 7:45 am

Post by ringoseagull »

Perhaps I should have posted this here:

Poller works from cli but not from cron

I can see that the cron job is running from the cron log, but can't see in the cacti logs what is causing this issue. Environmental settings perhaps?
Logs show cacti doing something (see below) but graphs not being updated unless run from command line.

If I could find an error I could have a go at fixing it.....

Thanks for looking.

The F5 config guide suggests using root as the user in cron. The poll does not update the graphs if run as cacti, only when run by root and from the command line.
RRA and log directories are owned by cacti:root.

php is located at /usr/local/php/bin/php. The settings>Path window shows that this can be found. I also put a sym link into /usr/local/bin/php.

Example from cacti.log:

07/16/2010 01:47:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1279198061 --end=1279284461 --title="f5-0-prv.unix-ilo.city.ac.uk - Memory Utilization" --base=1024 --height=200 --width=600 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2010/07/15 13\:47\:41 To 2010/07/16 13\:47\:41\c" COMMENT:" \n" --vertical-label="Bytes" --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/html/cacti-0.8.7e/rra/f5-0-prv_unix-ilo_city_ac_uk_tmm_mem_total_400.rrd":tmm_mem_total:AVERAGE DEF:b="/var/www/html/cacti-0.8.7e/rra/f5-0-prv_unix-ilo_city_ac_uk_tmm_mem_used_401.rrd":tmm_mem_used:AVERAGE DEF:c="/var/www/html/cacti-0.8.7e/rra/f5-0-prv_unix-ilo_city_ac_uk_global_mem_total_398.rrd":global_mem_total:AVERAGE DEF:d="/var/www/html/cacti-0.8.7e/rra/f5-0-prv_unix-ilo_city_ac_uk_global_mem_used_399.rrd":global_mem_used:AVERAGE CDEF:cdefg=c,-1,* CDEF:cdefi=d,-1,* AREA:a#0000FFFF:"TMM Mem Total" GPRINT:a:LAST:"Current\:%8.2lf %s\n" AREA:b#FFAB00FF:"TMM Mem Used" GPRINT:b:LAST:" Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" AREA:cdefg#0000FFFF:"Total Mem" GPRINT:c:LAST:" Current\:%8.2lf %s\n" AREA:cdefi#FFAB00FF:"Used Mem" GPRINT:d:LAST:" Current\:%8.2lf %s" GPRINT:d:AVERAGE:"Average\:%8.2lf %s" GPRINT:d:MAX:"Maximum\:%8.2lf %s\n"
yreddy
Posts: 43
Joined: Fri May 02, 2008 7:33 am
Location: Canada

Post by yreddy »

Hi ringoseagull,

Your issue doesn't seem to be specific with the F5 template... I've replied to your original post http://forums.cacti.net/viewtopic.php?t=38599
Trois Six
Posts: 2
Joined: Tue Jul 20, 2010 3:06 am

Post by Trois Six »

Hi,

Thank you for your templates.

I miss something and I don't know how to graph it : I have an aggregated link and multiple vlans are using that link.

I have for example an external and an internal VLAN on lacp0.

I would like to graph the throughput used on each VLAN ? Is there a way to do that ?
yreddy
Posts: 43
Joined: Fri May 02, 2008 7:33 am
Location: Canada

Post by yreddy »

Unfortunately I don't think it is possible. The "SNMP - Interface Statistics" returns one interface per vlan but the resulting graphs aren't displaying the real traffic per vlan ;(

I believe the closest thing you might do is using the Virtual Server Graphs. More specifically the VS Server Traffic and the VS Client Traffic... It is not exactly what you want but it might do it if you have the clients in a vlan and the server in another one.
Trois Six
Posts: 2
Joined: Tue Jul 20, 2010 3:06 am

Post by Trois Six »

ok. That is what I didn't want to do, because we are always adding / removing news VS.
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

yreddy wrote: I've modified the oid_index_parse values to have it compatible on both systems (http://docs.cacti.net/usertemplate:host:f5:bigip). Here is the fix I've did:

Code: Select all

# diff f5_bigip_sysMultiHostCpuEntry.xml.old f5_bigip_sysMultiHostCpuEntry.xml
5c5
<         <oid_index_parse>OID/REGEXP:^.{32}(.*)$</oid_index_parse>
---
>         <oid_index_parse>OID/REGEXP:^.*\.3375\..{14}(.*)$</oid_index_parse>
Please check it out and PM me if you still have problems.

Youri
Hi yreddy,

I finally found the moment to check it and it works pefectly. Now parsing seems to be correct. Thanks :wink:
bigip
Posts: 5
Joined: Wed Aug 05, 2009 5:18 am

Post by bigip »

Hi

Thank you very much for the templates have had some great results using them, but I am getting strange results from one of the F5 BigIP - VS Statistics - Client connections graphs.

The Virtual server is a test server and has only minimul exposure. The below results are manual SNMP polls:

SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.1.7.67.111.109.112.114.101.103 = STRING: "XX XX XX" -- oid_index
SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.3.7.67.111.109.112.114.101.103 = Hex-STRING: XX XX XX --IP Address
SNMPv2-SMI::enterprises.3375.2.2.10.1.2.1.6.7.67.111.109.112.114.101.103 = INTEGER: 80 -- service port
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.2.7.67.111.109.112.114.101.103 = Counter64: 2 -- minimum connection duration
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.3.7.67.111.109.112.114.101.103 = Counter64: 1439569 -- maximum connection duration
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.4.7.67.111.109.112.114.101.103 = Counter64: 51272 -- mean connection duration
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.5.7.67.111.109.112.114.101.103 = Counter64: 0 -- No Nodes Errors
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.6.7.67.111.109.112.114.101.103 = Counter64: 1373 -- Client Packets In
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.8.7.67.111.109.112.114.101.103 = Counter64: 892 -- Client Packets Out
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.7.7.67.111.109.112.114.101.103 = Counter64: 300692 -- Client Bytes In
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.9.7.67.111.109.112.114.101.103 = Counter64: 81250 -- Client Bytes Out
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.10.7.67.111.109.112.114.101.103 = Counter64: 2 -- Client Maximum connections
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.11.7.67.111.109.112.114.101.103 = Counter64: 227 -- Client Total Connections
SNMPv2-SMI::enterprises.3375.2.2.10.2.3.1.12.7.67.111.109.112.114.101.103 = Counter64: 0 -- Client Current Connections

As you can see there isn't a great deal of traffic, however, the graph indicates connections in the millions (presuming m is representitve of millions!)


Cacti 0.8.7e
NET-SNMP version: 5.1.2
Attachments
weekly_30minavg.png
weekly_30minavg.png (8.16 KiB) Viewed 4194 times
User avatar
lcano
Cacti User
Posts: 190
Joined: Thu Oct 09, 2008 5:46 pm
Location: Spain

Post by lcano »

bigip usually means "mili", not milions..... Does it match then what you expected?
bigip
Posts: 5
Joined: Wed Aug 05, 2009 5:18 am

Post by bigip »

lcano wrote:bigip usually means "mili", not milions..... Does it match then what you expected?
That would make more sense only the graph is supposed to be mapping number of connections. I have deleted and re-created. I will monitor to see what happens.
freeman118
Posts: 16
Joined: Thu Jun 03, 2010 9:13 pm

Post by freeman118 »

Hi Yreddy;

Base on your instruction, I have important file 'cacti_host_templae_f5_big-ipxml to Cacti.
However, I find that some error display

Notice: Undefined index: name in /usr/local/cacti-0.8.7e/lib/import.php on line 572

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cacti-0.8.7e/lib/import.php:572) in /usr/local/cacti-0.8.7e/templates_import.php on line 75

Please, provide any advise.

Thanks

freeman118
yreddy
Posts: 43
Joined: Fri May 02, 2008 7:33 am
Location: Canada

Post by yreddy »

bigip,
Yes as Icano said, "m" is for milli so according to your graph you have almost no concurrent connections.

freeman118,
Sorry I am unable to reproduce the issue ;( I don't know why you can't import the template. Do you see anything wrong in the cacti log files or in the apache log files ?

Youri
termite
Posts: 17
Joined: Mon Aug 17, 2009 1:29 pm

Re: BigIP v9 Template

Post by termite »

Hi Guys,

I have downloaded the F5 Host Template as described and follow the instruction and when I tried to import the template; I kept getting the the following message "Error:XML: Hash version does not exist." I am running Cacti version 8.7d. Does anyone know what can cause this problem? Thank you in advance.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: BigIP v9 Template

Post by BSOD2600 »

termite wrote:"Error:XML: Hash version does not exist." I am running Cacti version 8.7d. Does anyone know what can cause this problem? Thank you in advance.
Searched the forums yet? this is covered a lot.

http://docs.cacti.net/howto:determine_c ... te_version
cluckduck
Posts: 5
Joined: Sat Dec 08, 2007 5:39 pm
Location: Canberra AU

Re: BigIP v9 Template

Post by cluckduck »

I'd like to make a suggestion: remove the direct download links in the 1st post in this thread and instead link to the docs.cacti.net page for this template:

http://docs.cacti.net/usertemplate:host:f5:bigip

I think that'll save some confusion about what's the current/most up-to-date template .zip to download.

cheers,
cluckduck
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests