Ad Widget

Collapse

macro {HOST.HOST} in item key

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knez
    Member
    • Dec 2019
    • 44

    #1

    macro {HOST.HOST} in item key

    Hello,
    I understood that is possible to use Macro {HOST.HOST} in item key:
    https://www.zabbix.com/documentation/5.0/manual/appendix/macros/supported_by_location
    Click image for larger version

Name:	1.png
Views:	873
Size:	76.2 KB
ID:	398454


    but when I try to get OID value (via SNMP) like this:

    Click image for larger version

Name:	2.png
Views:	570
Size:	66.3 KB
ID:	398455

    Code:
    1.3.6.1.4.1.1429.1.6.2.2.13.300.7.1.3.[{HOST.HOST}].4
    or this:
    Code:
    1.3.6.1.4.1.1429.1.6.2.2.13.300.7.1.3.[{$HOST.HOST}].4

    I get this error message:
    Code:
    OID "1.3.6.1.4.1.1429.1.6.2.2.13.300.7.1.3.[{HOST.HOST}].4" contains unsupported parameters.
    Could someone help me with this?



  • knez
    Member
    • Dec 2019
    • 44

    #2
    Sorry... it is not an item key... it's SNMP OID... Is there a possibility to use Macros in SNMP OID field? Is there a way to change a topic name or to delete a topic?
    Last edited by knez; 30-03-2020, 21:29.

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Unfortunately, not. This feature was asked for: https://support.zabbix.com/browse/ZBXNEXT-2422 . Feel free to vote for it.

      Comment

      • knez
        Member
        • Dec 2019
        • 44

        #4
        Originally posted by dimir
        Unfortunately, not. This feature was asked for: https://support.zabbix.com/browse/ZBXNEXT-2422 . Feel free to vote for it.
        Just did. Thanks!

        Comment

        Working...