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. Differentiating between events

Differentiating between events

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 17.4k 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
    david0922
    wrote on last edited by
    #1

    Hey People,

    I have a server i monitor and i would like to have this agent report on about 5 different services. However i noticed that the action that takes place (in my case sending an e-mail) is dependent on the type of Event (in my case SYS_SERVICE_DOWN). Is there a way that i can use that same event (SYS_SERVICE_DOWN) for each of my 5 services that i monitor and make it so they send out a different e-mail dependent on the service that they monitor?

    I know i can have different events take place such as SYS_THRESHOLD_REACHED or something else for each service but then i will have to keep track of what i assign to each service.

    Thanks,

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

      Hi!

      You can use filter scripts to do advanced filtering. Event SYS_SERVICE_DOWN contains 3 parameters:
      1: service name;
      2: service object id;
      3: service type.
      So, for example, if you wish to execute action only for service named "httpd", you can use the following script:

      $1 == "httpd"
      

      or, in full form

      sub main()
      {
         return $1 == "httpd";
      }
      

      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