The functionality, that implements usage of macros in item keys is quite handy. But that produced another problem - I'm unable to create a trigger with such an item.
here's the expression:
{Template_color:grpsum[{HOSTNAME},"icmpping","last","0"].last(0)}<2
here's what frontend complains:
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: operator does not exist: character varying = integer ������ 1:...osts where (hostid/100000000000000) in (0) and host in (0) ^ ���������: No operator matches the given name and argument type(s). You might need to add explicit type casts.[/spool/frontend/php/include/db.inc.php:392]
* Error in query [select distinct * from hosts where (hostid/100000000000000) in (0) and host in (0)] [ERROR: operator does not exist: character varying = integer ������ 1:...osts where (hostid/100000000000000) in (0) and host in (0) ^ ���������: No operator matches the given name and argument type(s). You might need to add explicit type casts.]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/spool/frontend/php/include/db.inc.php:522]
* Unknown macro [{HOSTNAME}]
here's the expression:
{Template_color:grpsum[{HOSTNAME},"icmpping","last","0"].last(0)}<2
here's what frontend complains:
* pg_query() [<a href='function.pg-query'>function.pg-query</a>]: Query failed: ERROR: operator does not exist: character varying = integer ������ 1:...osts where (hostid/100000000000000) in (0) and host in (0) ^ ���������: No operator matches the given name and argument type(s). You might need to add explicit type casts.[/spool/frontend/php/include/db.inc.php:392]
* Error in query [select distinct * from hosts where (hostid/100000000000000) in (0) and host in (0)] [ERROR: operator does not exist: character varying = integer ������ 1:...osts where (hostid/100000000000000) in (0) and host in (0) ^ ���������: No operator matches the given name and argument type(s). You might need to add explicit type casts.]
* pg_fetch_assoc() expects parameter 1 to be resource, boolean given[/spool/frontend/php/include/db.inc.php:522]
* Unknown macro [{HOSTNAME}]
Comment