NetXMS Support Forum

English Support => General Support => Topic started by: mmarin11 on May 25, 2021, 06:11:56 AM

Title: Disable route table polling globally
Post by: mmarin11 on May 25, 2021, 06:11:56 AM
Dear community

Is there a way to disable the route table polling globally? Or does it have to be configured on a per node basis?

Regards
Title: Re: Disable route table polling globally
Post by: Victor Kirhenshtein on May 26, 2021, 08:42:50 AM
It has to be done on per-node basis. However, you can use configuration poll hook script to automatically disable it on all or selected nodes. To disable routing table poll on all nodes add the following line to library script Hook::ConfigurationPoll:

$node->enableRoutingTablePolling(false);


Best regards,
Victor
Title: Re: Disable route table polling globally
Post by: johnnyva on May 26, 2021, 11:24:55 PM
As mentioned here https://www.netxms.org/forum/general-support/script-execution-error/ you may also need to add in check for object being processed in Hook::ConfigurationPoll script.

if (classof($object) == "Node") $node->enableRoutingTablePolling(false);
Title: Re: Disable route table polling globally
Post by: mmarin11 on May 27, 2021, 10:11:47 PM
Thanks Victor & johnnyva. It works