tis-sensu-agent

6.12.0.7321-1
The Sensu agent is a lightweight Sensu Go client that runs on the infrastructure components you wish to monitor
90 downloads
Download
See build result See VirusTotal scan
tis-sensu-agent icon
  • package : tis-sensu-agent
  • name : Sensu Agent
  • version : 6.12.0.7321-1
  • categories : Development
  • maintainer : WAPT Team,Tranquil IT,Amel FRADJ
  • editor :
  • licence : opensource_free,wapt_public
  • locale :
  • target_os : windows
  • impacted_process :
  • architecture : x64
  • signature_date : 2024-12-23 15:07
  • size : 8.93 Mo
  • homepage : https://sensu.io/
package           : tis-sensu-agent
version           : 6.12.0.7321-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      : 2d4109b9-247d-4dbb-b867-b9372285dc84
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    : 2024-12-23T15:07:06.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         : bmhR4/8CF//ia90WenuBnrL2y7FLL8yxsTII8ZbrKRWjhsgImYT1HNYV/j/qD4dwcZuuXPOQzMGtK7Jya62ur3ZSI+sXY2cftziqpUitgziGoC30uO1OaPmyysFsfioFEJgDF9U+Pyjkz50zAM+cVbxe9KvK1lvE0RchfD6DzHwPhm+9S8ynkVGU1xBKyf88sABYFKC05cA58LQFyb4yZM/w6XAv9KPdLQcPS2/YCR9aNU6sKpJKMVsIaFT9LghYt7MgRIE7vaaxYn+t2wZRk/YD7J4Vv+DIkScsIRxPFnuaS+TIjHAOqyqZVaT2fJy0U1cQHGBk5OAnBrUiASFn+A==
# -*- 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
9da8ab1519ca7816538941ae377ecdb39087380fbdc8d497510d54e55279df22 : WAPT/control
fd9debea71786cfaf1aef3b3352d1eb6a434522a266044f58f7087faaa51c0d7 : WAPT/icon.png
eede8ba876b644ec2cb118366b01c13837e0c251c3c3ed36affbf5e764f3a93c : luti.json
a2be7f391defe452e405769a4224eab01a749c86ac544cd88a79ef93b0652daa : sensu-go-agent_6.12.0.7321_en-US.x64.msi
13ea2d7ead3f5e04abc5455670457c4b5052b95c7425c955d59c2c9fca4ce38a : setup.py
875013265c958566f56bf1ec77ea60d9ca74f9269aab6c3862786376a053854b : update_package.py