tis-datadog-agent icon

Datadog Agent

Silent install package for Datadog Agent

7.70.1-2

  • package: tis-datadog-agent
  • name: Datadog Agent
  • version: 7.70.1-2
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,cpe:/a:apache:license_2.0,wapt_public
  • target_os: windows
  • impacted_process: agent,ddtray,process-agent
  • architecture: x64
  • signature_date:
  • size: 158.93 Mo
  • installed_size: 754.02 Mo
  • homepage : https://docs.datadoghq.com/

package           : tis-datadog-agent
version           : 7.70.1-2
architecture      : x64
section           : base
priority          : optional
name              : Datadog Agent
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : The Datadog Agent is software that runs on your hosts. It collects events and metrics from hosts and sends them to Datadog, where you can analyze your    monitoring and performance data. The Datadog Agent is open source and its source code is available on GitHub at DataDog/datadog-agent
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : https://docs.datadoghq.com/agent/basic_agent_usage/windows/
installed_size    : 754021028
impacted_process  : agent,ddtray,process-agent
description_fr    : L'Agent Datadog est un logiciel qui s'exécute sur vos hôtes. Il collecte les événements et les métriques des hôtes et les envoie à Datadog, où vous pouvez analyser vos données de surveillance et de performances. L'Agent Datadog est open source et son code source est disponible sur GitHub à l'adresse DataDog/datadog-agent
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,cpe:/a:apache:license_2.0,wapt_public
homepage          : https://docs.datadoghq.com/
package_uuid      : 7e2d195d-d740-4de3-b663-69d19e3bc9b5
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://github.com/DataDog/datadog-agent/releases
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : e24a46ffe50b13a11cc2752134629f18890fcd80ca05ae10339ffae05fb9a040
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-09-15T14:08:19.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : M78jQ3BVLFNtolrOVs3EYN0FnXkTIGYBwZDhyEWfMyd3S5m66Gbq87lXW9mALGKZJAIH9LvQFQiJgxV8vXwzg1t/Mhty2A1923hssRc0+vLp3PUl+vLyZskFR7M06ZS2iOuDG4Cw9jGB/1Cg3d+OxefWQcA4hYwmYw/+4wlULjXZAW82fuS0Hv3KRvmY/cg1eyHxZqOGqnb+ptsf3ZBItUTE9IvKnJ24RMsnm1/u/iVhE/qboLbda5PgTxZZBOeE0c7itxk3CDz2OgewDDRbm9qemd0ScVNdxfrGOTDqC8o7GD9ppbwfVtRPtmz5UwNqjU73hpKX5byE31jSED8QXA==

# -*- coding: utf-8 -*-
from setuphelpers import *

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    # last_package_version = control.get_software_version()
    # bin_name = f"ddagent-cli-{last_package_version}.msi"
    bin_name = glob.glob("datadog-agent-*.msi")[0]

    # Installing the software
    install_msi_if_needed(bin_name)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import glob
import json
import os


def update_package():
    # Declaration of local variables
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()
    api_url = "https://ddagent-windows-stable.s3.amazonaws.com/installers_v2.json"

    # Get JSON data from API
    api_dict = wgets(api_url, proxies=proxies, as_json=True)

    # Check if key 'datadog-agent' exists in dictionary
    if "datadog-agent" in api_dict:
        # Determine latest version from JSON data
        last_version_key = max(api_dict["datadog-agent"].keys())  # use a lambda to make sure to compare digits
        last_version_info = api_dict["datadog-agent"][last_version_key]

        # Get installer URL for x86_64 architecture
        if "x86_64" in last_version_info:
            installer_url = last_version_info["x86_64"]["url"]
            latest_version = last_version_key

            print(f"Latest version available: {latest_version}")

            if not isfile(f"datadog-agent-{latest_version}.msi"):
                print(f"Downloading new version from {installer_url}")
                wget(installer_url, f"datadog-agent-{latest_version}.msi", proxies=proxies)

                # Cleaning temporary files
                for f in glob.glob("*.msi"):
                    if f != f"datadog-agent-{latest_version}.msi":
                        print(f"Removing file: {f}")
                        remove_file(f)

    version = latest_version.split("-")[0]

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating or not update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
0af73e49105029a48151eb451ffe39b090388e2ec5dab249ce55afd25042377d : WAPT/control
e24a46ffe50b13a11cc2752134629f18890fcd80ca05ae10339ffae05fb9a040 : WAPT/icon.png
be1f87f4d3402a23f6e75668f9bb7b072583e8ee0e88721843176f9a11c3dbc5 : datadog-agent-7.70.1-1.msi
b2ed2d9dc352af24e600be00307bdb9eaa3cc8075846f8732aebb3c41e51f0d5 : luti.json
5e062a46f77fa9adf9e107ea5f6c46307356e9700d4dfa0c34a5e15316a16c09 : setup.py
166faaa800660d64ad733dcefcf589887c08e9809ef20cfa38977fa15f06f646 : update_package.py