< Back

Install-RemoteZabbixAgent

Sat Jan 18, 2020 4:55 pm

NAME Install-RemoteZabbixAgent



SYNOPSIS

Installs and configures a remote Windows Zabbix agent





SYNTAX

Install-RemoteZabbixAgent [-computer] <Object[]> [-zabbixSource] <String> [[-ZabbixAgentDebugLevel] <String>]

[[-ZabbixAgentEnableRemoteCommands] <String>] [[-ZabbixAgentServer] <String>] [[-ZabbixAgentServerActive]

<String>] [[-ZabbixAgentHostname] <String>] [[-ZabbixAgentTimeout] <String>] [[-ZabbixAgentInclude] <String>]

[[-ZabbixAgentTLSConnect] <String>] [[-ZabbixAgentTLSAccept] <String>] [[-ZabbixAgentTLSCRLFile] <String>]

[[-ZabbixAgentTLSServerCertIssuer] <String>] [[-ZabbixAgentTLSServerCertSubject] <String>]

[[-ZabbixAgentTLSCertFile] <String>] [[-ZabbixAgentTLSKeyFile] <String>] [[-ZabbixAgentTLSPSKIdentity] <String>]

[[-ZabbixAgentTLSPSKFile] <String>] [[-StartService]] [<CommonParameters>]





DESCRIPTION

Installs and configures a remote Windows Zabbix agent





PARAMETERS

-computer <Object[]>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-zabbixSource <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentDebugLevel <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentEnableRemoteCommands <String>



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentServer <String>



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentServerActive <String>



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentHostname <String>



Required? false

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTimeout <String>



Required? false

Position? 8

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentInclude <String>



Required? false

Position? 9

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSConnect <String>



Required? false

Position? 10

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSAccept <String>



Required? false

Position? 11

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSCRLFile <String>



Required? false

Position? 12

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSServerCertIssuer <String>



Required? false

Position? 13

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSServerCertSubject <String>



Required? false

Position? 14

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSCertFile <String>



Required? false

Position? 15

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSKeyFile <String>



Required? false

Position? 16

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSPSKIdentity <String>



Required? false

Position? 17

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ZabbixAgentTLSPSKFile <String>



Required? false

Position? 18

Default value

Accept pipeline input? false

Accept wildcard characters? false



-StartService [<SwitchParameter>]



Required? false

Position? 19

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Install-RemoteZabbixAgent -computer server1 -zabbixSource c:\\zabbixagent\\ -ZabbixAgentEnableRemoteCommands

1 -ZabbixAgentHostName server1 -StartService



- Copies the zabbix source agent data from C:\\zabbixagent\\ to the remote computer at c:\\zabbix

- Installs the service

- Configures the EnableRemoteCommands and Hostname fields

- Starts the service.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Install-RemoteZabbixAgent -computer server1 -zabbixSource '\\\\my.domain\\programs\\zabbix\\'

-ZabbixAgentDebugLevel 3 -ZabbixAgentEnableRemoteCommands 1 -ZabbixAgentServer zbx.my.domain

-ZabbixAgentServerActive zbx.my.domain -ZabbixAgentHostname server1 -ZabbixAgentTimeout 30 -StartService















RELATED LINKS