You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But this action don't remove the host. It is used to remove objects from multiple hosts.
We not implemented yet the method "Remove-ZabbixHost". I will add this soon. For a workaround, you can manually build the request:
import-module power-zabbix
Auth-Zabbix -Url 'http://192.168.137.242/zabbix/'#Get your host!$MyHost=Get-ZabbixHost-Name server1 -output @('hostid');
#Build the params object to the host.delete$request= ZabbixAPI_NewParams "host.delete";
#Here, you can include many host host as a arry. Just separare each id, using a comma$request.params=@($MyHost.hostid);
#Now call the zabbix!$result=Invoke-ZabbixURL$request-Translate;
#If not exception throws, then this result will contains the id of hostids deleted.$result.RawTranslate
rrg92
changed the title
delete one host
Implement Remove-ZabbixHost
Jun 19, 2018
Hey @SCH48 E @lep1986 , thanks a lot for the feedback. I was on hold for a few years due to career and personal changes. Recently, I saw that this module was officially listed on the Zabbix page, and I believe that because of this, it's worth continuing to evolve it and updating it to support the current versions. I'm making some new commits and will soon give better attention to these issues.
Hi, I'm trying to delete the one host but I'm not doing well. What i'm doing wrong?
The text was updated successfully, but these errors were encountered: