|
|
@ -2,7 +2,7 @@ |
|
|
|
<packages> |
|
|
|
<packages> |
|
|
|
<package id="zabbix_agent" |
|
|
|
<package id="zabbix_agent" |
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
revision="16" |
|
|
|
revision="17" |
|
|
|
priority="10"> |
|
|
|
priority="10"> |
|
|
|
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value="2.4.7.1" /> |
|
|
|
<variable name="PKG_VERSION" value="2.4.7.1" /> |
|
|
@ -13,22 +13,34 @@ |
|
|
|
|
|
|
|
|
|
|
|
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' /> |
|
|
|
<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%"' /> |
|
|
|
<install cmd='netsh firewall add portopening TCP 10050 "Zabbix Agent" enable custom "%ZBX_SERVER_IP%"' /> |
|
|
|
<install cmd='%COMSPEC% /C sc start "Zabbix Agent"'> |
|
|
|
|
|
|
|
<exit code="any" /> |
|
|
|
|
|
|
|
</install> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<upgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
<upgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'> |
|
|
|
<exit code="any" /> |
|
|
|
<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> |
|
|
|
</upgrade> |
|
|
|
<upgrade include="install" /> |
|
|
|
<upgrade include="install" /> |
|
|
|
|
|
|
|
|
|
|
|
<downgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
<downgrade cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'> |
|
|
|
<exit code="any" /> |
|
|
|
<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" /> |
|
|
|
</downgrade> |
|
|
|
</downgrade> |
|
|
|
<downgrade include="install" /> |
|
|
|
<downgrade include="install" /> |
|
|
|
|
|
|
|
|
|
|
|
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
<remove cmd='"%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.exe" -c "%PROGRAMFILES%\Zabbix Agent\zabbix_agentd.conf" --stop'> |
|
|
|
<exit code="any" /> |
|
|
|
<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" /> |
|
|
|
</remove> |
|
|
|
</remove> |
|
|
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
|
|
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
|
|
|
<remove cmd='netsh firewall delete portopening TCP 10050' /> |
|
|
|
<remove cmd='netsh firewall delete portopening TCP 10050' /> |
|
|
|