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. Situation

Situation

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

    Hi,

    i have to create a situation in which when an interfaces goes down, no alarm is sent for the relative node down.

    I have to do this for many interfaces and many nodes.

    I use the procedure exposed in NetXms Manual, but i have a doubt for the filtering script.

    Suppose we have node A with interface A and node B with interface B.

    I use a general script like this (in the template "show alarm when node is down")

    sub main()
    {
    s = FindSituation("ServiceStatus", %n);
    if (s != NULL)
    {
    if (s->status == "failed")
    return false; // Don't match rule
    }
    return true; // Match rule
    }

    and in "show alarm when interfaces is down" i set this value:

    Situations object:ServiceStatus
    Instance:%n
    and in Attributes:
                          name=status
                          value=failed.

    Can i use the previous general script or i Have to create specific script like the following?

    in "show alarm when node is down" set source=nodeA and insert the following script:

    sub main()
    {
    s = FindSituation("ServiceStatus", InterfaceA);
    if (s != NULL)
    {
    if (s->status == "failed")
    return false; // Don't match rule
    }
    return true; // Match rule
    }

    and in "show alarm when interface is down" set source= interface A and situations:

    Situations object:ServiceStatus
    Instance:InterfaceA
    and in Attributes:
                          name=status
                          value=failed.

    (obviously i repeat this procedure for interface B and node B).

    Thank you for help.

    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