BigIP v9 Template

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

Moderators: Developers, Moderators

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

Post by aleu »

bsdboy wrote: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:
Yes, I know. This server's only purpose is Cacti.

I think that I am almost there. My TMM graph showed up. I have another question though :-)

How come all of my "Traffic" graphs are empty and show "nan"? For the time being I did not connect them to my network so no traffic is flowing on any of the port, but shouldn't it show "0" instead on "nan"s?

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

Post by bsdboy »

Not sure, possibly because there needs to be a diff between two numbers? <just a guess>

Pump some traffic through it and see if they build :)
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

aleu wrote:I think that I am almost there. My TMM graph showed up.
And now they are gone again! What the heck?
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Adding more memory to php.ini would be my first guess... but 512 is already alot.

What are the debug logs telling you? Are you sure your php is looking at the right php.ini?
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Adding more memory to php.ini would be my first guess... but 512 is already alot.

What are the debug logs telling you? Are you sure your php is looking at the right php.ini?
Well, I guess it is pointing to the right php.ini file since I get:
Zend Memory Manager => enabled
memory_limit => 512M => 512M
right?

My php version is:
PHP 5.2.0-10 (cli) (built: Mar 7 2007 22:42:14)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
How can I run the ss_f5-bigip-tmm-memory.php file from the command line? What are the required arguments? I use SNMP community Public (RO) and version 1.
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

To run the script directly from the command line it would be:

Code: Select all

/usr/local/php/bin/php ./ss_f5-bigip-tmm-memory.php "bigip1" "public" "2" "161" "500" "" "" ""
Variables are:
$hostname, $snmp_community, $snmp_version, $snmp_port, $snmp_timeout, $snmpv3_auth_username, $snmpv3_auth_password


I receive errors on v1 but v2 comes back good. snmpwalk shows this as a 64bit counter and not available with v1

Code: Select all

v1:
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.3375.2.1.1.2.1.44.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.3375.2.1.1.2.1.45.0

Code: Select all

v2:
sysStatMemoryTotal:3942645760 sysStatMemoryUsed:1921033032
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:To run the script directly from the command line it would be:

Code: Select all

/usr/local/php/bin/php ./ss_f5-bigip-tmm-memory.php "bigip1" "public" "2" "161" "500" "" "" ""
I receive errors on v1 but v2 comes back good. snmpwalk shows this as a 64bit counter and not available with v1
That was it! I used SNMP v1 and all the graphs were showing up fine, but the TMM memory. I have changed this to v2 and everything works as expected!

Thanks for pointing this out. Somehow I did not notice that this template is to be used with SNMP v2.

By the way is there a way to determine what are the 4 temperature sensors labeled as "1, 2, 101 and 102"?
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

Take 'em out one at a time and see which graph brakes 8)

There aren't any references in th MIB, no idea. If it helps I have a 6400 and only see 101 and 102, so whatever fans your model has that the 6400 doesn't I would guess are 1 and 2
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Take 'em out one at a time and see which graph brakes 8)
Yeah, that would be the right approach :-)

In the mean time I can confirm that my traffic graphs show "nan"s.

I use the following entries in the f5_bigip_ifStat.xml file:


<oid_index>.1.3.6.1.4.1.3375.2.1.2.4.4.3.1.1</oid_index>
<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>

<ifBytesIn>
<name>Bytes In</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3375.2.1.2.4.4.3.1.3</oid>
</ifBytesIn>
<ifBytesOut>
<name>Bytes Out</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3375.2.1.2.4.4.3.1.5</oid>
</ifBytesOut>

Do you see anything wrong here? My BigIP runs on 9.2.
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

That looks good, it's what I'm using... On version 9.2.4

First I would recommend blasting the graphs, running the poller_reindex_hosts.php and rebuild_poller_cache.php and then recreating the graphs. An snmpwalk wouldn't hurt to make sure that things are actually there. Hit all of these OID's:
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.1
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.2
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.3
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.4
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.5
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.6
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.7
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.8
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.9
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.10
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.11
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.12

To rebuild the poller stuff:
php poller_reindex_hosts.php
php rebuild_poller_cache.php


If that doesn't work, run cmd.php in debug mode for just that host to see what comes back.

If you host ID is 99, the command would be:
php cmd.php 99 99
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

First of all let me thank you for helping me resolving this issue.
Here is what I get:

1.3.6.1.4.1.3375.2.1.2.4.4.3.1.1 - Returns STRING with interface names
1.3.6.1.4.1.3375.2.1.2.4.4.3.1.2 - through 1.3.6.1.4.1.3375.2.1.2.4.4.3.1.12 returns COUNTERS64 - with some data (mostly zeros though).
To rebuild the poller stuff:
php poller_reindex_hosts.php
php rebuild_poller_cache.php
No errors spotted. Traffic (bits/second) still shows "nan".
If that doesn't work, run cmd.php in debug mode for just that host to see what comes back.

If you host ID is 99, the command would be:
php cmd.php 99 99
This part is unclear to me. How can I find out what is the "ID" of my BigIP? Is it the name (description) that I assigned to my device when it was added to Cacti? If so, here is the output of the command:

<table width="98%" align="center">
<tr>
<td>
Validation error.
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>

</body>
</html>
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

If you go to console --> devices --> host you will see a URI like: /host.php?action=edit&id=59

So this ID is 59. Running cmd.php requires a starting ID through the ending ID, to run a single host you would run the same ID at the start and at the end.

php cmd.php 59 59

Another thing that may help this is to change the SNMP Timeout under console --> devices --> host to 1000 milliseconds, up from 500.

edit: Another thing to try, wonder what would happen if you re-create it as a new device and only create the VS Traffic graphs to see if they can graphs if they are the only thing being pulled.

edit again: are you having problems with the "F5 BigIP - Interface Statistics" graphs or the "F5 BigIP - VS Statistics" graphs? I'm assuming the "F5 BigIP - VS Statistics" so if I'm assuming wrong then the above is pretty much moot :)
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:If you go to console --> devices --> host you will see a URI like: /host.php?action=edit&id=59
OK. I got the ID. It is 43. Now when I run:
php cmd.php 43 43

nothing appears on the screen (after execution I get back to prompt). What do you mean run it in the debug mode?
Another thing that may help this is to change the SNMP Timeout under console --> devices --> host to 1000 milliseconds, up from 500.
I have changed this.
edit again: are you having problems with the "F5 BigIP - Interface Statistics" graphs or the "F5 BigIP - VS Statistics" graphs?
The only problem that I have is with "F5 BigIP - Interface Statistics" the "F5 BigIP - VS Statistics" work fine.
bsdboy
Cacti User
Posts: 87
Joined: Mon May 22, 2006 5:24 pm

Post by bsdboy »

aleu wrote:
bsdboy wrote:If you go to console --> devices --> host you will see a URI like: /host.php?action=edit&id=59
OK. I got the ID. It is 43. Now when I run:
php cmd.php 43 43

nothing appears on the screen (after execution I get back to prompt). What do you mean run it in the debug mode?
To run in debug mode you would have to set the logging to "DEBUG" under settings and then look at the log under $cactipath/log/cacti.log
edit again: are you having problems with the "F5 BigIP - Interface Statistics" graphs or the "F5 BigIP - VS Statistics" graphs?
The only problem that I have is with "F5 BigIP - Interface Statistics" the "F5 BigIP - VS Statistics" work fine.
Ah, think I had some problems with the interface stats as well. IIRC they worked but were way wrong. They did not seem all that useful to me at the time (more concerned about traffic at the router and VIP's) so they got plonked.

I'll go ahead and create them again and see if I can figure out how they work.
aleu
Cacti User
Posts: 216
Joined: Mon Dec 11, 2006 10:17 am

Post by aleu »

bsdboy wrote:Ah, think I had some problems with the interface stats as well. IIRC they worked but were way wrong. They did not seem all that useful to me at the time (more concerned about traffic at the router and VIP's) so they got plonked.

I'll go ahead and create them again and see if I can figure out how they work.
Oh, I see. I thought that I am the only one having problems with the interface traffic graphs. I agree that is not that important to have the interface graphs, but it would be nice to have them aside of the VS traffic graphs. If you figure it out, please let me know.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests