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:
1) Create a script in script library called "Hook::ConfigurationPoll"
2) 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 !
Other Solution:
In mikrotik create PPPoE Server Binding.
Go to PPP>Interface>Add PPPoE Server Binding
User should be same as radius login name.