zabbix trigger for difference between 2 values from 2 fields
zabbix trigger for difference between 2 values from 2 fields
I am trying to figure out how to have Zabbix pull values from 2 fields, compare them and trigger if the difference between them exceeds a certain value
2 Answers
2
You can collect the two fields as standard items (snmp values, agent values etc), then create a calculated item with their difference and appy to it your triggers.
If one is always larger than the other and using a threshold of 13:
host:item1.last()-host:item2.last()>13
If their relative sizes are unknown, cannot think of anything nicer but this:
(host:item1.last()-host:item2.last()>13) or (host:item2.last()-host:item1.last()>13)
Would be great for the author of the downvote to provide their reasoning.
– Richlv
Sep 7 at 6:24
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
What have you tried so far?
– jrswgtr
Aug 31 at 13:10