AnswerBun.com

Zabbix trigger for finding difference in the previous and current item output

Super User Asked by wilkadam on October 2, 2020

I have got an item, which executes some powershell script on remote machine, it returns string. I want to set zabbix trigger, to activate if current and previous output of script are different. I have tried something like this:

{MyTemplate:MyItem.diff()=1}

and also:

{MyItem.change(0)}#0

None of them seem to be working. Any ideas how to solve it?

Ok I solved this problem, turned out, that i have not connected host to template and he wasn’t sending any data back.

This solution turned out to be good, but not exactly what i wanted to achieve. So now I would like to create trigger which activates if item value is not empty. Because it returns some text, I thought it would be the best to execute it if length of item is greater than 0. But I can’t find this expression in documentation and I will really appreciate any help.

Add your own answers!

Related Questions

Freezes on HP Laptop, getting worse

2  Asked on November 20, 2021 by nbar

     

cant download a blob video

0  Asked on November 20, 2021 by helpme_pls

       

Excel 2016 New Window grayed out

1  Asked on November 18, 2021 by carl-roberts

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir