Using Cacti with Kemp Load Balancer

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

igilchri
Posts: 1
Joined: Mon Oct 06, 2008 2:29 pm
Location: Guelph on.ca

Using Cacti with Kemp Load Balancer

Post by igilchri »

Is there anyone using Cacti to graph a Kemp Load Balancer?

I have resently installed a Kemp Load Balancer and set up a Cacti server for graphing statistics of the load balancer.

I do not know where to start to get Cacti to connect to the Load Balancer or how to create graphs.

Any help would be appreciated.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

See 1st link of my sig to learn how to do this
Reinhard
castleinfo
Posts: 1
Joined: Mon Jan 17, 2011 12:54 pm

Re: Using Cacti with Kemp Load Balancer

Post by castleinfo »

Hi, Do you not have a support contract with Kemp?
I would bet that you can use the standard LVS templates, Loadbalancer.org, Barracuda and Kemp all use LVS for Layer 4 stuff.
I've posted the standard LVS cacti templates on our site here: http://www.loadbalancer.org/download/cacti/
Let me know how you get on.
Reminds me I need to write a blog about it sometime.
jasem200
Posts: 6
Joined: Fri Jun 11, 2010 7:47 am
Location: Hamburg
Contact:

Re: Using Cacti with Kemp Load Balancer

Post by jasem200 »

i tryed this template but didnt work, the snmp query show this message

Data Query Debug Information

+ Running data query [36].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/snmp-lvs.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8225.4711' Index Count: 0
+ No SNMP data returned

please advice
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Using Cacti with Kemp Load Balancer

Post by gandalf »

jasem200 wrote:+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.8225.4711' Index Count: 0
Please walk that OID and return with the output found
R.
sailsdigital
Posts: 1
Joined: Sat Jan 19, 2013 12:47 am

Re: Using Cacti with Kemp Load Balancer

Post by sailsdigital »

Hi,

Realize this is an older thread, but I'm trying to do the same thing and having the same error. If the previous poster is still willing to assist, here is the output of the SNMP Walk:

SNMPv2-SMI::enterprises.8225.4711 = No Such Object available on this agent at this OID

The next-longest OID that returns anything is .1.3.6.1.4.1 (which is SNMPv2-SMI::enterprises I think).

I can also do an SNMP walk with no OID specified and I get back a long list of names, not OIDs. I can post that here if needed.

In the meantime, I'll do some more reading and post here what I can figure out.

Thanks in advance!
-R
Dan5ielle
Posts: 8
Joined: Sat Jan 19, 2013 2:22 am

Re: Using Cacti with Kemp Load Balancer

Post by Dan5ielle »

I do not know where to start to get Cacti to connect to the Load Balancer or how to create graphs.
Image
Image
Image
Image
Image
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Using Cacti with Kemp Load Balancer

Post by gandalf »

Then, please read 1st link of my sig for an intro
R.
RattatatBison
Posts: 2
Joined: Wed Mar 06, 2013 2:42 pm

Re: Using Cacti with Kemp Load Balancer

Post by RattatatBison »

I have created a Simple Template for Graphing Kemp Virtual Services Connection Rates and Traffic:

You must use SNMP v2 for this to work.

Installation
- Import Template
- Add KempQuery.xml file to Cacti SNMP query folder on cacti server
- Point "Kemp VS Stats" Data Query to the KempQuery.xml file on cacti server
- Attach "Kemp VS Stats" Data Query to Kemp monitored device (Use Verbose Query to see if its working once added)
- Create new graphs for VS Traffic from the "Interface - Traffic (Bits/sec)" Graph Template
- Create new graphs for VS Connections from the "Kemp VS Connections" Graph Template
- Attach graphs to the appropriate graph tree.

I will be working on a Real Server Stats template when time permits.
Attachments
KempQuery.xml.zip
Data Query to retrieve VS Stats
(892 Bytes) Downloaded 368 times
cacti_graph_template_kemp_vs_connections.xml.zip
Kemp VS Connection Data Template and Graph
(3.27 KiB) Downloaded 321 times
ktokash
Posts: 3
Joined: Fri Mar 02, 2012 12:35 pm

Re: Using Cacti with Kemp Load Balancer

Post by ktokash »

RattatatBison,

Thanks for the template, graphing VS* on Kemp is something I'm looking into doing myself right now. Can you tell me what version of Cacti you exported the templates from? I'm getting the "Error: XML: Hash version does not exist." error and according to another thread one of the culprits for this problem is trying to import templates on a system older than the one exporting from. We're running 0.8.7g.

I'd like to rule this out if possible before I move on in my troubleshooting.

The thread I'm referring to:
http://forums.cacti.net/viewtopic.php?f ... 5&start=15

Thanks,
Keith
RattatatBison
Posts: 2
Joined: Wed Mar 06, 2013 2:42 pm

Re: Using Cacti with Kemp Load Balancer

Post by RattatatBison »

Hey Keith

I used the latest Cacti 0.8.8a, this is my first export so i will have to double check if theres some export with compatibility options
ktokash
Posts: 3
Joined: Fri Mar 02, 2012 12:35 pm

Re: Using Cacti with Kemp Load Balancer

Post by ktokash »

Cool thanks. I'm going to see if I can get the go-ahead to upgrade cacti. If it fixes the problem I'll report back for future googlers. ;)
ktokash
Posts: 3
Joined: Fri Mar 02, 2012 12:35 pm

Re: Using Cacti with Kemp Load Balancer

Post by ktokash »

Upgrading Cacti to your revision let me import the second template fine, so both are in there now. My next question is the Kemp level. We're at 5.1-44, and if you're polling 5.1-45 or later there were apparently major SNMP changes, with new MIBs at 6.0.

The reason I ask is I'm getting a blank graph when I create a new graph with the template "Kemp VS Connections." Your instructions said to use the interface I/O, but that's not an option for the [Kemp VS Stats] data query. It's an option for the [SNMP - Interface Statistics] data query, but obviously that doesn't work for VS.

I screenshotted it for clarity.

Image
jwillis84
Posts: 3
Joined: Wed Mar 04, 2015 2:38 am

Re: Using Cacti with Kemp Load Balancer

Post by jwillis84 »

Apologies for responding to a very old topic.

If anyone is interested in this problem however.

I am in a similar situation.

Two KEMP LoadMasters 2200 in an HA configuration,

firmware version
5.1-74.20110803-1755

RHEL5.11
net-snmp-utils 1:5.3.2.2-25.el5_11
Cacti 0.8.7g

downloaded KEMP LoadMaster SNMP MIB Files from here
https://support.kemptechnologies.com/hc ... SNMP-MIB-s

LM_mibs.zip

B100-MIB.txt
IPVS-MIB.txt
ONE4NET-MIB.txt

B100 - contains OIDs for monitoring Layer 7 - [L7] Virtual Services
IPVS - contains OIDs for monitoring Layer 4 - [L4] Virtual Services

https://support.kemptechnologies.com/hc ... onitoring-

# cp *.txt /usr/share/snmp/mibs
# vi /usr/share/snmp/snmp.conf
>>
mibfile /usr/share/snmp/mibs/B100-MIB.txt
mibfile /usr/share/snmp/mibs/IPVS-MIB.txt
mibfile /usr/share/snmp/mibs/ONE4NET-MIB.txt
<< LAST-UPDATED "201112010000Z"

snmpwalk -Oa -v 2c -c public 192.168.2.83 IPVS-MIB::vSConns.3

appears to return the "virtual service connections" for a virtual service I would like to monitor

reading gandalfs 1st link of signature

leads me to believe the path to success would be:

1. add a Device to Cacti
2. create a new Data Query using an SNMP XML data query (KempQuery.xml.zip ?)
3. create a new Data Template to store the query results in RRAs and define Data Source Items
4. create a new Graph Template and define Graphs Items that use the Data Source Items as Graph Item Inputs
5. create a new Associated Graph/Data Template which maps the Data Template Data Sources to Graph Template Item Inputs
6. create Suggested Search Values for the Data Template search field "name" and Graph Template search field "title"
7. use the Device > Create Graphs for this Host > Data Query (from #2 above) to select Graph Item Inputs to graph
8. modify any SNMP XML data query to perform VALUE/REGEXP parsing (if necessary)
9. adjust Graph Items to best represent the collected and graphed data

cacti_graph_template_kemp_vs_connections.xml.zip

would appear to contain a Graph Template with Graph Items and a Data Template it depends upon

this is as far as I have proceeded along this path

any suggestions or corrections would be appreciated

I think I'll spend some time studying the 0.8.8a zip files, however since I am on Cacti 0.8.7g, I do not expect them to import properly.. and I am not sure they will serve my specific need

Thanks for any Commentors or Spectators!
jwillis84
Posts: 3
Joined: Wed Mar 04, 2015 2:38 am

Re: Using Cacti with Kemp Load Balancer

Post by jwillis84 »

I found a newer version of the SNMP Mibs for KEMP, same file names but different content.

The snmptable command no longer returns "Wrong Type" for many data values now

https://thwack.solarwinds.com/servlet/J ... P-MIBs.zip

Layer 7 - [L7] mode tables (routed back through LM as default route, transparent mode)

"A table containing ipvs Virtual Service (VS) specific information." (front-end of LM)
# snmptable -v 2c -c public 192.168.2.83 B100-MIB::b100VSTable

"A table containing ipvs Real Service (VS) specific information." (back-end of LM)
# snmptable -v 2c -c public 192.168.2.83 B100-MIB::b100RSTable

Layer 4 - [L4] mode tables (NAT routed back through firewall as default route, non-transparent mode)

"A table containing ipvs Virtual Service (VS) specific information." (front-end of LM)
# snmptable -Oa -v 2c -c public 192.168.2.83 IPVS-MIB::ipvsVSTable

"A table containing ipvs Real Server (RS) specific information." (back-end of LM)
# snmptable -Oa -v 2c -c public 192.168.2.83 IPVS-MIB::ipvsRSTable

"A table containing Totals for Real Server (RS) specific information."
# snmptable -Oa -v 2c -c public 192.168.2.83 IPVS-MIB::ipvsRSTotalTable
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest