extends:
  - cisco.yaml

selector:
  - sysobjectid:
      include:
        - 1.3.6.1.4.1.9.1.824 # Cisco ACE 4710

metadata:
  device:
    fields:
      type:
        value: "Server Load Balancer"
      vendor:
        value: "Cisco"

metrics:
  - MIB: CISCO-SLB-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.161.1.1.1
      name: slbStatsTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.6
        name: slbStatsCreatedConnections
        chart_meta:
          description: Number of TCP and UDP connections created since SLB was configured
          family: 'Network/LoadBalancer/Connection/Created'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.7
        name: slbStatsCreatedHCConnections
        chart_meta:
          description: Number of connections created by SLB since it was configured (64-bit)
          family: 'Network/LoadBalancer/Connection/Created'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.8
        name: slbStatsEstablishedConnections
        chart_meta:
          description: Number of connections established through SLB
          family: 'Network/LoadBalancer/Connection/Established'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.9
        name: slbStatsEstablishedHCConnections
        chart_meta:
          description: Number of connections established through SLB (64-bit)
          family: 'Network/LoadBalancer/Connection/Established'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.10
        name: slbStatsDestroyedConnections
        chart_meta:
          description: Number of TCP and UDP connections destroyed by SLB
          family: 'Network/LoadBalancer/Connection/Destroyed'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.11
        name: slbStatsDestroyedHCConnections
        chart_meta:
          description: Number of TCP and UDP connections destroyed by SLB (64-bit)
          family: 'Network/LoadBalancer/Connection/Destroyed'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.12
        name: slbStatsReassignedConnections
        chart_meta:
          description: Number of TCP and UDP connections reassigned from one real server to another
          family: 'Network/LoadBalancer/Connection/Reassigned'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.161.1.1.1.1.13
        name: slbStatsReassignedHCConnections
        chart_meta:
          description: Number of TCP and UDP connections reassigned from one real server to another (64-bit)
          family: 'Network/LoadBalancer/Connection/Reassigned'
          unit: "{connection}/s"
    metric_tags:
      - tag: slb_entity_index
        index: 1 # index `slbEntity`

  - MIB: CISCO-SLB-EXT-MIB
    table:
      OID: 1.3.6.1.4.1.9.9.254.1.1.1
      name: cslbxStatsTable
    symbols:
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.3
        name: cslbxStatsCurrConnections
        chart_meta:
          description: Number of connections currently still open
          family: 'Network/LoadBalancer/Connection/Current'
          unit: "{connection}"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.5
        name: cslbxStatsFailedConns
        chart_meta:
          description: Number of connections that were load balanced to real servers that then failed to respond
          family: 'Network/LoadBalancer/Connection/Failed'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.7
        name: cslbxStatsL4PolicyConns
        chart_meta:
          description: Number of connections made to the virtual servers with only layer 4 configuration
          family: 'Network/LoadBalancer/VirtualServer/Layer4/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.26
        name: cslbxStatsL4PolicyHCConns
        chart_meta:
          description: Number of connections made to the virtual servers with only layer 4 configuration (64-bit)
          family: 'Network/LoadBalancer/VirtualServer/Layer4/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.8
        name: cslbxStatsL7PolicyConns
        chart_meta:
          description: Number of connections made to the virtual servers with some layer 7 configuration
          family: 'Network/LoadBalancer/VirtualServer/Layer7/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.27
        name: cslbxStatsL7PolicyHCConns
        chart_meta:
          description: Number of connections made to the virtual servers with some layer 7 configuration (64-bit)
          family: 'Network/LoadBalancer/VirtualServer/Layer7/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.9
        name: cslbxStatsDroppedL4PolicyConns
        chart_meta:
          description: Number of connections dropped by virtual servers with only layer 4 configuration
          family: 'Network/LoadBalancer/VirtualServer/Layer4/Dropped'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.28
        name: cslbxStatsDroppedL4PolicyHCConns
        chart_meta:
          description: Number of connections dropped by virtual servers with only layer 4 configuration (64-bit)
          family: 'Network/LoadBalancer/VirtualServer/Layer4/Dropped'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.10
        name: cslbxStatsDroppedL7PolicyConns
        chart_meta:
          description: Number of connections dropped by virtual servers with some layer 7 policy
          family: 'Network/LoadBalancer/VirtualServer/Layer7/Dropped'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.29
        name: cslbxStatsDroppedL7PolicyHCConns
        chart_meta:
          description: Number of connections dropped by virtual servers with some layer 7 configuration
          family: 'Network/LoadBalancer/VirtualServer/Layer7/Dropped'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.11
        name: cslbxStatsFtpConns
        chart_meta:
          description: Number of connections made to virtual servers with the FTP service
          family: 'Network/LoadBalancer/VirtualServer/FTP/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.12
        name: cslbxStatsHttpRedirectConns
        chart_meta:
          description: Number of connections made to HTTP redirect servers
          family: 'Network/LoadBalancer/HTTPRedirect/Connection'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.13
        name: cslbxStatsDroppedRedirectConns
        chart_meta:
          description: Number of connections dropped by HTTP redirect servers
          family: 'Network/LoadBalancer/HTTPRedirect/Dropped'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.14
        name: cslbxStatsNoMatchPolicyRejects
        chart_meta:
          description: Number of connections rejected because they failed to match any configured policy
          family: 'Network/LoadBalancer/Connection/Rejected/NoPolicy'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.30
        name: cslbxStatsNoMatchPolicyHCRejects
        chart_meta:
          description: Number of connections rejected because they failed to match any configured policy (64-bit)
          family: 'Network/LoadBalancer/Connection/Rejected/NoPolicy'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.15
        name: cslbxStatsNoCfgPolicyRejects
        chart_meta:
          description: Number of connections rejected because the matching virtual server was not configured with any policy
          family: 'Network/LoadBalancer/Connection/Rejected/NoConfig'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.31
        name: cslbxStatsNoCfgPolicyHCRejects
        chart_meta:
          description: Number of connections rejected because the matching virtual server was not configured with any policy (64-bit)
          family: 'Network/LoadBalancer/Connection/Rejected/NoConfig'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.16
        name: cslbxStatsNoActiveServerRejects
        chart_meta:
          description: Number of connections rejected because the chosen server farm did not have any active servers
          family: 'Network/LoadBalancer/Connection/Rejected/NoServer'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.17
        name: cslbxStatsAclDenyRejects
        chart_meta:
          description: Number of connections rejected because the the matching client access list was configured to deny access
          family: 'Network/LoadBalancer/Connection/Rejected/ACL'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.32
        name: cslbxStatsAclDenyHCRejects
        chart_meta:
          description: Number of connections rejected because the the matching client access list was configured to deny access (64-bit)
          family: 'Network/LoadBalancer/Connection/Rejected/ACL'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.18
        name: cslbxStatsMaxParseLenRejects
        chart_meta:
          description: Number of connections rejected because the length of an HTTP request or response header exceeded the maximum L7 parse length configured for the matching virtual server
          family: 'Network/LoadBalancer/Connection/Rejected/ParseLength'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.19
        name: cslbxStatsBadSslFormatRejects
        chart_meta:
          description: Number of connections rejected because some invalid or unrecognized SSL format was detected
          family: 'Network/LoadBalancer/Connection/Rejected/SSL'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.20
        name: cslbxStatsL7ParserErrorRejects
        chart_meta:
          description: Number of connections rejected because an error occurred while parsing the connection data at Layer 7
          family: 'Network/LoadBalancer/Connection/Rejected/ParseError'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.21
        name: cslbxStatsVerMismatchRejects
        chart_meta:
          description: Number of connections rejected because the Layer 7 configuration was changed while Layer 7 parsing was occurring on the connection
          family: 'Network/LoadBalancer/Connection/Rejected/VersionMismatch'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.33
        name: cslbxStatsVerMismatchHCRejects
        chart_meta:
          description: Number of connections rejected because the Layer 7 configuration was changed while Layer 7 parsing was occurring on the connection (64-bit)
          family: 'Network/LoadBalancer/Connection/Rejected/VersionMismatch'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.22
        name: cslbxStatsOutOfMemoryRejects
        chart_meta:
          description: Number of connections rejected because the SLB module could not allocate the required memory
          family: 'Network/LoadBalancer/Connection/Rejected/Memory'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.23
        name: cslbxStatsTimedOutConnections
        chart_meta:
          description: Number of connections that were terminated because they were idle longer than the configured idle timeout value
          family: 'Network/LoadBalancer/Connection/Timeout'
          unit: "{connection}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.24
        name: cslbxStatsTcpChecksumErrorPkts
        chart_meta:
          description: Accumulated number of TCP packets which have checksum error
          family: 'Network/TCP/Error/Checksum'
          unit: "{error}/s"
      - OID: 1.3.6.1.4.1.9.9.254.1.1.1.1.25
        name: cslbxStatsIpChecksumErrorPkts
        chart_meta:
          description: Accumulated number of IP packets which have checksum error
          family: 'Network/IP/Error/Checksum'
          unit: "{packet}/s"
    metric_tags:
      - tag: slb_entity_index
        index: 1 # index `slbEntity` of `slbStatsTable`
