Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zabbix 6 #8

Open
veepee78 opened this issue Mar 10, 2022 · 0 comments
Open

zabbix 6 #8

veepee78 opened this issue Mar 10, 2022 · 0 comments

Comments

@veepee78
Copy link

After zabbix 6 update I cannot add computer to a group anymore:
PS C:\Windows\system32> Get-ZbxHost mdevweb*

hostid host name status


10129 mdevweb1.m.xo mdevweb1.m.xo Enabled
10130 mdevweb2.m.xo mdevweb2.m.xo Enabled

PS C:\Windows\system32> Get-ZbxHostGroup Maintenance

groupid internal flags name


 14 0        0     Maintenance

PS C:\Windows\system32> Add-ZbxHostGroupMembership -Host (Get-ZbxHost mdevweb*) -HostGroup (Get-ZbxHostGroup Maintenance)
Invoke-ZabbixApi : Invalid params. Invalid parameter "/hosts/1": an array is expected.
At C:\Program Files\WindowsPowerShell\Modules\PSZabbix\1.2.0\PSZabbix.psm1:494 char:9

  •     Invoke-ZabbixApi $session "host.massadd" $prms | select -Expa ...
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : -32602,Invoke-ZabbixApi

I have 1.2.0 version installed of the scipt and zabbix is version 6.0.1

This worked with 5.4 version of zabbix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant