Ad Widget

Collapse

Auto Discovery in Large Env.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #31
    Natalia,

    Now I see your problem.

    I have not tested it yet but here is what I found on documentation about Received value:

    Specify the value received from an agent (Zabbix, SNMP). Case sensitive string comparison. If multiple Zabbix agent or SNMP checks are configured for a rule, received values for all of them are checked (each check generates a new event which is matched against all conditions).
    So it will not work if you are using two checks. The scenario will fail in your case and I can't think of any workaround yet. Sorry!

    Is there a possibility that you can receive both values (qa and jboss) using one agent check? In such way you could parse both values at once thus adding the host to the correct group.

    Ingus

    Comment

    • natalia
      Senior Member
      • Apr 2013
      • 159

      #32
      Originally posted by ingus.vilnis
      Natalia,

      Now I see your problem.

      I have not tested it yet but here is what I found on documentation about Received value:


      So it will not work if you are using two checks. The scenario will fail in your case and I can't think of any workaround yet. Sorry!

      Ingus
      Very strange... what is the logic to limit this?

      Originally posted by ingus.vilnis
      Is there a possibility that you can receive both values (qa and jboss) using one agent check? In such way you could parse both values at once thus adding the host to the correct group.
      Ingus
      I can create script that will run all the checks and output one string with all values separate with "," but in this case I will need to create action like :

      Received value like jboss,*,qa

      don't think that it will work ...

      btw, if I will create only one agent check in discovery rule and put all the values in one string , can I using "and" in actions ?

      Thanks a lot for your time and help !!!!!!!!!!!!!

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #33
        Originally posted by natalia
        Very strange... what is the logic to limit this?
        I that is not a "limitation". That is how the Actions are working with Discovered rules.
        Let's wait for the devs to comment on the ZBX for more information.

        Originally posted by natalia
        I can create script that will run all the checks and output one string with all values separate with "," but in this case I will need to create action like :

        Received value like jboss,*,qa
        If you can get to the point when one scripted check can return you a string of values then you could use the current functionality and use multiple lines of
        Received value like jboss
        AND
        Received value like qa
        Originally posted by natalia
        don't think that it will work ...

        btw, if I will create only one agent check in discovery rule and put all the values in one string , can I using "and" in actions ?
        I think it could work. At least it is worth for you to test that
        Originally posted by natalia
        Thanks a lot for your time and help !!!!!!!!!!!!!
        You're welcome!
        It is not every day I can do that but I try to share my thoughts if others find it useful.

        Best Regards,
        Ingus

        Comment

        • natalia
          Senior Member
          • Apr 2013
          • 159

          #34
          Originally posted by ingus.vilnis
          If you can get to the point when one scripted check can return you a string of values then you could use the current functionality and use multiple lines of
          Received value like jboss
          AND
          Received value like qa

          I think it could work. At least it is worth for you to test that
          Looks like it's work !
          now I should see if it's really to insert all the discovery checks in one script ... and then will run the test again.

          Thanks a lot ! I will update later about the results.

          Comment

          Working...