< Back

Get-ZabbixGraph

Sun Jan 19, 2020 6:10 pm

NAME Get-ZabbixGraph



SYNOPSIS

Get graph





SYNTAX

Get-ZabbixGraph [[-HostID] <Array>] [[-GroupID] <Array>] [[-GraphID] <Array>] [[-TemplateID] <Array>] [[-ItemID]

<Array>] [-expandName] [[-jsonrpc] <String>] [[-session] <String>] [[-id] <String>] [[-URL] <String>]

[<CommonParameters>]





DESCRIPTION

Get graph





PARAMETERS

-HostID <Array>



Required? false

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GroupID <Array>



Required? false

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-GraphID <Array>



Required? false

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-TemplateID <Array>



Required? false

Position? 4

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ItemID <Array>



Required? false

Position? 5

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-expandName [<SwitchParameter>]



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-jsonrpc <String>



Required? false

Position? 6

Default value ($global:zabSessionParams.jsonrpc)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-session <String>



Required? false

Position? 7

Default value ($global:zabSessionParams.session)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-id <String>



Required? false

Position? 8

Default value ($global:zabSessionParams.id)

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-URL <String>



Required? false

Position? 9

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:\\>Get-ZabbixHost | ? name -eq "singleHost" | Get-ZabbixGraph | select name



Get graphs for single host









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



PS C:\\>Get-ZabbixHost | ? name -match hosName | Get-ZabbixGraph | select name



Get graphs for multiple hosts









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



PS C:\\>Get-ZabbixHost | ? name -eq "singleHost" | Get-ZabbixGraph -expandName | ? name -match 'RAM utilization' |

select name



Get graphs for single host









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



PS C:\\>Get-ZabbixHost | ? name -eq "singleHost" | Get-ZabbixGraph -expandName | ? name -match 'RAM utilization' |

select name -ExpandProperty gitems | ft -a



Get graphs for single host









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



PS C:\\>Get-ZabbixHost | ? name -eq "singleHost" | Get-ZabbixGraph -expandName | ? {!$_.graphDiscovery} | select

name -ExpandProperty gitems | ft -a



Get graphs for single host









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>Get-ZabbixHost | ? name -match "hostName" | Get-ZabbixGraph -expandName | ? {!$_.graphDiscovery} | select

name -ExpandProperty gitems | ft -a



Get graphs for multiple hosts









-------------------------- EXAMPLE 7 --------------------------



PS C:\\>Get-ZabbixHost | ? name -match "hostName" | Get-ZabbixGraph -expandName | ? {!$_.graphDiscovery} | select

name -ExpandProperty gitems -Unique | ft -a



Get-ZabbixHost | ? name -match "hostName" | Get-ZabbixGraph -expandName | ? { !$_.graphDiscovery } | select name

-Unique

Get graphs for multiple hosts, sort out duplicates









-------------------------- EXAMPLE 8 --------------------------



PS C:\\>Get-ZabbixGraph -HostID (Get-ZabbixHost | ? name -match "multipleHosts").hostid | select

@{n="host";e={$_.hosts.name}},name | ? host -match "host0[5,6]"| ? name -notmatch Network | sort host



Get graphs for multiple hosts











RELATED LINKS