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. Inter-dependent status

Inter-dependent status

Scheduled Pinned Locked Moved Support
8 Posts 2 Posters 15.1k 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.
  • D
    D
    DH
    wrote on last edited by
    #1

    Dear all,

     I'm not sure how to create alarms that are conditional on multiple object status' and would be grateful if someone can point me on the right path.

     The NetXMS server is sat on a server on one network connected to the Internet by connection A, most of the managed node are on separate remote networks that are themselves connected to the Internet by connections B, C, D etc..

     Currently I have alarms generated on NODE_DOWN that email me an alert, however I do not want this email alert if the server connection (A) is down, i.e. the alarm (or alert) should only be asserted if the remote node goes down but connection A is up, or put another way if connection A is down do not generat any alarms for remote nodes.

     Thanks in advance for any help.

    Regards,
    David Hewison

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

      Hi!

      Basically you have two ways:

      1. Use situations. Create situation which will reflect connection A status, and in rule for processing SYS_NODE_DOWN event add additional filtering script which will check the status of situation, and only pass event through if connection A status is up.
      2. Just find a local node/DCI reflecting current state of connection A in filtering script for SYS_NODE_DOWN, and use it to choose if event should pass or not.

      How do you monitor state of connection A?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • D
        D
        DH
        wrote on last edited by
        #3

        Hi Victor,

         I monitor the status of connection A by pinging the ISP gateway the router uses, I have a node 'ISP gateway' configured.

        Regards,
        David

        1 Reply Last reply
        0
        • D
          D
          DH
          wrote on last edited by
          #4

          Hi Victor,

           How do I access the status of another node in a script ?

          Regards,
          David

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

            You can use function FindNodeObject and then use attribute status of that node. For example, if you have node named ISP_gateway, your script to check if it is down may looks like following:

            gw = FindNodeObject($node, "ISP_gateway");
            return gw->status == 4;
            

            This script will return true if node named ISP_gateway has status "critical". DOn't forget to add node for which this script executes to the list of trusted nodes for node ISP_gateway, or disable trusted nodes checking completely by setting server configuration variable CheckTrustedNodes to 0.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • D
              D
              DH
              wrote on last edited by
              #6

              Many thanks Victor, I will try this.

              Regards,
              David

              1 Reply Last reply
              0
              • D
                D
                DH
                wrote on last edited by
                #7

                Hi Victor,

                 If I read the status of node "ISP_gateway" from an event processing rule triggered by a "NODE_DOWN" event does all the other nodes have to be in the trusted node list of node "ISP_gateway" ?

                Regards,
                David

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

                  Yes, you have to add all other nodes to trusted nodes list on  ISP_gateway. So in your case it's probably easier to disable trusted nodes checking.

                  Best regards,
                  Victor

                  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