Boa noite pessoal!
Tenho uma dúvida quanto ao uso de macros em regras de descoberta. Basicamente eu tenho um host "piloto" de descoberta, que varre o Cisco Meraki para coletar todos os firewalls do meu ambiente que comece com X.
Este host piloto, cria o que for identificado como host dentro de um novo grupo.
Os hosts neste grupo devem possuir um novo template com uma nova descoberta baseado em seu nome (o que foi identificado na meraki que comece com X), para coletar seus dados específicos.
Vou tentar explicar abaixo.
Meu cenário:
Preciso monitorar diversos hosts firewalls em uma rede Cisco meraki (mais de 800).
O que tenho (e atende parcialmente):
Criei templates para cada grupo de hosts (que comecam com X, ou Y, ou Z), e cada template cria o que for encontrado dentro de um host como item. Ou seja, dentro de um host, posso ter vários itens, sendo que cada ativo possui no minimo 10 tipos de monitoramento.
800*10 = numero de itens dentro de um host (para exemplificar).
O que eu precisaria:
Criei uma regra de descoberta via SNMP com os seguintes parâmetros:
tudo que for reconhecido via snmp no meraki que comece com a letra X deve ser criado como host no grupo X
tudo que for reconhecido via snmp no meraki que comece com a letra Y deve ser criado como host no grupo Y
No template usado acima usei a opção de Host Prototype para criar os hosts dentro de um grupo. Porém, não consegui enviar os valores "{#SNMPINDEX}" descobertos no host piloto (acima) como macro para os hosts criados e a partir destes hosts usar um template de descoberta para que cada um identifique seus valores via snmp e popule seus items.
No host piloto, faço a identificação via SNMP fazendo o array com DevName.
Preciso passar o DevName para o host e no host usar uma descoberta aonde a LLD colete a macro DevName para consultar o snmp daquele DevName específico e obter seus dados via SNMP (interface, status, seriais, etc).
Não sei se fui claro, é algo novo pra mim também!
Qualquer ajuda é bem-vinda!
----------------------------------
English:
Good night!
I have a question about using macros in discovery rules. Basically I have a discovery "pilot" host, which scans Cisco Meraki to collect all firewalls in my environment starting with "X" (^X).
This pilot host creates what is identified as a host within a new group. Hosts in this group must have a new template with a new finding based on their name (the one identified on the meraki starting with X), to collect their specific data.
I will try to explain below.
My scenario:
I need to monitor multiple firewall hosts on a Cisco meraki network (over 800).
What I have (and partially OK):
I created templates for each group of hosts (starting with X, or Y, or Z), and each template creates what is found within a host as an item. In other words, within a host, I can have several items, with each asset having at least 10 types of monitoring.
800*10 = number of items within a host (for example).
What would I need:
I created a discovery rule via SNMP with the following parameters:
everything that is recognized via snmp on meraki that starts with the letter X must be created as host in group X
everything that is recognized via snmp on meraki that starts with the letter Y must be created as host in group Y
In the template used above I used the Host Prototype option to create the hosts within a group. However, I couldn't send the values "{#SNMPINDEX}" discovered in the pilot host (above) as macro to the created hosts and from these hosts use a discovery template so that each one identifies its values via snmp and populates its items.
On the pilot host, I identify via SNMP making the array with DevName.
I need to pass the DevName to the host and on the host use a discovery where the LLD collects the DevName macro to query the snmp of that specific DevName and get its data via SNMP (interface, status, serials, etc).
I don't know if I was clear, it's something new for me too!
Every help is welcome!
Thanks!