phanthom2o4o/Huawei_Zabbix_Templates

Script asname

Opened this issue · 0 comments

C20NE commented

Bom dia,

Estou tendo problemas com o script na hora de resolver o nome do AS, Utilizando o IP esta tudo ok com o as.name, mas enviando o ASN esta gerando o seguinte erro:

.1.3.6.1.2.1.15.3.1.9.-p: Unknown Object Identifier (Sub-id not found: mib-2 -> -p)
whois: option requires an argument -- 'p'
Usage: whois [OPTION]... OBJECT...

-h HOST, --host HOST   connect to server HOST
-p PORT, --port PORT   connect to PORT
-H

Se eu remover o "-p", da key do prototipo de item AS Name para o AS{#SNMPVALUE} recebo o seguinte erro:

Missing object nameUSAGE: snmpget [OPTIONS] AGENT OID [OID]...  Version:  5.7.2  Web:      http://www.net-snmp.org/  Email:    net-snmp-coders@lists.sourceforge.netOPTIONS:  -h, --help		display this help message  -H			display configuration file d
--