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.

35 lines
1.4 KiB

13 years ago
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="zabbix_agent"
name="Agent de supervision Zabbix"
8 years ago
revision="23"
priority="10">
13 years ago
8 years ago
<variable name="PKG_VERSION" value="3.0.3" />
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 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>
13 years ago
<upgrade include="remove" />
13 years ago
<upgrade include="install" />
<downgrade include="remove" />
13 years ago
<downgrade include="install" />
<remove cmd='%COMSPEC% /C sc stop "Zabbix Agent"'>
<exit code="any" />
</remove>
<!-- Remove by GUID -->
<remove cmd='msiexec /qn /norestart /x "{BFF41D43-5F14-4B3C-AFD1-CC91F673E88E}"' />
<remove cmd='netsh advfirewall firewall del rule name="Zabbix Agent"' />
13 years ago
</package>
</packages>