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. Disable SYS_IF_DOWN for most nodes

Disable SYS_IF_DOWN for most nodes

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 56.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.
  • M
    M
    mgiammarco
    wrote on last edited by
    #1

    Hello,
    I am learning NetXMS.
    I have a big network with servers, routers, switches and pcs.
    I receive too many SYS_IF_DOWN events.
    I want to receive them only from servers, which is the best way to do it?
    Thanks,
    Mario

    1 Reply Last reply
    0
    • P
      P
      pvo
      wrote on last edited by
      #2

      Did you mean not receive notifications (for example via email) or not see the alarms?

      I have solution for the first case which even allows notification to different people for different nodes.

      1 Reply Last reply
      0
      • M
        M
        mgiammarco
        wrote on last edited by
        #3

        I prefer to not see alarms in alarm browser but I am also interested in your idea.
        I supposed this is a common thing to ask, like having different thresholds for different nodes.

        1 Reply Last reply
        0
        • P
          P
          pvo
          wrote on last edited by
          #4

          I do notification via following nxsl script:

          /*
          $1 - Unique ID of event source object
          $2 - Email subject
          $3 - Email body
          */
          
          node = FindObject($1);
          if (node != null) {
              emails = node->getCustomAttribute("notify");
              if (emails != null && emails != "") {
                   SendMail(emails, $2, $3);
              }
          }
          

          The notify  Custom Attribute contains email addresses separated by ";". The value can be set for each Node differently or as Inheritable for whole Container.
          It it is missing no notification is sent.

          I solve the different thresholds for different nodes similar way (Custom Attribute and nxsl script checking the threshold).

          1 Reply Last reply
          0
          • F
            F
            Filipp Sudanov
            wrote on last edited by
            #5

            You can set expected states of interfaces to "IGNORE". This could be done automatically from HOOK::ConfigurationPoll - it's a script that is launched on each configuration poll.

            interfaces = GetNodeInterfaces($node);
            foreach(i : interfaces)
            {
            	SetInterfaceExpectedState(i, "IGNORE");
            }
            

            Obviously you need to add some filters - you can check if node has agent ($node->isAgent), etc.

            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