Ad Widget

Collapse

Accept All Items Matching Pattern

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gpmidi
    Member
    • Aug 2009
    • 62

    #1

    Accept All Items Matching Pattern

    Zabbix sender could be used to capture data for a LOT more dynamic data sources (such as every pid+name combination) if it were possible to create a "template" item that would accept all items from zabbix_sender that match a given pattern. The newly created items should have the properties of the template item.
    One example would be a script could report CPU time used for every process on a Linux machine. The key would be something like "process.cpu.seconds[<pid>,<exec name>]". Each process would have a unique key. This would result in a separate data stream, and thus separate graphs, for each process. It would then be possible to view the CPU usage of any process on a system.
    -Paul
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    What about processes that die and respawn with a new pid?

    Comment

    • gpmidi
      Member
      • Aug 2009
      • 62

      #3
      Originally posted by zabbix_zen
      What about processes that die and respawn with a new pid?
      You would end up with a new stream. It's just an example of something that would be able to take advantage of such a feature. It's not the sole reason.
      -Paul

      Comment

      • zabbix_zen
        Senior Member
        • Jul 2009
        • 426

        #4
        That's the point..

        In a few months you'd get item's multiplying like rabbits and you'd lose the historic relation between them.

        It'd have to have a different variable than pid, else we'd end with a separate Graph for a given process for the timespan 03Fev..14Fev, 14Fev..18Fev,18Fev..10Mar,....

        Comment

        • gpmidi
          Member
          • Aug 2009
          • 62

          #5
          Originally posted by zabbix_zen
          That's the point..

          In a few months you'd get item's multiplying like rabbits and you'd lose the historic relation between them.

          It'd have to have a different variable than pid, else we'd end with a separate Graph for a given process for the timespan 03Fev..14Fev, 14Fev..18Fev,18Fev..10Mar,....
          Yes, you would have a problem with ending up with LOTS of items. In the way I was thinking about it you would need some way for the items to expire after a certain time. Plus the GUI would need to be better able to support 10k+ trapper items per host.

          The more Zabbix-friendly solution is to simply use something else as the key. While possible it does reduce the depth of the information gathered. OTOH it does make life a lot easier.
          -Paul

          Comment

          Working...