< Back

New-ZabbixApplication

Sun Jan 19, 2020 6:12 pm

NAME New-ZabbixApplication



SYNOPSIS

Create new application





SYNTAX

New-ZabbixApplication [[-Name] <String>] [[-HostID] <String>] [[-TemplateID] <String>] [[-jsonrpc] <String>]

[[-session] <String>] [[-id] <String>] [[-URL] <String>] [<CommonParameters>]





DESCRIPTION

Create new application





PARAMETERS

-Name <String>



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-HostID <String>



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-TemplateID <String>



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-jsonrpc <String>



Required? false

Position? 4

Default value ($global:zabSessionParams.jsonrpc)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-session <String>



Required? false

Position? 5

Default value ($global:zabSessionParams.session)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-id <String>



Required? false

Position? 6

Default value ($global:zabSessionParams.id)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-URL <String>



Required? false

Position? 7

Default value ($global:zabSessionParams.url)

Accept pipeline input? true (ByPropertyName)

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:\\>New-ZabbixApplication -Name newAppName -HostID (Get-ZabbixHost | ? name -match host).hostid



Create new application on host









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



PS C:\\>Get-ZabbixHost | ? name -match "hostName" | New-ZabbixApplication -Name newAppName



Create new application on host









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-ZabbixHost | ? name -eq SourceHost | Get-ZabbixApplication | New-ZabbixApplication -HostID

(Get-ZabbixHost | ? name -match newHost).hostid



Clone application(s) from host to host









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>New-ZabbixApplication -Name newAppName -HostID (Get-ZabbixTemplate | ? name -match template).hostid



Create new application in template









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>Get-ZabbixTemplate | ? name -match "templateName" | New-ZabbixApplication -name newAppName



Create new application in template











RELATED LINKS