Barracuda Load Balancer 340 Per-Service & Per-Server Stats

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
furriephillips
Posts: 1
Joined: Wed May 02, 2012 10:22 am

Barracuda Load Balancer 340 Per-Service & Per-Server Stats

Post by furriephillips »

Hi All,

I have a Barracuda Load Balancer 340, which has limited SNMP service (ie., there's not a great deal of stuff in the MIB), but having spoken to Barracuda Support, they did (eventually) find some OIDs which would be of interest to us, but they are not SNMPwalkable (no index or MIB entries).

The OIDs are as follows (straight from the support reps email): -

.1.3.6.1.4.1.20632.5.2 -- systemActiveServices
.1.3.6.1.4.1.20632.5.3 -- systemOperatingServers
.1.3.6.1.4.1.20632.5.6 -- L4TCPConnections
.1.3.6.1.4.1.20632.5.7 -- L7HTTPRequests
.1.3.6.1.4.1.20632.5.8 -- RDPUserSessions
.1.3.6.1.4.1.20632.5.9 -- ServiceBandwidth
.1.3.6.1.4.1.20632.5.10 -- TotalBandwidthToLB
.1.3.6.1.4.1.20632.5.11 -- RealServerBandwidth
.1.3.6.1.4.1.20632.5.12 -- ClusterStatus
.1.3.6.1.4.1.20632.5.13 -- SystemLoad
.1.3.6.1.4.1.20632.5.14 -- CPUTemperature
.1.3.6.1.4.1.20632.5.15 -- FirmwareStorage
.1.3.6.1.4.1.20632.5.16 -- MailLogStorage
.1.3.6.1.4.1.20632.5.17 -- OperationMode
.1.3.6.1.4.1.20632.5.19 -- L7FTPSessions
.1.3.6.1.4.1.20632.5.20 -- L7TCPConnections
.1.3.6.1.4.1.20632.5.21 -- RealServerOperationStatus

We're mostly interested in these: -

"ServiceBandwidth",".1.3.6.1.4.1.20632.5.9"
"RealServerBandwidth",".1.3.6.1.4.1.20632.5.11"
"L4TCPConnections",".1.3.6.1.4.1.20632.5.6"
"L4TCPConnections",".1.3.6.1.4.1.20632.5.20"
"SystemLoad",".1.3.6.1.4.1.20632.5.13"
"CPUTemperature",".1.3.6.1.4.1.20632.5.14"
"FirmwareStorage",".1.3.6.1.4.1.20632.5.15"

However, the output is what might be described as "hideous". For example, some of the results include the units like this: -

.1.3.6.1.4.1.20632.5.14 = STRING: "28 degrees C"
.1.3.6.1.4.1.20632.5.15 = STRING: "81%"

and some include multiple (adorable) name=value key-pairs like this (some elements altered to protect the innocent, but the structure remains unaltered): -

.1.3.6.1.4.1.20632.5.6 = STRING: "BLAH_SMTP=0 - BLAH_WEB=0 - "
.1.3.6.1.4.1.20632.5.9 = STRING: "BLAH_SMTP= - MAIL POP3S=0 - BLAH_WEB= - DMZ-TEST=0 - BLAH API=6731852 - BLAH integration=241232 - MAIL IMAPS=0 - MAIL POP3=7957051 - SSH=0 - BLAH=1732655 - BLAH_MX=0 - "
.1.3.6.1.4.1.20632.5.11 = STRING: "10.10.178.144=0 - 10.10.178.145=0 - 10.10.44.31=10934975 - 10.10.44.32=5486583 - 10.10.178.140= - 10.10.178.141= - 10.10.44.114=241232 - 10.10.44.42=0 - 10.10.44.41=0 - "
.1.3.6.1.4.1.20632.5.20 = STRING: "MAIL POP3S=0 - DMZ-TEST=0 - BLAH API=537 - BLAH integration=45 - MAIL IMAPS=0 - MAIL POP3=43771 - SSH=0 - BLAH=14220 - BLAH_MX=0 - "

I spoke to a colleague and he suggested that if I could write a script which parses the SNMP results and output in XML format, he thought we might able to get the info into Cacti, but I have since discovered that that's not what he meant... So, what I've created, is a script you run, with the hostname/IP of the target, which parses the interesting OIDs & outputs the cleaned-up results. Currently, it looks like this, but it could look like whatever I want it to, in order to help Cacti: -

% EQ_SNMP eq01.local
<?xml version="1.0"?>
<eq01.local>
<ServiceBandwidth>
<BLAH_MX>0</BLAH_MX>
<MAIL POP3>7957051</MAIL POP3>
<DMZ-TEST>0</DMZ-TEST>
<BLAH_SMTP></BLAH_SMTP>
<BLAH>1732655</BLAH>
<MAIL IMAPS>0</MAIL IMAPS>
<MAIL POP3S>0</MAIL POP3S>
<BLAH API>6731852</BLAH API>
<BLAH integration>241232</BLAH integration>
<SSH>0</SSH>
<BLAH_WEB></BLAH_WEB>
</ServiceBandwidth>
<RealServerBandwidth>
<BLAH_MX>0</BLAH_MX>
<10.10.178.141></10.10.178.141>
<10.10.44.32>5486583</10.10.44.32>
<BLAH integration>241232</BLAH integration>
<10.10.178.144>0</10.10.178.144>
<BLAH_WEB></BLAH_WEB>
<BLAH_SMTP></BLAH_SMTP>
<DMZ-TEST>0</DMZ-TEST>
<MAIL POP3>7957051</MAIL POP3>
<10.10.44.114>241232</10.10.44.114>
<MAIL IMAPS>0</MAIL IMAPS>
<BLAH>1732655</BLAH>
<10.10.178.140></10.10.178.140>
<MAIL POP3S>0</MAIL POP3S>
<10.10.178.145>0</10.10.178.145>
<10.10.44.41>0</10.10.44.41>
<10.10.44.42>0</10.10.44.42>
<BLAH API>6731852</BLAH API>
<SSH>0</SSH>
<10.10.44.31>10934975</10.10.44.31>
</RealServerBandwidth>
<L4TCPConnections>
<BLAH_MX>0</BLAH_MX>
<10.10.178.141></10.10.178.141>
<10.10.44.32>5486583</10.10.44.32>
<BLAH integration>241232</BLAH integration>
<10.10.178.144>0</10.10.178.144>
<BLAH_WEB>0</BLAH_WEB>
<BLAH_SMTP>0</BLAH_SMTP>
<DMZ-TEST>0</DMZ-TEST>
<MAIL POP3>7957051</MAIL POP3>
<10.10.44.114>241232</10.10.44.114>
<MAIL IMAPS>0</MAIL IMAPS>
<BLAH>1732655</BLAH>
<10.10.178.140></10.10.178.140>
<MAIL POP3S>0</MAIL POP3S>
<10.10.178.145>0</10.10.178.145>
<10.10.44.41>0</10.10.44.41>
<10.10.44.42>0</10.10.44.42>
<BLAH API>6731852</BLAH API>
<SSH>0</SSH>
<10.10.44.31>10934975</10.10.44.31>
</L4TCPConnections>
<L4TCPConnections>
<BLAH_MX>0</BLAH_MX>
<10.10.178.141></10.10.178.141>
<10.10.44.32>5486583</10.10.44.32>
<BLAH integration>45</BLAH integration>
<10.10.178.144>0</10.10.178.144>
<BLAH_WEB>0</BLAH_WEB>
<BLAH_SMTP>0</BLAH_SMTP>
<DMZ-TEST>0</DMZ-TEST>
<MAIL POP3>43771</MAIL POP3>
<10.10.44.114>241232</10.10.44.114>
<MAIL IMAPS>0</MAIL IMAPS>
<BLAH>14220</BLAH>
<10.10.178.140></10.10.178.140>
<MAIL POP3S>0</MAIL POP3S>
<10.10.178.145>0</10.10.178.145>
<10.10.44.41>0</10.10.44.41>
<10.10.44.42>0</10.10.44.42>
<BLAH API>537</BLAH API>
<SSH>0</SSH>
<10.10.44.31>10934975</10.10.44.31>
</L4TCPConnections>
<SystemLoad>0</SystemLoad>
<CPUTemperature>28</CPUTemperature>
<FirmwareStorage>81</FirmwareStorage>
</eq01.local>

What I'm failing miserably to do, is figure out how I can output them in such a way, that I can craft a Cacti script or data query script and the associated XML stuff, to get the stats accessible to Cacti. I think that the thing which is melting my brain, is that the multi-element OIDs are of different lengths on every load balancer.

Please can someone help me move forward with this?

Cheers,
--

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

Re: Barracuda Load Balancer 340 Per-Service & Per-Server Sta

Post by gandalf »

Writing a script is indeed required. See 1st link of my sig to know what to do. I fear that even multiple scripts may be required.
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests