Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. Mikrotik PPP Interfaces

Mikrotik PPP Interfaces

Scheduled Pinned Locked Moved Support
7 Posts 5 Posters 29.0k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    T
    technikcst
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T
      T
      tomaskir
      wrote on last edited by
      #2

      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);
          }
        }
      }
      
      1 Reply Last reply
      0
      • T
        T
        technikcst
        wrote on last edited by
        #3

        Thanks for this easy solution 😃

        1 Reply Last reply
        0
        • L
          L
          letabawireless
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • V
            V
            Victor Kirhenshtein
            wrote on last edited by
            #5

            Hi,

            if script has name Hook::ConfigurationPoll then it will be called automatically for each node at each configuration poll run.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • L
              L
              letabawireless
              wrote on last edited by
              #6

              Hi

              Thank you Victor - that sorted it !

              1 Reply Last reply
              0
              • K
                K
                kiki
                wrote on last edited by
                #7

                Other Solution:
                In mikrotik create PPPoE Server Binding.

                Go to PPP>Interface>Add PPPoE Server Binding

                User should be same as radius login name.

                1 Reply Last reply
                0

                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups