|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
<packages> |
|
|
|
|
<package id="zabbix_agent" |
|
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
|
revision="16" |
|
|
|
|
revision="17" |
|
|
|
|
priority="10"> |
|
|
|
|
|
|
|
|
|
<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='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"'> |
|
|
|
|
<exit code="any" /> |
|
|
|
|
</upgrade> |
|
|
|
|
<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> |
|
|
|
|
<upgrade include="install" /> |
|
|
|
|
|
|
|
|
|
<downgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
|
<exit code="any" /> |
|
|
|
|
<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" /> |
|
|
|
|
</downgrade> |
|
|
|
|
<downgrade include="install" /> |
|
|
|
|
|
|
|
|
|
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
|
<exit code="any" /> |
|
|
|
|
|
|
|
|
|
<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" /> |
|
|
|
|
</remove> |
|
|
|
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
|
|
|
|
<remove cmd='netsh firewall delete portopening TCP 10050' /> |
|
|
|
|