Ad Widget

Collapse

Printers Map

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luís Nereu Feder
    Member
    • Jan 2025
    • 33

    #1

    Printers Map

    Hello, I'm creating a printer map, and I need to have the information about the name, IP address and the page counter. I don't know which macro I can use to bring the page counter information, can someone help me?
    I got the IP and name information, I just need the page counter

    Click image for larger version

Name:	Mapa de Impressoras.png
Views:	146
Size:	1.8 KB
ID:	497658
  • Blevar
    Member
    • Jan 2025
    • 68

    #2
    Hi,
    It realy depends on many things. Are you using any premade templates? Or your own templates/items. If so - there is no way anyone except for you can answer this question. Or are you looking for suggestions of how to name such macro?
    You can look for buildin macros: https://www.zabbix.com/documentation...ed_by_location but i think that in your case you would need to create your own.

    Comment

    • Luís Nereu Feder
      Member
      • Jan 2025
      • 33

      #3
      The item that brings the page counter information was created by me, that is, I am looking for suggestions on how to name such a macro.

      Comment

      • PZakrzewski
        Junior Member
        • Dec 2024
        • 12

        #4
        hey,

        That's really up to You. Just make sure the naming of macro is unique and You don't have any other macros named with the same name.

        Comment

        • kyus
          Senior Member
          • Feb 2024
          • 172

          #5
          Hey!

          Since you have an item that displays the page counter info.

          Just like you added those macros in the element label, you can simply add this syntax:

          {?last(/host/your.item.key)}

          Comment

          • Luís Nereu Feder
            Member
            • Jan 2025
            • 33

            #6
            hey
            I used this syntax, but it gave me an unknown value, maybe I'm forgetting something​

            Comment

            • kyus
              Senior Member
              • Feb 2024
              • 172

              #7
              What is your Zabbix server version?

              In your map, if you're using a element of "Type": "Host Group" and "Show": "Host group elements" you should omit the host in that syntax, so it would be like:

              {?last(//your.item.key)}

              Comment

              • Luís Nereu Feder
                Member
                • Jan 2025
                • 33

                #8
                I'm on version 7, I tested it and it worked, thank you very much

                Comment

                Working...