Zabbix Agent for WPKG on iPasserelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.3 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="zabbix_agent"
name="Agent de supervision Zabbix"
revision="17"
13 years ago
priority="10">
<variable name="PKG_VERSION" value="2.4.7.1" />
13 years ago
<variable architecture="x86" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x86.msi" />
<variable architecture="x64" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x64.msi" />
<check type="uninstall" condition="versiongreaterorequal" path="Zabbix Agent" value="%PKG_VERSION%"/>
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' />
<install cmd='netsh firewall add portopening TCP 10050 "Zabbix Agent" enable custom "%ZBX_SERVER_IP%"' />
13 years ago
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</upgrade>
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
</upgrade>
13 years ago
<upgrade include="install" />
<downgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</downgrade>
<downgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
13 years ago
</downgrade>
<downgrade include="install" />
<remove cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'>
<exit code="1" />
<exit code="0" />
</remove>
<remove cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --uninstall'>
<exit code="1" />
<exit code="0" />
13 years ago
</remove>
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' />
<remove cmd='netsh firewall delete portopening TCP 10050' />
</package>
</packages>