Cisco ACE Load Balancer

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

Moderators: Developers, Moderators

tsy
Posts: 15
Joined: Tue Dec 18, 2007 3:29 pm

Cisco ACE Load Balancer

Post by tsy »

Because Cisco ACE and CSM modules are using differents OID (even if they are based on the same MIB!), I start to study Cisco SLB from an previous topic (http://forums.cacti.net/about12448.html), and here is a first working host template with related script and ressource.

Only serverfarm objects and CPU are concerned. Real servers will be more hard, and I didn't find memory yet.

ACE Version 3.0(0)A1(6.2a)
Cacti Version 0.8.7b

Any comment or other try are welcome :-)
Attachments
ace_vserver.zip
ACE VServer - Version 0.1 :
$CACTI_DIR/scripts/ss_ace_vserver.php
$CACTI_DIR/resource/script_server/ace_vserver.xml
cacti_host_template_cisco_ace_load_balancer.xml
(20.09 KiB) Downloaded 2746 times
lerra
Posts: 1
Joined: Fri Oct 03, 2008 4:33 am

Post by lerra »

Nice one!
Last edited by lerra on Tue Nov 18, 2008 2:56 am, edited 1 time in total.
it
Cacti User
Posts: 118
Joined: Tue Jun 17, 2008 12:44 pm

Post by it »

am no getting the virtual servers ?


i aready put the xml and php files in the appropriate folders, is there something i miss ?? can you plz provide the oids for those virtual servers in the cisco ace 4710??

how can i run the php script from the command line ??

when i run it it gives me :

PHP Fatal error: Call to undefined function: read_config_option() in /usr/local/cacti/cacti-0.8.7b/lib/snmp.php on line 233

thx in advance
minuz71
Posts: 2
Joined: Mon Aug 27, 2007 10:36 am

something is wrong

Post by minuz71 »

Verbose Query of Data Query under Devices seems working correctly, resolving name of virtual servers, but when I create a graph, the name of the graph is not correct.
This is an example:
LB-SIMI-ACE-1-Inside_Application_Servers - |query_VirtualServer|

Seems that virtual server name is missing...and graphs are not displayed...
Any tips? I don't know if this is a problem of the template or of my cacti....

Version of ace is Version A2(1.2) [build 3.0(0)A2(1.2)]

I attached verbose query:
Attachments
verbose_query.txt
(7.51 KiB) Downloaded 1265 times
jagudo
Posts: 2
Joined: Thu Oct 23, 2008 5:45 am

Post by jagudo »

Seems like the same problem we have with the original SLB templates. I think that is a problem with the type of array that the template uses, but I can't fix it yet.
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,
importing into cacti 087a produces a "hash" error.
Do you have the data-query, data-template and graph-template as separat files? If I import the whole xml file I will blowup my interface -templates.

Torsten
Fiber-Optics
Posts: 6
Joined: Thu Jan 08, 2009 1:49 am

Post by Fiber-Optics »

Nice, I will be giving this a try. Since I have a enviroment that runs in multiple context mode with hundreds of different VIPS / ServerFarms.

Software
loader: Version 12.2[120]
system: Version A2(1.0) [build 3.0(0)A2(1.0)
system image file: [LCP] disk0:c6ace-t1k9-mz.A2_1.bin
http://www.centauricom.com
jvp
Posts: 2
Joined: Tue Mar 31, 2009 3:11 am

ACE LB Template

Post by jvp »

I need a CPU Load Graph template for ACE Load Balancer.

Thanks
tsy
Posts: 15
Joined: Tue Dec 18, 2007 3:29 pm

CPU Graph template

Post by tsy »

Here is the CPU usage template (OID :.1.3.6.1.4.1.9.9.109.1.1.1.1.8.1)
Attachments
cacti_graph_template_cisco_ace_-_cpu_usage.xml
(14.31 KiB) Downloaded 1666 times
tsy
Posts: 15
Joined: Tue Dec 18, 2007 3:29 pm

Post by tsy »

torstentfk wrote:Hi,
importing into cacti 087a produces a "hash" error.
Do you have the data-query, data-template and graph-template as separat files? If I import the whole xml file I will blowup my interface -templates.

Torsten

I had than a couple of time when I'm dealing with diffrent version.
You can hack easily files by changing manualy version, but take care about synthax : certain functions are changing (argument numbers...).
jvp
Posts: 2
Joined: Tue Mar 31, 2009 3:11 am

Post by jvp »

Thanks tsy!
Crazyachmed
Posts: 4
Joined: Thu Jan 22, 2009 4:45 pm

Post by Crazyachmed »

Nice plugin, finally I can graph my connections (I tried Cisco's ANM which is just....like any other Cisco managment software)

@tsy: I recommend that you raise the limit of current connections in the "NumberOfC" Data Source Item to something more reasonable like 25000 (or remove it completly). Unfortuatly I had to recreate all Graphs from scratch to apply this change.

Can it be that one run of the VServer Script collects both total and current connections? If so, then all data is gathered twice if you have a both graphs for a VServer...
canoas
Posts: 1
Joined: Fri Jun 05, 2009 7:32 am

PHP query for SLB

Post by canoas »

I'm getting the following error when runnings (ss_slb_rserver.php) script for my Cisco CSM:

Fatal error: Call to undefined function: read_config_option() in /opt/DKWcacti/htdocs/lib/snmp.php on line 233

Anyone know what to do here?

Below is line 233:

$retries = read_config_option("snmp_retries");
kevertje
Posts: 9
Joined: Fri Sep 07, 2007 1:24 am

Post by kevertje »

Anyone got a working ACE script (RSERVER connections) ?

Current connections:
1.3.6.1.4.1.9.9.470.1.1.3.1.14

Total connections:
1.3.6.1.4.1.9.9.470.1.1.3.1.11

Failed connections:
1.3.6.1.4.1.9.9.470.1.1.3.1.12

Dropped connections: (not working for me)
1.3.6.1.4.1.9.9.470.1.1.3.1.13
ascendo
Posts: 21
Joined: Wed Dec 05, 2007 12:25 pm

Post by ascendo »

It's great to see someone create these templates as the ACE is very new. Unfortunately I cannot get graphs displayed.

I'm running 0.8.7d. I imported all the templates successfully, and the data query runs and picks up the single vserver in the context. I then created graphs direct from the device page (for both current and total connections).

However, graphs never display (rrd files do not get created), and all I get in the debug log output is this (repeated each poller cycle):

06/18/2009 06:38:04 PM - SPINE: Poller[0] Host[40] SNMP Result: Host responded to SNMP
06/18/2009 06:38:04 PM - SPINE: Poller[0] Host[40] RECACHE: Processing 2 items in the auto reindex cache for '192.168.32.8'
06/18/2009 06:38:04 PM - SPINE: Poller[0] Host[40] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function

Any ideas?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests