zabbix search for a string on trigger -


i have userparameter on agent returns string. string contains line e:x x==0 if no errors found , x>0 if errors found. want check number on trigger cannot find how it. alternatively use exit status of command if possible. thank you.

zabbix triggers run expression on value.

if key returns string, you'll have use regular expression match you're describing:

{my-template:system.hostname.regexp(important-server)}#1 

this trigger alert if hostname key returns value not match "important-server" (case sensitive).

if key returns unsigned integer, can use expressions check values.

{my-template:uptime.last(0)}<300 

this return alert if value returned key "uptime" less 300, in case mean machine has less 5 minutes of uptime , restarted. works if value returns unsigned integer.

my suggestion change check respond number (or exit code). collect data unsigned integer. set trigger if number not 0, send trigger.

otherwise you're going have match regular expression against string.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -