tis-zabbix-agent icon

Zabbix Agent

Paquet d’installation silencieuse pour Zabbix Agent

7.2.6.2400-3

  • package: tis-zabbix-agent
  • name: Zabbix Agent
  • version: 7.2.6.2400-3
  • maintainer: Amel FRADJ
  • licence: GNU General Public License
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 9.37 Mo
  • homepage : https://www.zabbix.com/

package           : tis-zabbix-agent
version           : 7.2.6.2400-3
architecture      : x64
section           : base
priority          : optional
name              : Zabbix Agent
categories        : 
maintainer        : Amel FRADJ
description       : Zabbix is an open-source software tool to monitor IT infrastructure such as networks, servers, virtual machines, and cloud services.[2] Zabbix collects and displays basic metrics
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Zabbix est un logiciel libre qui permet de surveiller les infrastructures informatiques telles que les réseaux, les serveurs, les machines virtuelles et les services en nuage[2]. Zabbix collecte et affiche des mesures de base
description_pl    : Zabbix to narzędzie typu open-source do monitorowania infrastruktury IT, takiej jak sieci, serwery, maszyny wirtualne i usługi w chmurze[2]. Zabbix zbiera i wyświetla podstawowe metryki
description_de    : Zabbix ist ein Open-Source-Softwaretool zur Überwachung von IT-Infrastrukturen wie Netzwerken, Servern, virtuellen Maschinen und Cloud-Diensten.[2] Zabbix sammelt und zeigt grundlegende Metriken an
description_es    : Zabbix es una herramienta de software de código abierto para monitorizar infraestructuras de TI como redes, servidores, máquinas virtuales y servicios en la nube[2]. Zabbix recopila y muestra métricas básicas
description_pt    : O Zabbix é uma ferramenta de software de código aberto para monitorizar a infraestrutura de TI, como redes, servidores, máquinas virtuais e serviços em nuvem.[2] O Zabbix recolhe e apresenta métricas básicas
description_it    : Zabbix è uno strumento software open-source per il monitoraggio dell'infrastruttura IT, come reti, server, macchine virtuali e servizi cloud.[2] Zabbix raccoglie e visualizza metriche di base
description_nl    : Zabbix is een open-source softwaretool voor het monitoren van IT-infrastructuur zoals netwerken, servers, virtuele machines en cloudservices.[2] Zabbix verzamelt en toont basisgegevens
description_ru    : Zabbix - это программное обеспечение с открытым исходным кодом для мониторинга ИТ-инфраструктуры, такой как сети, серверы, виртуальные машины и облачные сервисы.[2] Zabbix собирает и отображает основные метрики
audit_schedule    : 
editor            : 
keywords          : 
licence           : GNU General Public License
homepage          : https://www.zabbix.com/
package_uuid      : c2dd21bd-7459-408e-a749-8907bb0ec21c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ChangeLog
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 641bba1fb97f1ebf3fcb397be733446a2b45d78e73608b3f37f2d26e2cc7bafc
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-04-28T13:00:16.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         : TUBd5MzTyyRSila6qxtC6fntQXhrTOtnhZOvN+cvreQuO4kUjIU1dd8MtSAk8m0UR25Vno7go5/HQiEnGgY0fuXTu1k7Z0LVSpNpgheNhxAVUlhuy8geZQ9z3MDx54RerjLs6lC5B4qZajKguc8bDuFmuYlnLWCtjDuvBQHO1Po7Is8jjLt/LUyT4Zv/UeP00bZX3uIMA6pWkObZuIJcmLpZ2tNBABNfLJF693PuaA5hgseMG9dQ+taSHT2fltE/O9LZ2k/ZM+l/+IE0/XA2le6LlAopJ+nX1najAmTnTmPTQejFtHv8Js9+060uBSYx5GvvduzcpRIYZF4TUcIreA==

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

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

https://www.zabbix.com/documentation/current/en/manual/installation/install_from_packages/win_msi
"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
properties = {"SERVER": "server_fqdn"}


def install():

    for soft in installed_softwares("Zabbix Agent"):
        zabbix_folder = soft['install_location']
        zabbix_agentd = makepath(zabbix_folder,"zabbix_agentd.conf")
        if isfile(zabbix_agentd):
            with open(zabbix_agentd, 'r') as f:
                server = f.read().split('\nServer=')[1].split('\n')[0].strip()
                properties['SERVER'] = server
            break
    
    if WindowsVersions.Windows7 >= windows_version() :
        for soft in installed_softwares('Zabbix Agent'):
            if Version(soft['version']) < Version(control.get_software_version()):
                run(uninstall_cmd(soft['key']))

    # Declaring local variables
    bin_name = glob.glob("zabbix_agent-*.msi")[0]
    install_msi_if_needed(
        bin_name,
        min_version=control.get_software_version(),
        properties=properties,
    )

# -*- coding: utf-8 -*-
##################################################
# This file is part of WAPT Enterprise
# All right reserved, (c) Tranquil IT Systems 2023
# For more information please refer to
# https://wapt.tranquil.it/store/licences.html
##################################################
from setuphelpers import *
import json
import re
import requests


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name

    base_url = "https://cdn.zabbix.com/zabbix/binaries/stable/"
    re_versions = re.compile(r'<a href="([\d\.]+)/?">')

    # Récupération du contenu HTML de l'URL de base
    index = wgets(base_url, proxies=proxies)

    # Recherche des versions dans le contenu HTML
    versions = re_versions.findall(index)

    # Si des versions sont trouvées
    if versions:
        # Prendre la première version trouvée (ou la version la plus récente si déjà triée)
        latest_version = sorted(versions, key=lambda p: Version(p), reverse=True)[0]

        # Construire l'URL spécifique pour cette version
        url_zabbix = base_url + latest_version + "/"
        index_version = wgets(url_zabbix, proxies=proxies)

        # Rechercher la version spécifique (par exemple, 7.0.0)
        re_specific_version = re.compile(r'<a href="([\d\.]+?)/">')

        # Rechercher la version spécifique dans le contenu HTML
        specific_versions = re_specific_version.findall(index_version)

        # Si des versions spécifiques sont trouvées
        if specific_versions:
            # Prendre la première version spécifique trouvée (ou la version la plus récente si déjà triée)
            latest_specific_version = sorted(specific_versions, key=lambda p: Version(p), reverse=True)[0]
            if control.architecture == "x64":
                # Construire le nom du fichier MSI à partir de la version spécifique
                msi_filename = f"zabbix_agent-{latest_specific_version}-windows-amd64-openssl.msi"
                version = msi_filename.split("-")[1]
                download_url = "https://cdn.zabbix.com/zabbix/binaries/stable/%s" %latest_version +  "/" + latest_specific_version + "/" + msi_filename

        

                # remove files
                for f in glob.glob("*.msi"):
                    if f != msi_filename:
                        remove_file(f)

                # Downloading latest binaries
                wget(download_url, msi_filename, proxies=proxies)

                version =get_version_from_binary(msi_filename)

                control.set_software_version(version)
                control.save_control_to_wapt()

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
102b6a3116d2107f3b58468faf288f2361d9bc6b70053bd2a962fb1bcf4977ac : WAPT/control
641bba1fb97f1ebf3fcb397be733446a2b45d78e73608b3f37f2d26e2cc7bafc : WAPT/icon.png
215a4f94da8a91f7c84238176987c9bf4cc363caefb79144c2c37f2d76036ce8 : luti.json
5318ce7aec80e5ec8aca9ba33a77e2429f9191b5c410cb8c67cd81988ad5b30f : setup.py
c9e8d34ef939af0877ec7056881652471538ba5b86c053972215830bb1bf5b6c : update_package.py
086aea0bb524f248f07e5362b42c39feb033cc5146d3d4e4ad5bf845126dba4b : zabbix_agent-7.2.6-windows-amd64-openssl.msi