< Back
Update-ZabbixAgentConfig
Post
NAME Update-ZabbixAgentConfig
SYNOPSIS
Updates a remote Zabbix Configuration File
SYNTAX
Update-ZabbixAgentConfig [[-computer] <Object[]>] [-paramToSet] <String> [-valueToSet] <String>
[<CommonParameters>]
DESCRIPTION
Remotely updates a number of zabbix configuration files with certain parameters.
PARAMETERS
-computer <Object[]>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-paramToSet <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-valueToSet <String>
Required? true
Position? 3
Default value
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:\\>Update-ZabbixAgentConfig -computer comp1 -paramToSet EnableRemoteCommands -valueToSet 1
Sets EnableRemoteCommands=1 on comp1's Zabbix .conf file if it is found.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Update-ZabbixAgentConfig -computer comp1,comp2 -paramToSet EnableRemoteCommands -valueToSet 0
Sets EnableRemoteCommands=0 on the .conf file on comp1 and comp2
RELATED LINKS
SYNOPSIS
Updates a remote Zabbix Configuration File
SYNTAX
Update-ZabbixAgentConfig [[-computer] <Object[]>] [-paramToSet] <String> [-valueToSet] <String>
[<CommonParameters>]
DESCRIPTION
Remotely updates a number of zabbix configuration files with certain parameters.
PARAMETERS
-computer <Object[]>
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-paramToSet <String>
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-valueToSet <String>
Required? true
Position? 3
Default value
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:\\>Update-ZabbixAgentConfig -computer comp1 -paramToSet EnableRemoteCommands -valueToSet 1
Sets EnableRemoteCommands=1 on comp1's Zabbix .conf file if it is found.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Update-ZabbixAgentConfig -computer comp1,comp2 -paramToSet EnableRemoteCommands -valueToSet 0
Sets EnableRemoteCommands=0 on the .conf file on comp1 and comp2
RELATED LINKS