|
|
@ -3,7 +3,7 @@ |
|
|
|
<package id="zabbix_agent" |
|
|
|
<package id="zabbix_agent" |
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
name="Agent de supervision Zabbix" |
|
|
|
revision="20" |
|
|
|
revision="20" |
|
|
|
priority="10"> |
|
|
|
priority="10"> |
|
|
|
|
|
|
|
|
|
|
|
<variable name="PKG_VERSION" value="3.0.1" /> |
|
|
|
<variable name="PKG_VERSION" value="3.0.1" /> |
|
|
|
<variable architecture="x86" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x86.msi" /> |
|
|
|
<variable architecture="x86" name="MSI" value="%SOFTWARE%\zabbix_agent\zabbix_agent-%PKG_VERSION%_x86.msi" /> |
|
|
@ -13,11 +13,23 @@ |
|
|
|
|
|
|
|
|
|
|
|
<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 advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%ZBX_SERVER_IP%' /> |
|
|
|
<install cmd='netsh advfirewall firewall add rule name="Zabbix Agent" dir=in action=allow protocol=TCP localport=10050 enable=yes remoteip=%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 include="install" /> |
|
|
|
<upgrade include="install" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<downgrade cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
|
|
|
|
<exit code="any" /> |
|
|
|
|
|
|
|
</downgrade> |
|
|
|
<downgrade include="install" /> |
|
|
|
<downgrade include="install" /> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'> |
|
|
|
|
|
|
|
<exit code="any" /> |
|
|
|
|
|
|
|
</remove> |
|
|
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
|
|
|
<remove cmd='%COMSPEC% /C msiexec /qn /norestart /x "%MSI%"' /> |
|
|
|
<remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' /> |
|
|
|
<remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' /> |
|
|
|
|
|
|
|
|
|
|
|