Ad Widget

Collapse

LLD snmp external check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • platine
    Junior Member
    • Oct 2013
    • 4

    #1

    LLD snmp external check

    hi,

    Maybe someone can help me.
    I've created a template with a discovery rule by external check script (SNMP). All of that work perfectly until i associate this template with a host witch has one ip for zabbix agent and one other for snmp checks.
    My script always receive only agent's ip ... i have tested with {HOST.CONN},{HOST.CONN2}, {HOST.IP2} ...
    Is there a way to choose snmp ip instead of agent ip in external check's key ?
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Ahhh, yes.
    Your LLD rule has to be of type "SNMP v{1/2/3} agent".
    Then it uses the (hopefully) defined SNMP interface.

    Comment

    • platine
      Junior Member
      • Oct 2013
      • 4

      #3
      thank you, i will test this when my zappix's project will restart

      Comment

      • platine
        Junior Member
        • Oct 2013
        • 4

        #4
        hi,
        i've tested but i can't do that.
        I've this problem when discovery rule is executed not when created item is checked.
        Discovery rule is done with "agent's ip" instead of "SNMP's ip" and i would like to discovery with "SNMP's IP".

        Comment

        • mbsit
          Senior Member
          • Sep 2012
          • 130

          #5
          It is done that way by design:

          since 2.2.0 the macro will use the main agent interface, however, if it is not present, the main SNMP interface will be used. If SNMP is also not present, the main JMX interface will be used. If JMX is not present either, the main IPMI interface will be used. In item key parameters the interface that is selected for the item will be used, since 2.0.3.

          Source: https://www.zabbix.com/documentation...ed_by_location
          Footnotes 3.
          Pozdrawiam
          Grzegorz Grabowski
          ____
          WdroĊĵenia, szkolenia, umowy serwisowe
          Warszawa - Polska

          Comment

          • steveboyson
            Senior Member
            • Jul 2013
            • 582

            #6
            Originally posted by platine
            hi,
            i've tested but i can't do that.
            I've this problem when discovery rule is executed not when created item is checked.
            Discovery rule is done with "agent's ip" instead of "SNMP's ip" and i would like to discovery with "SNMP's IP".
            Sorry, I obviously don't get the point.
            Zabbix items are executed against the defined "Zabbix IP" (agent interface) while SNMP checks are executed against the defined SNMP interface. So you should be able to have different IP addresses for "Zabbix agent" and "SNMP interface"

            Comment

            Working...