tis-sensu-agent icon

Sensu Agent

Silent install package for Sensu Agent

6.13.0.7379-1

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

package           : tis-sensu-agent
version           : 6.13.0.7379-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          : PROD
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      : 09b07c78-89ba-461d-9814-65e3205ee79d
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : fd9debea71786cfaf1aef3b3352d1eb6a434522a266044f58f7087faaa51c0d7
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-02T10:01: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         : gFQNMJ3XKb42LNs6WvQyWE0og/Yl/gw++LbkDpVtAmyuupwto2CrJ0h9sLtojyq5GrqgrQdIoR44ZATT/7jq0t+ZcEAigVAgM2WaoD2X4lAKnepkEKRHwj1wOWHwG6ufGEtFDFd9tT0U6nptbbINCtlsC0Xh8r50+BEGnFw8qhbki4SQxwBGjDaoAvoVOYLn5fDxFvU7YigvGqjexAU8UbXlYKjfJZbkZb5qD/wJlaCIQdW2Z3n1iWdE4ErCfnBU8NmsyA5mGhwEN4WYywymBqBXbfC4gVGaBm8419XmKBUJ2k9YOLe+YH5Oy75yGM+kjSkskKRsjqnuenoDHv2zsA==

# -*- 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()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4f41b0d4a5daa89a10810719dff5a9b891b3d20c99d9b5cb023413458d1c9ecd : WAPT/control
fd9debea71786cfaf1aef3b3352d1eb6a434522a266044f58f7087faaa51c0d7 : WAPT/icon.png
581cb2e17571e37da10a9d4a9df758bae94e04dcc039921e1fb297c0f23b6b04 : luti.json
c3b487feea8f7ffa8374a5d2a814abb1d2466f503867026530e633d24cdb8aea : sensu-go-agent_6.13.0.7379_en-US.x64.msi
13ea2d7ead3f5e04abc5455670457c4b5052b95c7425c955d59c2c9fca4ce38a : setup.py
875013265c958566f56bf1ec77ea60d9ca74f9269aab6c3862786376a053854b : update_package.py