6 Replies Latest reply on Dec 22, 2010 5:25 PM by djbakerman

    Custom Poller for Barracuda Spam Firewall 600

    kkennah

      I am trying to create a custom Poller to detect to amount of Emails that are in the Inbound and Outbound Queues of a Barracuda Spam Firewall Model 600. Went I try to create one using the OID of 1.3.6.1.4.1.2021.8.1.101.1 for the inbound and 1.3.6.1.4.1.2021.8.1.101.2 for the outbound both are giving a status of 13. Does anyone know how to get the number of messages that are in the Queue instead of the status. Thanks for any assistance

        • Re: Custom Poller for Barracuda Spam Firewall 600
          Andy McBride

          From what I can find those are both outbound

          extOutput.1 (1.3.6.1.4.1.2021.8.1.101.1) : number of filtered messages (integer)

          extOutput.2 (1.3.6.1.4.1.2021.8.1.101.2): number of spams detected (integer)

          From the description I wouldn't find it unusual for both to have the same value. Maybe I'm missing something?

          Andy

          • Re: Custom Poller for Barracuda Spam Firewall 600
            morgolis

            kkennah,

            What you are describing is the net-SNMP extend functionality.  Since you're getting responses from the UCD-SNMP-MIB::extResult.1 (1.3.6.1.4.1.2021.8.1.101.1) OID, that tells me the Barracuda isn't running the latest version of net-SNMP as the exec & sh commands have been depreciated and replaced using the extend command in the snmpd.conf file.

            If you have shell access to the Barracuda, less the snmpd.conf file and look at the exec commands in the file.  You should see something similar to this:

            exec NAME /PATH/TO/SCRIPT SCRIPT_ARGS

            Here is a good link that explains how to use the SNMP Extensions.

            If you do have shell access, you might try running the command:  mailq

            I know this works for postfix and sendmail daemons and will show you the current outbound mail queue.  The command qshape will show any messages waiting for delivery and how long they've been waiting.

            Hope this helps.

            • Re: Custom Poller for Barracuda Spam Firewall 600
              djbakerman

              The cudda folks sent me this:

               

              Allowed SNMP and API IP/Range
              Make sure to add the IP addresses/networks to allow access to pull the SNMP MIB’s on the Barracuda Spam Firewall.

               

              RAID Status:
              UCD-SNMP-MIB::extNames.4 = STRING: RAIDStatus

              .1.3.6.1.4.1.2021.8.1.2.4

              UCD-SNMP-MIB::extOutput.4 = STRING: RAID unit 1 Degraded 

              .1.3.6.1.4.1.2021.8.1.101.4

              Inbound Queue OID:

              .1.3.6.1.4.1.2021.8.1.101.1

               

              Syntax to check Inbound Queue on BSF:

              snmpwalk -c public [BSF’s IP or hostname or localhost] .1.3.6.1.4.1.2021.8.1.101.1

                                                        or

              snmpwalk -c public [BSF’s IP or hostname or localhost] UCD-SNMP-MIB::extOutput.1

               

              Outbound Queue OID:

              .1.3.6.1.4.1.2021.8.1.101.2

               

              Syntax to check Outbound Queue on BSF:

              snmpwalk -c public [BSF’s IP or hostname or localhost] .1.3.6.1.4.1.2021.8.1.101.2

                                                        or

              snmpwalk -c public [BSF’s IP or hostname or localhost] UCD-SNMP-MIB::extOutput.2

               

              CPU Load Average OID’s:

              .1.3.6.1.4.1.2021.10.1.3.1

              .1.3.6.1.4.1.2021.10.1.3.2

              .1.3.6.1.4.1.2021.10.1.3.3

               

              Monitor Memory:

               

              enterprises.ucdavis.memory.memTotalSwap.0

              enterprises.ucdavis.memory.memAvailSwap.0

              enterprises.ucdavis.memory.memTotalReal.0

              enterprises.ucdavis.memory.memAvailReal.0

              enterprises.ucdavis.memory.memTotalFree.0

              enterprises.ucdavis.memory.memMinimumSwap.0


              General MIB List:

              SNMPv2-MIB::sysDescr.0 = STRING: Barracuda Spam Firewall

              SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.8072.3.2.10

              SNMPv2-MIB::sysUpTime.0 = Timeticks: (59315258) 6 days, 20:45:52.58

              SNMPv2-MIB::sysContact.0 = STRING: <support@barracudanetworks.com>

              SNMPv2-MIB::sysName.0 = STRING: Barracuda

              SNMPv2-MIB::sysLocation.0 = STRING: unknown

              SNMPv2-MIB::sysORLastChange.0 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB

              SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB

              SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB

              SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip

              SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB

              SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup

              SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers

              SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities

              SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations

              SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations

              SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations

              SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.

              SNMPv2-MIB::sysORUpTime.1 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORUpTime.2 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORUpTime.3 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORUpTime.4 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORUpTime.5 = Timeticks: (3) 0:00:00.03

              SNMPv2-MIB::sysORUpTime.6 = Timeticks: (3) 0:00:00.03

              IF-MIB::ifNumber.0 = INTEGER: 2

              IF-MIB::ifIndex.1 = INTEGER: 1

              IF-MIB::ifIndex.2 = INTEGER: 2

              IF-MIB::ifDescr.1 = STRING: lo

              IF-MIB::ifDescr.2 = STRING: eth0

              IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)

              IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)

              IF-MIB::ifMtu.1 = INTEGER: 16436

              IF-MIB::ifMtu.2 = INTEGER: 1500

              IF-MIB::ifSpeed.1 = Gauge32: 10000000

              IF-MIB::ifSpeed.2 = Gauge32: 100000000

              IF-MIB::ifPhysAddress.1 = STRING:

              IF-MIB::ifPhysAddress.2 = STRING: 0:30:18:70:29:c4

              IF-MIB::ifAdminStatus.1 = INTEGER: up(1)

              IF-MIB::ifAdminStatus.2 = INTEGER: up(1)

              IF-MIB::ifOperStatus.1 = INTEGER: up(1)

              IF-MIB::ifOperStatus.2 = INTEGER: up(1)

              IF-MIB::ifInOctets.1 = Counter32: 6538147

              IF-MIB::ifInOctets.2 = Counter32: 50476603

              IF-MIB::ifInUcastPkts.1 = Counter32: 88108

              IF-MIB::ifInUcastPkts.2 = Counter32: 489484

              IF-MIB::ifInDiscards.1 = Counter32: 0

              IF-MIB::ifInDiscards.2 = Counter32: 0

              IF-MIB::ifInErrors.1 = Counter32: 0

              IF-MIB::ifInErrors.2 = Counter32: 0

              IF-MIB::ifOutOctets.1 = Counter32: 6539332

              IF-MIB::ifOutOctets.2 = Counter32: 11096809

              IF-MIB::ifOutUcastPkts.1 = Counter32: 88124

              IF-MIB::ifOutUcastPkts.2 = Counter32: 37217

              IF-MIB::ifOutDiscards.1 = Counter32: 0

              IF-MIB::ifOutDiscards.2 = Counter32: 0

              IF-MIB::ifOutErrors.1 = Counter32: 0

              IF-MIB::ifOutErrors.2 = Counter32: 0

              IF-MIB::ifOutQLen.1 = Gauge32: 0

              IF-MIB::ifOutQLen.2 = Gauge32: 0

              IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero

              IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero

              RFC1213-MIB::atIfIndex.2.1.XX.XX.XX.1 = INTEGER: 2

              RFC1213-MIB::atIfIndex.2.1.XX.XX.XX.2 = INTEGER: 2

              RFC1213-MIB::atPhysAddress.2.1.XX.XX.XX.1 = Hex-STRING: 00 10 7B 36 C8 BE

              RFC1213-MIB::atPhysAddress.2.1.XX.XX.XX.2 = Hex-STRING: 00 02 B3 2F 4F 79

              RFC1213-MIB::atNetAddress.2.1.XX.XX.XX.1 = Network Address: 45:24:FC:01

              RFC1213-MIB::atNetAddress.2.1.XX.XX.XX.2 = Network Address: 45:24:FC:02

              IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)

              IP-MIB::ipDefaultTTL.0 = INTEGER: 64

              IP-MIB::ipInReceives.0 = Counter32: 135846

              IP-MIB::ipInHdrErrors.0 = Counter32: 0

              IP-MIB::ipInAddrErrors.0 = Counter32: 0

              IP-MIB::ipForwDatagrams.0 = Counter32: 0

              IP-MIB::ipInUnknownProtos.0 = Counter32: 0

              IP-MIB::ipInDiscards.0 = Counter32: 0

              IP-MIB::ipInDelivers.0 = Counter32: 113802

              IP-MIB::ipOutRequests.0 = Counter32: 124111

              IP-MIB::ipOutDiscards.0 = Counter32: 0

              IP-MIB::ipOutNoRoutes.0 = Counter32: 0

              IP-MIB::ipReasmTimeout.0 = INTEGER: 0

              IP-MIB::ipReasmReqds.0 = Counter32: 0

              IP-MIB::ipReasmOKs.0 = Counter32: 0

              IP-MIB::ipReasmFails.0 = Counter32: 0

              IP-MIB::ipFragOKs.0 = Counter32: 0

              IP-MIB::ipFragFails.0 = Counter32: 0

              IP-MIB::ipFragCreates.0 = Counter32: 0

              IP-MIB::ipAdEntAddr.XX.XX.XX.52 = IpAddress: XX.XX.XX.52

              IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1

              IP-MIB::ipAdEntIfIndex.XX.XX.XX.52 = INTEGER: 2

              IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1

              IP-MIB::ipAdEntNetMask.XX.XX.XX.52 = IpAddress: 255.255.255.0

              IP-MIB::ipAdEntNetMask.127.0.0.1 = IpAddress: 255.0.0.0

              IP-MIB::ipAdEntBcastAddr.XX.XX.XX.52 = INTEGER: 1

              IP-MIB::ipAdEntBcastAddr.127.0.0.1 = INTEGER: 1

              RFC1213-MIB::ipRouteDest.0.0.0.0 = IpAddress: 0.0.0.0

              RFC1213-MIB::ipRouteDest.XX.XX.XX.0 = IpAddress: XX.XX.XX.0

              RFC1213-MIB::ipRouteDest.127.0.0.0 = IpAddress: 127.0.0.0

              RFC1213-MIB::ipRouteIfIndex.0.0.0.0 = INTEGER: 2

              RFC1213-MIB::ipRouteIfIndex.XX.XX.XX.0 = INTEGER: 2

              RFC1213-MIB::ipRouteIfIndex.127.0.0.0 = INTEGER: 2

              RFC1213-MIB::ipRouteMetric1.0.0.0.0 = INTEGER: 1

              RFC1213-MIB::ipRouteMetric1.XX.XX.XX.0 = INTEGER: 0

              RFC1213-MIB::ipRouteMetric1.127.0.0.0 = INTEGER: 0

              RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: XX.XX.XX.1

              RFC1213-MIB::ipRouteNextHop.XX.XX.XX.0 = IpAddress: 0.0.0.0

              RFC1213-MIB::ipRouteNextHop.127.0.0.0 = IpAddress: 0.0.0.0

              RFC1213-MIB::ipRouteType.0.0.0.0 = INTEGER: indirect(4)

              RFC1213-MIB::ipRouteType.XX.XX.XX.0 = INTEGER: direct(3)

              RFC1213-MIB::ipRouteType.127.0.0.0 = INTEGER: direct(3)

              RFC1213-MIB::ipRouteProto.0.0.0.0 = INTEGER: local(2)

              RFC1213-MIB::ipRouteProto.XX.XX.XX.0 = INTEGER: local(2)

              RFC1213-MIB::ipRouteProto.127.0.0.0 = INTEGER: local(2)

              RFC1213-MIB::ipRouteMask.0.0.0.0 = IpAddress: 0.0.0.0

              RFC1213-MIB::ipRouteMask.XX.XX.XX.0 = IpAddress: 255.255.255.0

              RFC1213-MIB::ipRouteMask.127.0.0.0 = IpAddress: 255.0.0.0

              RFC1213-MIB::ipRouteInfo.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero

              RFC1213-MIB::ipRouteInfo.XX.XX.XX.0 = OID: SNMPv2-SMI::zeroDotZero

              RFC1213-MIB::ipRouteInfo.127.0.0.0 = OID: SNMPv2-SMI::zeroDotZero

              IP-MIB::ipNetToMediaIfIndex.2.XX.XX.XX.1 = INTEGER: 2

              IP-MIB::ipNetToMediaIfIndex.2.XX.XX.XX.2 = INTEGER: 2

              IP-MIB::ipNetToMediaPhysAddress.2.XX.XX.XX.1 = STRING: 0:10:7b:36:c8:be

              IP-MIB::ipNetToMediaPhysAddress.2.XX.XX.XX.2 = STRING: 0:2:b3:2f:4f:79

              IP-MIB::ipNetToMediaNetAddress.2.XX.XX.XX.1 = IpAddress: XX.XX.XX.1

              IP-MIB::ipNetToMediaNetAddress.2.XX.XX.XX.2 = IpAddress: XX.XX.XX.2

              IP-MIB::ipNetToMediaType.2.XX.XX.XX.1 = INTEGER: dynamic(3)

              IP-MIB::ipNetToMediaType.2.XX.XX.XX.2 = INTEGER: dynamic(3)

              IP-MIB::ipRoutingDiscards.0 = Counter32: 0

              IP-MIB::icmpInMsgs.0 = Counter32: 83

              IP-MIB::icmpInErrors.0 = Counter32: 7

              IP-MIB::icmpInDestUnreachs.0 = Counter32: 71

              IP-MIB::icmpInTimeExcds.0 = Counter32: 0

              IP-MIB::icmpInParmProbs.0 = Counter32: 0

              IP-MIB::icmpInSrcQuenchs.0 = Counter32: 0

              IP-MIB::icmpInRedirects.0 = Counter32: 0

              IP-MIB::icmpInEchos.0 = Counter32: 12

              IP-MIB::icmpInEchoReps.0 = Counter32: 0

              IP-MIB::icmpInTimestamps.0 = Counter32: 0

              IP-MIB::icmpInTimestampReps.0 = Counter32: 0

              IP-MIB::icmpInAddrMasks.0 = Counter32: 0

              IP-MIB::icmpInAddrMaskReps.0 = Counter32: 0

              IP-MIB::icmpOutMsgs.0 = Counter32: 325

              IP-MIB::icmpOutErrors.0 = Counter32: 0

              IP-MIB::icmpOutDestUnreachs.0 = Counter32: 313

              IP-MIB::icmpOutTimeExcds.0 = Counter32: 0

              IP-MIB::icmpOutParmProbs.0 = Counter32: 0

              IP-MIB::icmpOutSrcQuenchs.0 = Counter32: 0

              IP-MIB::icmpOutRedirects.0 = Counter32: 0

              IP-MIB::icmpOutEchos.0 = Counter32: 0

              IP-MIB::icmpOutEchoReps.0 = Counter32: 12

              IP-MIB::icmpOutTimestamps.0 = Counter32: 0

              IP-MIB::icmpOutTimestampReps.0 = Counter32: 0

              IP-MIB::icmpOutAddrMasks.0 = Counter32: 0

              IP-MIB::icmpOutAddrMaskReps.0 = Counter32: 0

              TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: other(1)

              TCP-MIB::tcpRtoMin.0 = INTEGER: 0 milliseconds

              TCP-MIB::tcpRtoMax.0 = INTEGER: 0 milliseconds

              TCP-MIB::tcpMaxConn.0 = INTEGER: 0

              TCP-MIB::tcpActiveOpens.0 = Counter32: 14994

              TCP-MIB::tcpPassiveOpens.0 = Counter32: 7375

              TCP-MIB::tcpAttemptFails.0 = Counter32: 0

              TCP-MIB::tcpEstabResets.0 = Counter32: 0

              TCP-MIB::tcpCurrEstab.0 = Gauge32: 2

              TCP-MIB::tcpInSegs.0 = Counter32: 119000

              TCP-MIB::tcpOutSegs.0 = Counter32: 117469

              TCP-MIB::tcpRetransSegs.0 = Counter32: 780

              TCP-MIB::tcpInErrs.0 = Counter32: 0

              TCP-MIB::tcpOutRsts.0 = Counter32: 10311

              UDP-MIB::udpInDatagrams.0 = Counter32: 5212

              UDP-MIB::udpNoPorts.0 = Counter32: 300

              UDP-MIB::udpInErrors.0 = Counter32: 0

              UDP-MIB::udpOutDatagrams.0 = Counter32: 6522

              SNMPv2-MIB::snmpInPkts.0 = Counter32: 400

              SNMPv2-MIB::snmpOutPkts.0 = Counter32: 376

              SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0

              SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 24

              SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0

              SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0

              SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0

              SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0

              SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0

              SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0

              SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0

              SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 386

              SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0

              SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0

              SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 390

              SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0

              SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0

              SNMPv2-MIB::snmpInTraps.0 = Counter32: 0

              SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0

              SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0

              SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0

              SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0

              SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0

              SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0

              SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0

              SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 400

              SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0

              SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: disabled(2)

              SNMPv2-MIB::snmpSilentDrops.0 = Counter32: 0

              SNMPv2-MIB::snmpProxyDrops.0 = Counter32: 0