Ad Widget

Collapse

Zabbix not parsing user Macro for SNMPv3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ACiD GRiM
    Junior Member
    • Sep 2012
    • 4

    #1

    Zabbix not parsing user Macro for SNMPv3

    I'm having trouble getting zabbix to reliably use my usermacros I've set for name, auth, and priv.

    Letter for letter, here is what I have in the Macro config

    {$SNMPV3_AUTH}
    {$SNMPV3_NAME}
    {$SNMPV3_PRIV}

    And each have their corresponding value saved.

    Strangely {$SNMP_COMMUNITY} has no issues with SNMPv2c.

    I am aware about the SHA/AES limitation of zabbix, and I am able to sucessfully walk the devices with MD5/DES from my workstation.

    Another pacularity is that the settings I have for Discovery on v3 have no issue walking the v3 settings or v2c for that matter.

    I have the three v3 macros in templates (attatched) which are included in my test host which is failing to gather any info. If I put the values directly into the template, I have no issues as far as I can tell.

    Below is an excerpt from my verbose zabbix server log:
    Code:
    tail -f /var/log/zabbix/zabbix_server.log |grep SNMP
      9606:20120913:193024.790 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.790 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.790 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.791 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.792 SNMP [NN*[email protected]:161]
      9606:20120913:193030.987 SNMPv3 [[email protected]:161]
      9580:20120913:193042.454 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.454 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.454 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.455 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.455 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.457 In substitute_key_macros() data:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.457 End of substitute_key_macros():SUCCEED data:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.458 In get_value_snmp() key:'sysUpTime' oid:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.458 SNMP [NN*[email protected]:161]
      9580:20120913:193042.473 In snmp_normalize(oid:SNMPv2-MIB::sysUpTime.0)
      9580:20120913:193042.473 End of snmp_normalize():SNMPv2-MIB::sysUpTime.0
      9580:20120913:193042.473 In get_snmp() oid:'SNMPv2-MIB::sysUpTime.0'
      9606:20120913:193042.541 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.541 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.542 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.543 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.547 SNMP [NN*[email protected]:161]
      9606:20120913:193048.742 SNMPv3 [[email protected]:161]
      9583:20120913:193059.067 In substitute_simple_macros() data:'{$SNMPv3_NAME}'
      9583:20120913:193059.067 In DCget_user_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_host_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_host_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_global_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.069 End substitute_simple_macros() data:'{$SNMPv3_NAME}'
      9583:20120913:193059.069 In substitute_simple_macros() data:'{$SNMPv3_AUTH}'
      9583:20120913:193059.069 In DCget_user_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.070 In DCget_host_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.070 In DCget_host_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.071 In DCget_global_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.071 End substitute_simple_macros() data:'{$SNMPv3_AUTH}'
      9583:20120913:193059.072 In substitute_simple_macros() data:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_user_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_host_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_host_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.073 In DCget_global_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.073 End substitute_simple_macros() data:'{$SNMPv3_PRIV}'
      9583:20120913:193059.074 In substitute_key_macros() data:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.074 End of substitute_key_macros():SUCCEED data:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.075 In get_value_snmp() key:'sysUpTime' oid:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.257 SNMPv3 [{$SNMPv3_NAME}@10.0.4.10:161]
      9583:20120913:193059.258 In snmp_normalize(oid:SNMPv2-MIB::sysUpTime.0)
      9583:20120913:193059.258 End of snmp_normalize():SNMPv2-MIB::sysUpTime.0
      9583:20120913:193059.259 In get_snmp() oid:'SNMPv2-MIB::sysUpTime.0'
      9606:20120913:193100.300 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
    I'm running zabbix 2.0.2 freshly compiled, thanks for any help
    Attached Files
  • elvar
    Senior Member
    • Feb 2008
    • 226

    #2
    Originally posted by ACiD GRiM
    I'm having trouble getting zabbix to reliably use my usermacros I've set for name, auth, and priv.

    Letter for letter, here is what I have in the Macro config

    {$SNMPV3_AUTH}
    {$SNMPV3_NAME}
    {$SNMPV3_PRIV}

    And each have their corresponding value saved.

    Strangely {$SNMP_COMMUNITY} has no issues with SNMPv2c.

    I am aware about the SHA/AES limitation of zabbix, and I am able to sucessfully walk the devices with MD5/DES from my workstation.

    Another pacularity is that the settings I have for Discovery on v3 have no issue walking the v3 settings or v2c for that matter.

    I have the three v3 macros in templates (attatched) which are included in my test host which is failing to gather any info. If I put the values directly into the template, I have no issues as far as I can tell.

    Below is an excerpt from my verbose zabbix server log:
    Code:
    tail -f /var/log/zabbix/zabbix_server.log |grep SNMP
      9606:20120913:193024.790 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.790 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.790 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.791 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193024.792 SNMP [NN*[email protected]:161]
      9606:20120913:193030.987 SNMPv3 [[email protected]:161]
      9580:20120913:193042.454 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.454 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.454 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.455 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.455 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9580:20120913:193042.457 In substitute_key_macros() data:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.457 End of substitute_key_macros():SUCCEED data:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.458 In get_value_snmp() key:'sysUpTime' oid:'SNMPv2-MIB::sysUpTime.0'
      9580:20120913:193042.458 SNMP [NN*[email protected]:161]
      9580:20120913:193042.473 In snmp_normalize(oid:SNMPv2-MIB::sysUpTime.0)
      9580:20120913:193042.473 End of snmp_normalize():SNMPv2-MIB::sysUpTime.0
      9580:20120913:193042.473 In get_snmp() oid:'SNMPv2-MIB::sysUpTime.0'
      9606:20120913:193042.541 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.541 In DCget_user_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.542 In DCget_host_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.543 In DCget_global_macro() macro:'{$SNMP_COMMUNITY}'
      9606:20120913:193042.547 SNMP [NN*[email protected]:161]
      9606:20120913:193048.742 SNMPv3 [[email protected]:161]
      9583:20120913:193059.067 In substitute_simple_macros() data:'{$SNMPv3_NAME}'
      9583:20120913:193059.067 In DCget_user_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_host_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_host_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.068 In DCget_global_macro() macro:'{$SNMPv3_NAME}'
      9583:20120913:193059.069 End substitute_simple_macros() data:'{$SNMPv3_NAME}'
      9583:20120913:193059.069 In substitute_simple_macros() data:'{$SNMPv3_AUTH}'
      9583:20120913:193059.069 In DCget_user_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.070 In DCget_host_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.070 In DCget_host_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.071 In DCget_global_macro() macro:'{$SNMPv3_AUTH}'
      9583:20120913:193059.071 End substitute_simple_macros() data:'{$SNMPv3_AUTH}'
      9583:20120913:193059.072 In substitute_simple_macros() data:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_user_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_host_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.072 In DCget_host_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.073 In DCget_global_macro() macro:'{$SNMPv3_PRIV}'
      9583:20120913:193059.073 End substitute_simple_macros() data:'{$SNMPv3_PRIV}'
      9583:20120913:193059.074 In substitute_key_macros() data:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.074 End of substitute_key_macros():SUCCEED data:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.075 In get_value_snmp() key:'sysUpTime' oid:'SNMPv2-MIB::sysUpTime.0'
      9583:20120913:193059.257 SNMPv3 [{$SNMPv3_NAME}@10.0.4.10:161]
      9583:20120913:193059.258 In snmp_normalize(oid:SNMPv2-MIB::sysUpTime.0)
      9583:20120913:193059.258 End of snmp_normalize():SNMPv2-MIB::sysUpTime.0
      9583:20120913:193059.259 In get_snmp() oid:'SNMPv2-MIB::sysUpTime.0'
      9606:20120913:193100.300 In substitute_simple_macros() data:'{$SNMP_COMMUNITY}'
    I'm running zabbix 2.0.2 freshly compiled, thanks for any help
    Did you ever get anywhere with this?

    Comment

    • ACiD GRiM
      Junior Member
      • Sep 2012
      • 4

      #3
      Nope, haven't updated my zabbix install yet either, so I don't know if a newer version fixes this or not. I'll reply if I get around to that in a timely manner.

      Comment

      Working...