tis-sensu-agent icon

Sensu Agent

Silent install package for Sensu Agent

6.14.0.7606-1
Development
Development

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-sensu-agent
  • name: Sensu Agent
  • version: 6.14.0.7606-1
  • categories: Development
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 10.01 Mo
  • homepage : https://sensu.io/

package           : tis-sensu-agent
version           : 6.14.0.7606-1
architecture      : x64
section           : base
priority          : optional
name              : Sensu Agent
categories        : Development
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : The Sensu agent is a lightweight Sensu Go client that runs on the infrastructure components you wish to monitor
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : L'agent Sensu est un client Sensu Go léger qui s'exécute sur les composants d'infrastructure que vous souhaitez surveiller
description_pl    : Agent Sensu to lekki klient Sensu Go, który działa na komponentach infrastruktury, które chcesz monitorować
description_de    : Der Sensu-Agent ist ein leichtgewichtiger Sensu-Go-Client, der auf den Infrastrukturkomponenten läuft, die Sie überwachen möchten
description_es    : El agente Sensu es un cliente ligero de Sensu Go que se ejecuta en los componentes de la infraestructura que desea supervisar
description_pt    : O agente Sensu é um cliente Sensu Go leve que é executado nos componentes da infraestrutura que pretende monitorizar
description_it    : L'agente Sensu è un client leggero di Sensu Go che viene eseguito sui componenti dell'infrastruttura che si desidera monitorare
description_nl    : De Sensu agent is een lichtgewicht Sensu Go client die draait op de infrastructuurcomponenten die je wilt bewaken
description_ru    : Агент Sensu - это легкий клиент Sensu Go, который запускается на компонентах инфраструктуры, которые вы хотите контролировать
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://sensu.io/
package_uuid      : 2c873424-1b4c-484f-b2b3-27569f16f179
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : fd9debea71786cfaf1aef3b3352d1eb6a434522a266044f58f7087faaa51c0d7
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-05-04T10:00:14.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         : MlmFT0Tm7YgHJ+/epUCKBuqrFGpAwaFCe/HdPZK0SqRRf1l7CIQsEpHaToir2di5XbzJ4TBapuZfHwSaupvzsn0ZhQ1hiiaP501riTxzBJ2kswsLSC5Q2rCQf//tIs7JnoTKuX6RO7NAxfA8lOvivUyMXgnVVOeUNTvTSUK+isA1Xuw8qAI7dHtjDoE2IaRw4E6EtqNK1w1xVwVGFc4WpHCX5O8LQI9v4drK9AqMfLNGHTS+leaqz5R5wvI+NsY6u2qGQ8L09VulfqNFNhkgRtu6HiywauhhiwBDduA0n6VoKHOdnSTAXzkOy556ztiJqG4bqlQoCjRuRtidXi8Xvw==

# -*- 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
    bin_name =glob.glob('sensu-go-agent_*.msi')[0]
    # Installing the software

    install_msi_if_needed(bin_name)



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

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


def update_package():
    result = False
    proxies = get_proxies()

    if not proxies:
        proxies = get_proxies_from_wapt_console()
    
    git_repo = "sensu/sensu-go"
    url_api = "https://api.github.com/repos/%s/releases/latest" % git_repo   
    # Getting latest version information from official sources
    print("API used is: %s" % url_api)
    json_load = json.loads(wgets(url_api, proxies=proxies))
    version = json_load["tag_name"].replace("v","")

    url_base = "https://sensu.io/downloads"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "div","class","content-meta", proxies=proxies)
    msi_file = None
    for div in divs:
        if msi_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.msi'):
                href = link['href']
                msi_file = href
                download_url = msi_file
                latest_bin = msi_file.split('/')[-1]
                break


    if not isfile(latest_bin):
        package_updated = True
        wget(download_url,latest_bin,proxies=proxies)

    #nettoyer les fichiers temporaires
    for f in glob.glob('*.msi'):
        if f != latest_bin:
            remove_file(f)

    version =get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt()

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
5af09831c18e2df6d5d92c4a543188069414728b15ed5429234278b7f3d192d2 : WAPT/control
fd9debea71786cfaf1aef3b3352d1eb6a434522a266044f58f7087faaa51c0d7 : WAPT/icon.png
538e922a3c259ca39d12b2bb3ae5cb41cc089ed9b08803bd4600b6daf262be02 : luti.json
30721af74762ddd5f6fe06a28378d4677d5e312feefbf8ff7b53befb8ffd41c9 : sensu-go-agent_6.14.0.7606_en-US.x64.msi
13ea2d7ead3f5e04abc5455670457c4b5052b95c7425c955d59c2c9fca4ce38a : setup.py
875013265c958566f56bf1ec77ea60d9ca74f9269aab6c3862786376a053854b : update_package.py