Friday, March 29, 2013

Compare string in zabbix trigger

To compare string in zabbix trigger, you can use regexp() function:

({template:key[].regexp(MyString)}=0)

For Example:

{C_Template_SFTP_Check:check_sftp[sftp.example.com].regexp(Success)}=0

This will trigger an alert if check_sftp return value other than "Success"