|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
<packages> |
|
|
|
|
<package id="zabbix_agent" |
|
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
|
revision="19" |
|
|
|
|
revision="20" |
|
|
|
|
priority="10"> |
|
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value="3.0.1" /> |
|
|
|
@ -14,34 +14,10 @@ |
|
|
|
|
<install cmd='msiexec /qn /i "%MSI%" SERVER=%ZBX_SERVER_IP% RMTCMD=0' /> |
|
|
|
|
<install cmd='netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%ZBX_SERVER_IP%' /> |
|
|
|
|
|
|
|
|
|
<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='"%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='"%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 advfirewall firewall del rule name="Zabbix Agent"' /> |
|
|
|
|
|
|
|
|
|