Is anyone having problems adding triggers with dashes in the parameter keys using zabbix 1.1.5?
Ad Widget
Collapse
Zabbix 1.1.5 - Triggers with dashes
Collapse
X
-
Tags: None
-
-
Found the problem. In config.inc.php changed error check expression from the orignial to the modified below. See red for changes.
Original:
HTML Code:if (eregi('^\{([0-9a-zA-Z\_\.-\$]+)\:([]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr)) { $host=$arr[1]; $key=$arr[2]; $function=$arr[3]; $parameter=$arr[4];
Change to:
if (eregi('^\{([0-9a-zA-Z\_\.\$-]+)\
[]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr))
{
$host=$arr[1];
$key=$arr[2];
$function=$arr[3];
$parameter=$arr[4];
Finall Code:
HTML Code:if ([COLOR=Red]eregi('^\{([0-9a-zA-Z\_\.\$-]+)\[/COLOR]:([]\[0-9a-zA-Z\_\*\/\.\,\:\(\)\+\$ -]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$', $expression, $arr)) { $host=$arr[1]; $key=$arr[2]; $function=$arr[3]; $parameter=$arr[4];Last edited by Palmertree; 28-01-2007, 01:35.Comment
-
Comment
Comment