< Back

New-ZabbixHttpTest

Sun Jan 19, 2020 6:12 pm

NAME New-ZabbixHttpTest



SYNOPSIS

Create web/http test





SYNTAX

New-ZabbixHttpTest [[-HttpTestID] <Object>] [[-HostID] <Object>] [[-HttpTestStepRequired] <Object>]

[[-StatusCodes] <Array>] [[-Timeout] <Object>] [[-delay] <Object>] [[-retries] <Object>] [[-status] <Object>]

[[-Steps] <Object>] [[-applicationid] <Object>] [[-TemplateID] <Object>] [[-HttpTestStepName] <Object>]

[-HttpTestName] <Object> [[-jsonrpc] <String>] [[-session] <String>] [[-id] <String>] [[-URL] <String>]

[<CommonParameters>]





DESCRIPTION

Create web/http test





PARAMETERS

-HttpTestID <Object>



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HostID <Object>



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-HttpTestStepRequired <Object>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-StatusCodes <Array>



Required? false

Position? 4

Default value 200

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Timeout <Object>



Required? false

Position? 5

Default value 15

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-delay <Object>



Required? false

Position? 6

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-retries <Object>



Required? false

Position? 7

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-status <Object>



Required? false

Position? 8

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Steps <Object>



Required? false

Position? 9

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-applicationid <Object>



Required? false

Position? 10

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-TemplateID <Object>



Required? false

Position? 11

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-HttpTestStepName <Object>



Required? false

Position? 12

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HttpTestName <Object>

web/http test name



Required? true

Position? 13

Default value

Accept pipeline input? false

Accept wildcard characters? false



-jsonrpc <String>

[Parameter(Mandatory=$True)]$HttpTestStepURL,



Required? false

Position? 14

Default value ($global:zabSessionParams.jsonrpc)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-session <String>



Required? false

Position? 15

Default value ($global:zabSessionParams.session)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-id <String>



Required? false

Position? 16

Default value ($global:zabSessionParams.id)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-URL <String>



Required? false

Position? 17

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-ZabbixHttpTest -HttpTestName NewHttpTest -HttpTestStepURL "http://{HOST.CONN}:30555/health-check/do"

-HttpTestStepRequired "version" -HostID (Get-ZabbixHost -HostName HostName).hostid



Create new web/http test for server/template









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



PS C:\\>Get-ZabbixTemplate | ? name -eq "Template Name" | Get-ZabbixHttpTest | ? name -match httpTestSource |

New-ZabbixHttpTest -HttpTestName NewHttpName



Clone web/http test in template











RELATED LINKS