Ad Widget

Collapse

Posible bug in maps with Macros?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Francisco.Tudel
    Junior Member
    • Jul 2015
    • 3

    #1

    Posible bug in maps with Macros?

    Hi, my name is Francisco and this is my first post on this forum, I'm reading this forum for some months and I'm working on a little zabbix implementation for some windows... linux.. database.. firewall...etc

    Well, i'm creating some maps to view the status of the hardware or software.. but, when i add a host to my map and in the text label i put some values that need a macro.. some of them show the data and some not:

    this shows nothing *UNKNOWN* but in the "latest data" shows the correct info
    {MIHOST.ESX1:vmware.hv.hw.cpu.model[{$URL},{HOST.HOST}].last(0)}

    this shows the result of the external script nas.sh with these parameters
    {MIHOST.NAS_221:nas.sh[{$NAS1IP},{$NAS1SHARE1},libreporciento].last(0)}

    And when triing to put the value of a macro in the label of a host in a map
    {$NAS1IP} -> shows nothing or simply this text {$NAS1IP}
    {HOST.CONN} -> shows the correct data
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    Originally posted by Francisco.Tudel
    Hi, my name is Francisco and this is my first post on this forum, I'm reading this forum for some months and I'm working on a little zabbix implementation for some windows... linux.. database.. firewall...etc

    Well, i'm creating some maps to view the status of the hardware or software.. but, when i add a host to my map and in the text label i put some values that need a macro.. some of them show the data and some not:

    this shows nothing *UNKNOWN* but in the "latest data" shows the correct info
    {MIHOST.ESX1:vmware.hv.hw.cpu.model[{$URL},{HOST.HOST}].last(0)}

    this shows the result of the external script nas.sh with these parameters
    {MIHOST.NAS_221:nas.sh[{$NAS1IP},{$NAS1SHARE1},libreporciento].last(0)}

    And when triing to put the value of a macro in the label of a host in a map
    {$NAS1IP} -> shows nothing or simply this text {$NAS1IP}
    {HOST.CONN} -> shows the correct data

    Maybe I'm wrong but... I think macro only works on maps if they are set in global configuration.

    Here is a list of macros by location.


    And here one explication about macros.



    Sorry for the bad Englsih

    Comment

    • Francisco.Tudel
      Junior Member
      • Jul 2015
      • 3

      #3
      Ok, I've see that we can't use Macros in maps but on items we can use so why not all of my items that have a Macro don't work?
      well I'll continue searching for the problem
      Thank you!

      Comment

      Working...