Ad Widget

Collapse

Zabbix - Dynamic items in Map labels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sdl
    Junior Member
    • Dec 2016
    • 13

    #1

    Zabbix - Dynamic items in Map labels

    Hello,

    I am struggling to find info about this:

    I have a custom discovery rule which greps some lines from a file (connected users) and put these into items (one item per connected user). items are created through a prototype, and they can vary in number and content, as far as users connect and disconnect.
    Now, I'm trying to put the list of connected users in a zabbix map, as label Macro, with no avail. The macro I'm using is:

    {{HOST:HOST}:vfs.file.regexp[file.log,^#ITEM.*$].last(0)}

    Question is: Does zabbix map labels supports this? is it possible to put there this list of connected users, for instance, putting there a prototype? Or maybe there's another way?

    Thanks in advance.
  • sdl
    Junior Member
    • Dec 2016
    • 13

    #2
    Originally posted by sdl
    Hello,

    I am struggling to find info about this:

    I have a custom discovery rule which greps some lines from a file (connected users) and put these into items (one item per connected user). items are created through a prototype, and they can vary in number and content, as far as users connect and disconnect.
    Now, I'm trying to put the list of connected users in a zabbix map, as label Macro, with no avail. The macro I'm using is:

    {{HOST:HOST}:vfs.file.regexp[file.log,^#ITEM.*$].last(0)}

    Question is: Does zabbix map labels supports this? is it possible to put there this list of connected users, for instance, putting there a prototype? Or maybe there's another way?

    Thanks in advance.
    Any news?
    thanks

    Comment

    • sdl
      Junior Member
      • Dec 2016
      • 13

      #3
      Originally posted by sdl
      Hello,

      I am struggling to find info about this:

      I have a custom discovery rule which greps some lines from a file (connected users) and put these into items (one item per connected user). items are created through a prototype, and they can vary in number and content, as far as users connect and disconnect.
      Now, I'm trying to put the list of connected users in a zabbix map, as label Macro, with no avail. The macro I'm using is:

      {{HOST:HOST}:vfs.file.regexp[file.log,^#ITEM.*$].last(0)}

      Question is: Does zabbix map labels supports this? is it possible to put there this list of connected users, for instance, putting there a prototype? Or maybe there's another way?

      Thanks in advance.
      Any news?
      Thanks

      Comment

      • sdl
        Junior Member
        • Dec 2016
        • 13

        #4
        Originally posted by sdl
        Hello,

        I am struggling to find info about this:

        I have a custom discovery rule which greps some lines from a file (connected users) and put these into items (one item per connected user). items are created through a prototype, and they can vary in number and content, as far as users connect and disconnect.
        Now, I'm trying to put the list of connected users in a zabbix map, as label Macro, with no avail. The macro I'm using is:

        {{HOST:HOST}:vfs.file.regexp[file.log,^#ITEM.*$].last(0)}

        Question is: Does zabbix map labels supports this? is it possible to put there this list of connected users, for instance, putting there a prototype? Or maybe there's another way?

        Thanks in advance.
        Knock Knock

        Comment

        Working...