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. Sending Multiple Emails

Sending Multiple Emails

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 21.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.
  • P
    P
    pdelvaglio
    wrote on last edited by
    #1

    We are trying to setup a configuration where if any of our nodes are down it will send an email at first poll and then at 5 minutes if it is still down and then at 20 minutes if it is still down.  We only care about icmp at this point.

    Can this be setup globally so each node doesn't have to be configured individually?

    Any help is appreciated.

    Thanks.

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

      From reviewing other forum posts it seems like I need to:

      1. Create a custom event such as "NODE_STILL_DOWN"
      2. Create a server script that runs nxevent calling NODE_STILL_DOWN.
      3. Add an action to "SYS_NODE_DOWN" that runs the above server script.
      4. Create a processing policy rule for NODE_STILL_DOWN that has a filter checking for 5 and 20 minute poll intervals.

      Is this the best way to do this?

      If so,  how can I call nxevent from a server script? (I haven't seen any examples.  I am using Windows NetXMS).  nxevent.exe is in C:\NetXMS\bin on the server.

      Thanks for any help.

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

        Hi,

        if you are running server scripts (NXSL), you can use PostEvent function: https://wiki.netxms.org/wiki/NXSL:PostEvent

        Another possible option is to set node's custom attribute in reaction for SYS_NODE_DOWN and create status poll hook script, which will check if node is down for certain amount of time and use PostEvent function to generate another event.

        Best regards,
        Victor

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

          Thank you. Your status poll hook script suggestion works great.

          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