Ad Widget

Collapse

Trigger for power value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chiragvaidya
    Junior Member
    • Jun 2019
    • 6

    #1

    Trigger for power value

    Small problem configuring trigger. I am getting power values for the device like -25dbm, -19dbm. My problem is i have to set trigger when power goes under -8dbm or above -26dbm.

    I have set trigger like this ({ZTE-C320-GPON-noron.onu.1.1.1.[{#SNMPINDEX}].last()}<-8)or({ZTE-C320-GPON-noron.onu.1.1.1.[{#SNMPINDEX}].last()}>-26) but i am not getting result as i want. Please help me with this small issue guys.
  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    I guess that is the opposite since you're working with negative values:
    What your trigger is actually doing is to trigger if your last value is less than -8 (-9,-10,-11,...,-25) or greater than -26 (-25,-24...0, 1, 2) so it should trigger a lot.

    Code:
    ({ZTE-C320-GPON-noron.onu.1.1.1.[{#SNMPINDEX}].last()}>-8)or({ZTE-C320-GPON-noron.onu.1.1.1.[{#SNMPINDEX}].last()}<-26)
    I am not sure if this solves your problem, but from what I see it seems like this.

    Comment


    • chiragvaidya
      chiragvaidya commented
      Editing a comment
      Thanks brunohl i did the same after some expression test and verification and it's working.

    • brunohl
      brunohl commented
      Editing a comment
      Great, good to help
  • chiragvaidya
    Junior Member
    • Jun 2019
    • 6

    #3
    brunohl one more thing. above problem has been resolved but i get the value between 96 and 101.10dbm and i dont want trigger for that. how can i exclude these value in above expression.

    Comment

    • brunohl
      Senior Member
      Zabbix Certified Specialist
      • Mar 2019
      • 215

      #4
      Wrap everything on () and then put an and clause with the other condition

      Comment


      • chiragvaidya
        chiragvaidya commented
        Editing a comment
        i will try and let you know.

      • chiragvaidya
        chiragvaidya commented
        Editing a comment
        that worked thanks.
    • chiragvaidya
      Junior Member
      • Jun 2019
      • 6

      #5
      one more thing i have OID results like below

      my discovery statement is like "discovery[{#SNMPVALUE},.1.3.6.1.4.1.x.x.x.x.x.x.x.1.1.9.1]"


      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.0 = STRING: "NilkamalAppt_onu2"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.1 = STRING: "NilkamalAppt_onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.2 = STRING: "IndraprsthAppt_Onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.3 = STRING: "KalpavrukshAppt_onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.4 = STRING: "SaketAppt_onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.5 = STRING: "VandanAppt_onu2"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.6 = STRING: "VandanAppt_onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.7 = STRING: "RajhanshComplex_Onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.8 = STRING: "KanchanKruti_ApptOnu2"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.9 = STRING: "KanchanKruti_ApptOnu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.10 = STRING: "SilverPalace_Onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.11 = STRING: "GoldenPalace_Onu1"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.12 = STRING: "1169714214"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.13 = STRING: "1143580189"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.14 = STRING: "1143569554"
      SNMPv2-SMI::enterprises.x.x.x.x.x.x.x.x.x.9.15 = STRING: "1172239319"

      What i want to do is i like to discovery only things that falls between 0 to 127. how can i do it in discovery statement.

      Comment

      • brunohl
        Senior Member
        Zabbix Certified Specialist
        • Mar 2019
        • 215

        #6
        Maybe you can use filters to discard the rest

        Comment


        • chiragvaidya
          chiragvaidya commented
          Editing a comment
          can't i specify in discovery rule? you know i am doing to discover ports in my genexis OLT. I want to learn it dynamically because whenever new ONU is added it will discover automatically.
          Last edited by chiragvaidya; 28-08-2019, 13:01.
      • brunohl
        Senior Member
        Zabbix Certified Specialist
        • Mar 2019
        • 215

        #7
        You could create a custom discovery script

        Comment

      Working...