Ad Widget

Collapse

Host prototypes in LLD, what for?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drTr0jan
    Junior Member
    • Apr 2014
    • 6

    #1

    Host prototypes in LLD, what for?

    There are a host prototypes in SNMP Low Level Discovery for some host. The host prototype creates a hosts without any items. It's possible to link the hosts with some templates but impossible to link SNMPVALUE/SNMPINDEX from parent LLD to connected (by template) items.

    For example, I've a Cisco Wi-Fi controller, that returns a list of Wi-Fi spots, and the info about every spot can be getted only from the controller (not from spots). I can create a hosts-spots (every has only one interface - IP address of the controller) from the host prototype. But it's impossible to set a user macros for the prototype (ex. SNMPINDEX/SNMPVALUE). And also it couldn't create items in the hosts-spots, because SNMP items couldn't have an OID with {HOST.HOST} or {HOST.NAME} macros.
    I can create items with external check and grab SNMP via external script (linked by {HOST.HOST} or {HOST.NAME} macros), but it's ugly solution.

    So what for the host prototypes are needed? Сan I get a working example?
  • tatapoum
    Senior Member
    • Jan 2014
    • 185

    #2
    You're not very clear. However I think that Low Level Discovery is just not the use-case for your problem.
    If you have a Cisco wireless controller, you don't need to create hosts for all your APs, because all the information comes from the controller.
    You need to query the controller for SNMP OIDs. Most of these OIDs will contain the address of the APs as part of the index. So you must use LLD to discover and index all your APs, clients, etc. But host prototypes are just not needed here.
    They can be useful to automatically create hosts that will be queried afterwards (for example discovered virtual machines).

    Comment

    • Vlaad
      Junior Member
      • Mar 2014
      • 4

      #3
      The main reason to define host prototypes is to get different alert source and to open different tickets in issue tracker for each access point.

      Unfortunately there is no way to assign built-in macros to the SNMP OID, nor to the regexp field of the discovery rule.
      Here is feature request that possible could resolve the task using discovery on host prototype.

      Comment

      • szenrobi
        Junior Member
        • Jan 2011
        • 13

        #4
        Host prototypes in LLD, what for?

        Can somebody write me an example of using host prototype ?
        But please not the virtual machine example like int the documentation.

        I am very interested in.

        Comment

        Working...