Ad Widget

Collapse

SNMPv3 + Hostmacros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hbauer
    Junior Member
    • Apr 2013
    • 1

    #1

    SNMPv3 + Hostmacros

    How can i store the snmp username and password in the Host atributes so that the values are useable in the templates?
    In the host i add the macro
    Code:
    {$SMNPUSER}=zabbixsnmp
    {$SMNPpass}=secret
    In the template i tried to use the vlaues from the host with the folowing syntax: {$SNMPUSER},{#SNMPUSER} and {SNMPUSER}.
    The only result was a log entry
    Code:
    item [Host1:Item1] became not supported: Could not connect to "<ip>:161": Unknown user name
    Can anybody give me a working example (hope this question is not to stupid)?
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    In most cases the Zabbix documentation gives the answer.
    You should take a look at Additional support for user macros and User macros to get more familiar with User macros.
    There it is described where user macros are supported and explained how they are used.

    Is it for sure that the credentials are correct? Have you tried to use them via another tool like snmpwalk?

    BTW:
    I'm not sure if user macros are case-insensitive. According to the documentation the supported characters are "A-Z , 0-9 , _ , ."
    I suggest to use upper-case letters only.

    Comment

    Working...