Mikrotik PPP Interfaces
-
Hi,
I am monitoring many wireless sectors - with many pppoe interfaces. The problem is: once a client disconnects the pppoe interface gets deleted and if he reconnects the interface has a new id. So there are many false alerts on interface down as the "expected interface state" gets always reset to "up".
So my question is: is there a way to either set the default interface expected state of newly created interfaces to ignore, or change the way that netxms detects ppp interfaces?
Regards,
Christoph -
You can do all of these in a configuration poll hook.
This is an example to just delete dynamic interfaces, so NetXMS doesnt even know about them:
- Create a script in script library called "Hook::ConfigurationPoll"
- Here is the code:
// if this is a MikroTik device if ($node->snmpOID == ".1.3.6.1.4.1.14988.1") { intArray = GetNodeInterfaces($node); foreach (int : intArray) { // if the interface is dynamic if ((left(int->name, 1) == "<") && (right(int->name, 1) == ">")) { // delete the interface DeleteObject(int); } } } -
Thanks for this easy solution

-
Hi there
I am a bit of a newbie on NetXMS - do I have to apply the script somehow to a template, or does it automatically consider the script for all nodes ?
Thank you
-
Hi,
if script has name Hook::ConfigurationPoll then it will be called automatically for each node at each configuration poll run.
Best regards,
Victor -
Hi
Thank you Victor - that sorted it !
-
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