Ad Widget

Collapse

trigger based on same discovered item of multiple instances

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ifeghali
    Junior Member
    • May 2018
    • 2

    #1

    trigger based on same discovered item of multiple instances

    hello there,

    I am using LLD for network cards and it's ports. Each discovered has many ports where I have an item probing the link state of each port.

    For some machines all ports are connected but for some others not all of them. So I can't just raise a trigger when any port is down.

    I am currently raising a trigger when I know a given port was up before and suddenly it went down. But it raises some problems, when for instance history goes away or we need to switch cables between ports for any reason.

    So I am trying to come up with a better solution. I already have an item telling me how many ports I should have connected for each machine. For instance, for a given machine I know it has 2 cards and 2 ports but only 2 cables are supposed to be plugged in. LLD will create 2 network devices and 2 ports for each device.

    In this case I have an item "ports expected to be up" outside of LLD with a value of 2. So How do I raise a trigger when my number of linked ports drops below my threshold ?

    Thank you

  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Maybe a userparameter item like ip link | grep -c "state UP"

    Comment

    • ifeghali
      Junior Member
      • May 2018
      • 2

      #3
      Originally posted by LenR
      Maybe a userparameter item like ip link | grep -c "state UP"
      sorry, I believe you didn't get my question right. I am already using userparameters to collect link connection state. problem is this is an item prototype and I'd like to count how many of those items (generated from a prototype) are marked to be down.

      Comment

      Working...