Precompressed content-type found in HTTP Compression profile-f5-all

Precompressed content-type found in HTTP Compression profile-f5-all

Vendor: f5

OS: all

Description:
Using the F5 device to compress content is a way of accelerating application content delivery. However, compressing content that is already pre-compressed results in longer response times and is using up system resources in vain. indeni will alert when already-compressed content types are set for compression.

Remediation Steps:
Remove any pre-compressed content type from the HTTP Compression profile. For each profile mentioned below, the specific content types that should be removed are listed.

How does this work?
This alert logs into the F5 through SSH and looks through all compression profiles for pre-compressed content-types.

Why is this important?
Using the F5 device to compress content is a way of accelerating application content delivery. However, compressing content that is already pre-compressed results in longer response times to clients and uses system resources in vain. This metric retrieves profiles with pre-compressed content.

Without Indeni how would you find this?
Log into the device through SSH. Enter TMSH and issue the command “cd /;list ltm profile http-compression content-type-include”. Look through each entry in the list and look for pre-compressed content-types.

f5-tmsh-list-ltm-profile-http-compression

name: f5-tmsh-list-ltm-profile-http-compression
description: Find use content-types that is already compressed
type: monitoring
monitoring_interval: 60 minutes
requires:
    vendor: f5
    product: load-balancer
    shell: bash
comments:
    f5-compression-profile-precompressed-content-types:
        why: |
            Using the F5 device to compress content is a way of accelerating application content delivery. However, compressing content that is already pre-compressed results in longer response times to clients and uses system resources in vain. This metric retrieves profiles with pre-compressed content.
        how: |
            This alert logs into the F5 through SSH and looks through all compression profiles for pre-compressed content-types.
        can-with-snmp: false
        can-with-syslog: false
steps:
-   run:
        type: SSH
        command: ${nice-path} -n 15 tmsh -q -c "cd /;list ltm profile http-compression
            recursive content-type-include"
    parse:
        type: AWK
        file: tmsh-list-ltm-profile-http-compression.parser.1.awk

f5_precompressed_content_in_compression_profile

Failed to fetch the data: https://bitbucket.org/indeni/indeni-knowledge/src/master/rules/templatebased/f5/f5_precompressed_content_in_compression_profile.scala