Downloads:

2,527

Downloads of v 4.4.1:

43

Last Update:

11/19/2019

Package Maintainer(s):

Software Author(s):

  • Zabbix LLC

Tags:

zabbix monitoring admin msi

Zabbix Agent (Install)

4.4.1 | Updated: 11/19/2019

Downloads:

2,527

Downloads of v 4.4.1:

43

Maintainer(s):

Software Author(s):

  • Zabbix LLC

Zabbix Agent (Install) 4.4.1

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install Zabbix Agent (Install), run the following command from the command line or from PowerShell:

>

To upgrade Zabbix Agent (Install), run the following command from the command line or from PowerShell:

>

To uninstall Zabbix Agent (Install), run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade zabbix-agent.install -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade zabbix-agent.install -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure zabbix-agent.install installed
  win_chocolatey:
    name: zabbix-agent.install
    state: present
    version: 4.4.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'zabbix-agent.install' do
  action    :install
  version  '4.4.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: zabbix-agent.install,
    Version: 4.4.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller zabbix-agent.install
{
   Name     = 'zabbix-agent.install'
   Ensure   = 'Present'
   Version  = '4.4.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'zabbix-agent.install':
  provider => 'chocolatey',
  ensure   => '4.4.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install zabbix-agent.install version="4.4.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

This package was approved as a trusted package on 11/19/2019.

Description

This package installs the Zabbix agent MSI from the pre-compiled files supplied by Zabbix LLC. The source code for this Chocolatey package can be found on GitHub. Please file any issues you find in the project's Issue tracker.

Package installation defaults

By default, installation of this package:

  • Will install the OpenSSL version of the Zabbix agent to "%ProgramFiles%\Zabbix Agent".
  • Will set the hostname to $env:COMPUTERNAME.
  • Will set the server to 127.0.0.1.
  • Will add firewall rules.
  • Will NOT enable encryption.
  • Will NOT enable remote commands.

Package Parameters

Defaults are listed in brackets, a full list of configuration options are availabe in the Zabbix documentation.

Please Note: To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

  • LOGTYPE - Log output type (file).
  • LOGFILE - Name of the agent log file ($INSTALLFOLDER\zabbix_agentd.log).
  • ENABLEREMOTECOMMANDS - Whether remote commands from Zabbix server are allowed (0).
  • SERVER - List of comma delimited IP addresses (127.0.0.1).
  • LISTENPORT - Agent will listen on this port for connections from the server (10050)
  • SERVERACTIVE - IP:port (or hostname:port) of Zabbix server or Zabbix proxy for active checks ($SERVER).
  • HOSTNAME - Unique, case sensitive hostname ($env:COMPUTERNAME)
  • TIMEOUT - Spend no more than Timeout seconds on processing (3).
  • TLSCONNECT - How the agent should connect to Zabbix server or proxy. Used for active checks (unencrypted).
  • TLSACCEPT - What incoming connections to accept (unencrypted).
  • TLSPSKIDENTITY - Pre-shared key identity string, used for encrypted communications with Zabbix server.
  • TLSPSKFILE - Full pathname of a file containing the agent private key used for encrypted communications with Zabbix components.
  • TLSPSKVALUE - Pre-shared key value string, used for encrypted communications with Zabbix server.
  • TLSCAFILE - Full pathname of a file containing the top-level CA(s) certificates for peer certificate verification, used for encrypted communications between Zabbix components.
  • TLSCRLFILE - Full pathname of a file containing revoked certificates. This parameter is used for encrypted communications with Zabbix components.
  • TLSSERVERCERTISSUER - Allowed server (proxy) certificate issuer.
  • TLSSERVERCERTSUBJECT - Allowed server (proxy) certificate subject.
  • TLSCERTFILE - Full pathname of a file containing the agent certificate or certificate chain, used for encrypted communications with Zabbix components.
  • TLSKEYFILE - Full pathname of a file containing the agent pre-shared key used for encrypted communications with Zabbix components.
  • INSTALLFOLDER - Full pathname specifying where the Zabbix agent should be installed (%ProgramFiles%\Zabbix Agent).
  • ENABLEPATH - Add Zabbix agent to the PATH environment variable (0).
  • SKIP - Passing "fw" to this parameter will skip adding the firewall exception rule.

These parameters can be passed to the installer with the use of -params.
For example :
choco install zabbix-agent.install -params '"/SERVER:192.168.6.76 /HOSTNAME:zabbix-agent-1.zabbix.com /ENABLEREMOTECOMMANDS:1 /SKIP:fw"'


tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop';

$packageName  = 'zabbix-agent.install'
$title        = 'Zabbix Agent'
$version      = '4.4.1'
$url32        = "https://www.zabbix.com/downloads/$version/zabbix_agent-$version-win-i386-openssl.msi"
$url64        = "https://www.zabbix.com/downloads/$version/zabbix_agent-$version-win-amd64-openssl.msi"
$checksum32   = '94c909cba0e7e9da576671dd79617c8b'
$checksum64   = 'eb11c7d4ff01caeac7c666be8c0d4bda'

$installDir = Join-Path $env:PROGRAMFILES $title

$pp = Get-PackageParameters
$INSTALLFOLDER        = if ($pp.INSTALLFOLDER) { $pp.INSTALLFOLDER } else { $installDir }
$LOGTYPE              = if ($pp.LOGTYPE) { $pp.LOGTYPE } else { 'file' }
$LOGFILE              = if ($pp.LOGFILE) { $pp.LOGFILE } else { "$INSTALLFOLDER\zabbix_agentd.log" }
$ENABLEREMOTECOMMANDS = if ($pp.ENABLEREMOTECOMMANDS) { $pp.ENABLEREMOTECOMMANDS } else { '0' }
$SERVER               = if ($pp.SERVER) { $pp.SERVER } else { '127.0.0.1' }
$LISTENPORT           = if ($pp.LISTENPORT) { $pp.LISTENPORT } else { '10050' }
$SERVERACTIVE         = if ($pp.SERVERACTIVE) { $pp.SERVERACTIVE } else { $SERVER }
$HOSTNAME             = if ($pp.HOSTNAME) { $pp.HOSTNAME } else { $env:COMPUTERNAME }
$TIMEOUT              = if ($pp.TIMEOUT) { $pp.TIMEOUT } else { '3' }
$TLSCONNECT           = if ($pp.TLSCONNECT) { $pp.TLSCONNECT } else { 'unencrypted' }
$TLSACCEPT            = if ($pp.TLSACCEPT) { $pp.TLSACCEPT } else { 'unencrypted' }
$TLSPSKIDENTITY       = if ($pp.TLSPSKIDENTITY) { $pp.TLSPSKIDENTITY } else { '' }
$TLSPSKFILE           = if ($pp.TLSPSKFILE) { $pp.TLSPSKFILE } else { '' }
$TLSPSKVALUE          = if ($pp.TLSPSKVALUE) { $pp.TLSPSKVALUE } else { 0 }
$TLSCAFILE            = if ($pp.TLSCAFILE) { $pp.TLSCAFILE } else { '' }
$TLSCRLFILE           = if ($pp.TLSCRLFILE) { $pp.TLSCRLFILE } else { '' }
$TLSSERVERCERTISSUER  = if ($pp.TLSSERVERCERTISSUER) { $pp.TLSSERVERCERTISSUER } else { '' }
$TLSSERVERCERTSUBJECT = if ($pp.TLSSERVERCERTSUBJECT) { $pp.TLSSERVERCERTSUBJECT } else { '' }
$TLSCERTFILE          = if ($pp.TLSCERTFILE) { $pp.TLSCERTFILE } else { '' }
$TLSKEYFILE           = if ($pp.TLSKEYFILE) { $pp.TLSKEYFILE } else { '' }
$ENABLEPATH           = if ($pp.ENABLEPATH) { $pp.ENABLEPATH } else { 0 }
$SKIP                 = if ($pp.SKIP) { $pp.SKIP } else { 0 }

# TLSPSKVALUE does not like being set if it isn't being used.
if ($TLSPSKVALUE -ne 0) {
  $silentArgs = "/qn /norestart INSTALLFOLDER=`"$INSTALLFOLDER`" LOGTYPE=`"$LOGTYPE`" LOGFILE=`"$LOGFILE`" ENABLEREMOTECOMMANDS=`"$ENABLEREMOTECOMMANDS`" SERVER=`"$SERVER`" LISTENPORT=`"$LISTENPORT`" SERVERACTIVE=`"$SERVERACTIVE`" HOSTNAME=`"$HOSTNAME`" TIMEOUT=`"$TIMEOUT`" TLSCONNECT=`"$TLSCONNECT`" TLSACCEPT=`"$TLSACCEPT`" TLSPSKIDENTITY=`"$TLSPSKIDENTITY`" TLSPSKFILE=`"$TLSPSKFILE`" TLSPSKVALUE=`"$TLSPSKVALUE`" TLSCAFILE=`"$TLSCAFILE`" TLSCRLFILE=`"$TLSCRLFILE`" TLSSERVERCERTISSUER=`"$TLSSERVERCERTISSUER`" TLSSERVERCERTSUBJECT=`"$TLSSERVERCERTSUBJECT`" TLSCERTFILE=`"$TLSCERTFILE`" TLSKEYFILE=`"$TLSKEYFILE`" ENABLEPATH=`"$ENABLEPATH`" SKIP=`"$SKIP`""
} else {
  $silentArgs = "/qn /norestart INSTALLFOLDER=`"$INSTALLFOLDER`" LOGTYPE=`"$LOGTYPE`" LOGFILE=`"$LOGFILE`" ENABLEREMOTECOMMANDS=`"$ENABLEREMOTECOMMANDS`" SERVER=`"$SERVER`" LISTENPORT=`"$LISTENPORT`" SERVERACTIVE=`"$SERVERACTIVE`" HOSTNAME=`"$HOSTNAME`" TIMEOUT=`"$TIMEOUT`" TLSCONNECT=`"$TLSCONNECT`" TLSACCEPT=`"$TLSACCEPT`" TLSPSKIDENTITY=`"$TLSPSKIDENTITY`" TLSPSKFILE=`"$TLSPSKFILE`" TLSCAFILE=`"$TLSCAFILE`" TLSCRLFILE=`"$TLSCRLFILE`" TLSSERVERCERTISSUER=`"$TLSSERVERCERTISSUER`" TLSSERVERCERTSUBJECT=`"$TLSSERVERCERTSUBJECT`" TLSCERTFILE=`"$TLSCERTFILE`" TLSKEYFILE=`"$TLSKEYFILE`" ENABLEPATH=`"$ENABLEPATH`" SKIP=`"$SKIP`""
}

$packageArgs = @{
  packageName    = $packageName
  fileType       = 'MSI'
  url            = $url32
  url64bit       = $url64

  softwareName   = 'Zabbix Agent*'

  checksum       = $checksum32
  checksumType   = 'md5'
  checksum64     = $checksum64
  checksumType64 = 'md5'

  silentArgs     = $silentArgs
  validExitCodes = @(0, 3010, 1641)
}

Install-ChocolateyPackage @packageArgs
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop';

$packageName  = 'zabbix-agent.install'
$softwareName = 'Zabbix Agent*'
$installerType = 'MSI'
$silentArgs = '/qn /norestart'
$validExitCodes = @(0, 3010, 1605, 1614, 1641)

$uninstalled = $false
[array]$key = Get-UninstallRegistryKey -SoftwareName $softwareName

if ($key.Count -eq 1) {
  $key | ForEach-Object {
    $file = "$($_.UninstallString)"

    if ($installerType -eq 'MSI') {
      $silentArgs = "$($_.PSChildName) $silentArgs"
       $file = ''
    }

    Uninstall-ChocolateyPackage -PackageName $packageName `
                                -FileType $installerType `
                                -SilentArgs "$silentArgs" `
                                -ValidExitCodes $validExitCodes `
                                -File "$file"
  }
} elseif ($key.Count -eq 0) {
  Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
  Write-Warning "$key.Count matches found!"
  Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
  Write-Warning "Please alert package maintainer the following keys were matched:"
  $key | ForEach-Object {Write-Warning "- $_.DisplayName"}
}

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Zabbix Agent (Install) 4.2.6 1154 Thursday, August 29, 2019 Approved
Zabbix Agent (Install) 4.2.4 774 Monday, July 29, 2019 Approved
Zabbix Agent (Install) 4.2.3 304 Tuesday, June 11, 2019 Approved
Zabbix Agent (Install) 4.2.1 40 Tuesday, June 4, 2019 Approved
Zabbix Agent (Install) 4.0.12 25 Thursday, August 29, 2019 Approved
Zabbix Agent (Install) 4.0.10 104 Monday, July 29, 2019 Approved
Zabbix Agent (Install) 4.0.9 25 Tuesday, June 11, 2019 Approved
Zabbix Agent (Install) 4.0.7 23 Tuesday, June 4, 2019 Approved
Zabbix Agent (Install) 3.0.28 35 Tuesday, June 4, 2019 Approved

This package has no dependencies.

Discussion for the Zabbix Agent (Install) Package

Ground Rules:

  • This discussion is only about Zabbix Agent (Install) and the Zabbix Agent (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Zabbix Agent (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus