NetXMS Support Forum

English Support => General Support => Topic started by: Legoman on August 15, 2016, 04:54:52 PM

Title: Template and instance discovery filter
Post by: Legoman on August 15, 2016, 04:54:52 PM
Hi,

I try to discover the supply and the level of my printer. It works great with direct DCI, but with a template I could not filter or change the {instance-name}. Is it a feature or bug ? Or something I do wrong ?

(attached print screen show only a simplified version of script)

Thank you,

Legoman
Title: Re: Template and instance discovery filter
Post by: tomaskir on August 15, 2016, 04:59:22 PM
In line 21, you have
return %(false, $1, type);
The "false" there tells NetXMS not to create an instance.
Title: Re: Template and instance discovery filter
Post by: Legoman on August 15, 2016, 05:31:23 PM
Ok. The problem was a bad call to an external procedure in script library. My fault !