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

Delete-ZabbixItem -ZabbixItem #5

Open
SCH48 opened this issue Jun 4, 2020 · 1 comment
Open

Delete-ZabbixItem -ZabbixItem #5

SCH48 opened this issue Jun 4, 2020 · 1 comment

Comments

@SCH48
Copy link

SCH48 commented Jun 4, 2020

Hi, @rrg92 !

Trying to delete empty Items with "Delete-ZabbixItem"

$ItemsLike = Get-ZabbixItem -Hosts $Printers | ?{$_.key_ -like "prt*"}
image

Delete-ZabbixItem -ZabbixItem "30564"

Does not work and no errors.

From example in Zabbix documentation item.delete

$params.body = @{
        "jsonrpc"= "2.0"
        "method" = "item.delete"
        "params"= @{
            "itemid" = "30564"
         }

Successfully deleted
image

Best Regards, @SCH48

@rrg92
Copy link
Owner

rrg92 commented Sep 14, 2022

Hi @SCH48 , thanks. I will review the code and do some testing. Sorry for delay. Last years I do not worked with zabbbix more and this project go to my backlog.

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

2 participants