Ad Widget

Collapse

SNMP auto discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JcDuss
    Junior Member
    • Aug 2015
    • 9

    #1

    SNMP auto discovery

    Hello Everyone,

    It's made a long time I didn't use Zabbix and I'm in testing for new releases.

    I tested Autodiscovery for snmp devices.
    My problem is , in my corp we got many snmp "read only" communities and differences per device.

    So I need to create on auto discovery rule per "community".

    Then I create the action to add it automatically in monitoring but it inherites of the standard "public" which is not working.

    I cannot figure how to personnalize the snmp community in the action menu ?

    Is it embedded or should I use a dedicated external command ?
  • JcDuss
    Junior Member
    • Aug 2015
    • 9

    #2
    Up please

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #3
      Hy, JcDuss.

      Don't a field "SNMP community" help in discovery rule with check type SNMPv* agent"?

      Comment

      • JcDuss
        Junior Member
        • Aug 2015
        • 9

        #4
        It helps to "discover" only.

        When Discovered, you can add host to monitored host and a specific host group.

        in older version, in my memory, snmp community was defined at host level (am I wrong ?.

        I can see now in the items of templates that the community is set to {$SNMP_COMMUNITY} which is a global macro and its value is "public".

        I would have to create each template per community instead of overload the macro by host and a dedicated {$SNMP_COMMUNITY} in each host by discovery.


        So when discovered, even if a community is specified in "discovery" menu, the host will be monitored with {$SNMP_COMMUNITY} if you apply an emmebed template. :/

        Is there other way more user friendly ?

        Comment

        • Semiadmin
          Senior Member
          • Oct 2014
          • 1625

          #5
          May be, add macros {$SNMP_COMMUNITY} to the template and link this template to discovered hosts via the operation "link to template" in discovery action?

          Comment

          • JcDuss
            Junior Member
            • Aug 2015
            • 9

            #6
            Yes but it will means I will have to duplicate all basics template by the number of "community" I got

            Comment

            • ovas
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Apr 2017
              • 138

              #7
              Hello JcDuss!

              You can either add a user macro to every host for the specific SNMP Community value by hands, or run a host.update API query for the results of host.get query where you collect all the hosts that require macro to be updated.
              Cannot see easier ways here, unfortunately.

              Comment

              • JcDuss
                Junior Member
                • Aug 2015
                • 9

                #8
                Hello,

                Thank you for your replies SemiAdmin and Ovas.

                I'll see the API.
                And I created a feature request to make it easier from the GUI.

                Comment

                Working...