tis-datadog-agent icon

Datadog Agent

Silent install package for Datadog Agent

7.68.0-2

  • package: tis-datadog-agent
  • name: Datadog Agent
  • version: 7.68.0-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: 153.41 Mo
  • installed_size: 754.02 Mo
  • homepage : https://docs.datadoghq.com/

package           : tis-datadog-agent
version           : 7.68.0-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      : 047f60cf-92a3-445a-80fc-867c61cd7ec0
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-07-15T13:03:41.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         : fghOdZAwYYnok7tlUWYMKk6NCLpbId168dYEQBpFeit3R+KPr3tDFXsVsdL8uF3zOeEu2flpN5z+Ae286A28dl75j5MKhFeoxXoCh2X3SmPBm1KxdDf57Q70DYih4opqmwIHox3PnVDWF9BKen5agXhnLvFg9rKrUgh4RQCjGhqgUVK0htWIxXn0ZHmeogeOJoPjVt7dW1F0f2NGc2Ad5nlQu6faiHJYRq9V6MRTnh1VgBkpCAiWvzeBPFa+QGlFjDYdcbHYB/HjCbAQJa3N2CeWsBDmusnHx24KO2kx93YuXRyar2pUwkRW5zNP1REZWvycFKT+eKpDRV/XQDNcQw==

# -*- 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
e894629d9ec10e8a65a5730587ec682298071b0ed7d86897b7687b0ea0e42b51 : WAPT/control
e24a46ffe50b13a11cc2752134629f18890fcd80ca05ae10339ffae05fb9a040 : WAPT/icon.png
289ef697ba42a81df3e66658ca79b4eab530118828a35c6fac6f444fe2195a7d : datadog-agent-7.68.0-1.msi
654e1e75ffe57aea6a24062c966f41de4bf60c7d3a6c2ff89aa20b97c9ebdec9 : luti.json
5e062a46f77fa9adf9e107ea5f6c46307356e9700d4dfa0c34a5e15316a16c09 : setup.py
166faaa800660d64ad733dcefcf589887c08e9809ef20cfa38977fa15f06f646 : update_package.py