Последовательность отработки configurationpoll:hook и instance discovery filter
-
Привет!
Хотел реализовать схему по которой в configurationpoll hook удаляются не нужные интерфейсы, а instance discovery filter сделать так чтобы он создавал dci для оставшихся интерфейсов. А судя по трейсу, скрипт instance discovery filter видит все интерфейсы, тоесть до того момента как config:hook поудаляет не нужные.
Instance discovery filter:
interfaces = GetNodeInterfaces($node); foreach(i : interfaces) { trace(0, "*** VALUE: " . i->ifIndex . " " . $1); //return false; // if (i->ifIndex == $1) //return true; }Так вот значение i->ifIndex пробегает по всем значениям, а не по оставшимся.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login