Let’s say a storage is monitored with zabbix through an agent. We want that when the storage fails for zabbix to email us with the error description, produced by some script. Is it possible for zabbix to get string output(ala nagios) and report it (not just string monitoring and report found/notfound) or does reporting only work with integers?
Share
You can create a text or log item, that contains the text of the error, and create a trigger with this item, that checks, for example, for the word “error” or some value. Create an action for that trigger and to include the value of the item in the notification, use the {ITEM.LASTVALUE} macro.
Here’s a list of macros you can use in notifications http://www.zabbix.com/documentation/2.0/manual/appendix/macros/supported_by_location.