Error in filtering script

Started by ditonet, October 20, 2015, 09:59:28 PM

Previous topic - Next topic

ditonet

Hello,

I have a network map with simple filtering script:
return ($node->name != "nwa3560-n");
and sometime I found in event log:
Error 14 in line 1: Function or operation argument is not an object.
Map object filtering works as expected.
NetXMS runs on Win 8.1 Pro.
Is it possible bug or my mistake/misconfiguration?

Regards, Grzegorz.

tomaskir

Try to use $object->name rather then $node->name, since more then just nodes are placed on the map (like subnets, etc.).

ditonet

Hello,

You are right, map contains subnets not only nodes. Thanks a lot for advice.

Regards, Grzegorz.