Ad Widget

Collapse

Need help is checking a function in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vieypul56
    Junior Member
    • Apr 2021
    • 11

    #1

    Need help is checking a function in Zabbix

    Hi, We are monitoring hundreds of thousands of nodes and parameters through Zabbix 4.2.4. Recently we came across an issue whereby we need to add 1 trigger/function whenever the value changes from Integer to String Error. Is there a way that can be done using trigger function or something? I am really looking forward to implement it without cloning or adding new parameters which will add performance issue to the system. Thanks in adv.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    You can use preprocessing and the ability to handle error by Custom on fail option.
    If you describe your situation in more detail, it is possible to offer a more specific solution.

    Comment

    • Vieypul56
      Junior Member
      • Apr 2021
      • 11

      #3
      Sure Hamardaban.

      We are polling node parameter based on SNMP OIDs every 5 mins for almost 200+ parameters and 2200 nodes in a server. The values are float and hence we took datatype as "Numeric(float)".
      But at certain times the value comes as text as an error "Connection error/device off" and we are not able to capture it. After 2-3 hrs when the device again responds float values it works fine.
      But we are concerned to capture the alert and make a trigger whenever we face such error situation which comes in string which will help us to identify and inform concerned team for troubleshooting.

      Requirement:

      To have a trigger whenever the node parameter value changes from "float" to "Numeric".

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Using the Custom on fail option, in case of an error (a string came, not a number), you can assign the item a value that is not found in the work - for example 987654321. And create another trigger that responds to such a value.

        Comment


        • Vieypul56
          Vieypul56 commented
          Editing a comment
          Hamardaban - Above solution worked but got me in another situation. I have 40 such parameters, out of only 10 per device are Active but they are random. Now, how can I exclude the unsupported ones else 30 false alarms would be generated.
      • Vieypul56
        Junior Member
        • Apr 2021
        • 11

        #5
        Thanks Hamardaban for your response but I don't see custom in the functions. They are all predefined.

        Click image for larger version

Name:	Zabbix.png
Views:	142
Size:	39.3 KB
ID:	425069

        Comment


        • Hamardaban
          Hamardaban commented
          Editing a comment
          I didn't write about functions, but about preprocessing.

        • Vieypul56
          Vieypul56 commented
          Editing a comment
          Absolutely, it was my mis-interpretation.

        • Vieypul56
          Vieypul56 commented
          Editing a comment
          Hamardaban : Thanks for all your support. I managed to perform the requisite task by using combination of functions in triggers. Thanks !
      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #6
        There is a processing of such a situation "Validation -> Check for not supported value". https://www.zabbix.com/documentation.../preprocessing
        I don't remember exactly what version it appeared in. But 4.2 is not supported for a long time - you need to update!

        Comment


        • Vieypul56
          Vieypul56 commented
          Editing a comment
          Thanks Hamardaban, I will look into it. Thnx
      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #7
        I have 40 such parameters, out of only 10 per device are Active but they are random. Now, how can I exclude the unsupported ones else 30 false alarms would be generated.
        Inactive item's are disabled? Then there are no problems - triggers for such elements do not work. Or in the "not supported" state and there are a lot of them? Then you may have problems with the performance of the entire system. And you need to review all the metrics system.

        Comment


        • Vieypul56
          Vieypul56 commented
          Editing a comment
          They are not in disabled state. They vary from device to device and randomly changes every 2-3 days. They all are under common template.
          Is there a way we can exclude the "not supported" status ones from this custom trigger by any means.?
          Last edited by Vieypul56; 21-05-2021, 12:54.
      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #8
        Item most probably turns to "not supported" state in this case...you could also create an internal action to catch those events, when item turns to "not supported"

        Comment

        Working...