< Back
Get-CentreonServiceStatus
Post
NAME Get-CentreonServiceStatus
SYNOPSIS
Retrieve services status information.
SYNTAX
Get-CentreonServiceStatus [-Session] <Object> [[-viewType] <String>] [[-fields] <Array>] [[-status] <String>]
[[-hostgroup] <Int32>] [[-servicegroup] <Int32>] [[-instance] <Int32>] [[-search] <String>] [[-searchHost]
<String>] [[-searchOutput] <String>] [[-criticality] <String>] [[-sortType] <String>] [[-limit] <Int32>]
[[-number] <Int32>] [[-order] <String>] [<CommonParameters>]
DESCRIPTION
All monitoring information regarding services are available in throw the Centreon API.
With this call, you can also get host informations in the same time that service information.
This web service provide the same possibility that the service monitoring view.
PARAMETERS
-Session <Object>
Specify object get from New-CentreonCommand cmdlet.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-viewType <String>
Select monitoring view type.
Values accepted: "all", "unhandled", "problems"
Default is 'all'.
Required? false
Position? 2
Default value all
Accept pipeline input? false
Accept wildcard characters? false
-fields <Array>
Select-Object separated by a ','.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-status <String>
Select services by status.
Values accepted: "ok", "warning", "critical", "unknown", "pending", "all"
Default is 'all'.
Required? false
Position? 4
Default value all
Accept pipeline input? false
Accept wildcard characters? false
-hostgroup <Int32>
Hostgroup id to filter.
Required? false
Position? 5
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-servicegroup <Int32>
Servicegroup id filter.
Required? false
Position? 6
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-instance <Int32>
Instance id filter.
Required? false
Position? 7
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-search <String>
Search by name of service via an SQL LIKE type search..
Required? false
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-searchHost <String>
Search by name of host via an SQL LIKE type search.
Required? false
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-searchOutput <String>
Search by output via an SQL LIKE type search.
Required? false
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-criticality <String>
Criticality Filter.
Required? false
Position? 11
Default value
Accept pipeline input? false
Accept wildcard characters? false
-sortType <String>
Sort by field.
Required? false
Position? 12
Default value
Accept pipeline input? false
Accept wildcard characters? false
-limit <Int32>
Number of object return.
Required? false
Position? 13
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-number <Int32>
Page number.
Required? false
Position? 14
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-order <String>
Sort objects return.
Values accepted: "ASC", "DESC".
Default is 'ASC'.
Required? false
Position? 15
Default value ASC
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
NOTES
https://github.com/ClissonFlorian/Centr ... ell-Module
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CentreonServiceStatus -status all -order ASC -Session $Session -fields description
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-CentreonServiceStatus -status all -order ASC -Session $Session -search '%rsys%'
RELATED LINKS
https://documentation.centreon.com/docs ... ice-status
SYNOPSIS
Retrieve services status information.
SYNTAX
Get-CentreonServiceStatus [-Session] <Object> [[-viewType] <String>] [[-fields] <Array>] [[-status] <String>]
[[-hostgroup] <Int32>] [[-servicegroup] <Int32>] [[-instance] <Int32>] [[-search] <String>] [[-searchHost]
<String>] [[-searchOutput] <String>] [[-criticality] <String>] [[-sortType] <String>] [[-limit] <Int32>]
[[-number] <Int32>] [[-order] <String>] [<CommonParameters>]
DESCRIPTION
All monitoring information regarding services are available in throw the Centreon API.
With this call, you can also get host informations in the same time that service information.
This web service provide the same possibility that the service monitoring view.
PARAMETERS
-Session <Object>
Specify object get from New-CentreonCommand cmdlet.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-viewType <String>
Select monitoring view type.
Values accepted: "all", "unhandled", "problems"
Default is 'all'.
Required? false
Position? 2
Default value all
Accept pipeline input? false
Accept wildcard characters? false
-fields <Array>
Select-Object separated by a ','.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
-status <String>
Select services by status.
Values accepted: "ok", "warning", "critical", "unknown", "pending", "all"
Default is 'all'.
Required? false
Position? 4
Default value all
Accept pipeline input? false
Accept wildcard characters? false
-hostgroup <Int32>
Hostgroup id to filter.
Required? false
Position? 5
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-servicegroup <Int32>
Servicegroup id filter.
Required? false
Position? 6
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-instance <Int32>
Instance id filter.
Required? false
Position? 7
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-search <String>
Search by name of service via an SQL LIKE type search..
Required? false
Position? 8
Default value
Accept pipeline input? false
Accept wildcard characters? false
-searchHost <String>
Search by name of host via an SQL LIKE type search.
Required? false
Position? 9
Default value
Accept pipeline input? false
Accept wildcard characters? false
-searchOutput <String>
Search by output via an SQL LIKE type search.
Required? false
Position? 10
Default value
Accept pipeline input? false
Accept wildcard characters? false
-criticality <String>
Criticality Filter.
Required? false
Position? 11
Default value
Accept pipeline input? false
Accept wildcard characters? false
-sortType <String>
Sort by field.
Required? false
Position? 12
Default value
Accept pipeline input? false
Accept wildcard characters? false
-limit <Int32>
Number of object return.
Required? false
Position? 13
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-number <Int32>
Page number.
Required? false
Position? 14
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-order <String>
Sort objects return.
Values accepted: "ASC", "DESC".
Default is 'ASC'.
Required? false
Position? 15
Default value ASC
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
NOTES
https://github.com/ClissonFlorian/Centr ... ell-Module
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-CentreonServiceStatus -status all -order ASC -Session $Session -fields description
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-CentreonServiceStatus -status all -order ASC -Session $Session -search '%rsys%'
RELATED LINKS
https://documentation.centreon.com/docs ... ice-status