Ad Widget

Collapse

vfs.file.regexp : LAST MATCH IN FILE

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Boghdan
    Junior Member
    • Jun 2012
    • 18

    #1

    vfs.file.regexp : LAST MATCH IN FILE

    Hello!
    How do i get the LAST string in file matching the key's second parameter.
    LOG key is doing so by default, but it doesn't really suite my needs as far as i need to get numberic value in the end (so that i can create graphs out of it).
    Any idea?

    ZBX server: 2.4.3
    ZBX agent: 2.4.1 (64-bit)
    OS: Windows Server 2012
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hi,

    Maybe you can figure it out from this thread:


    Long story short:
    You CAN parse out numeric values from log item
    You CAN NOT create a graph directly from the log item
    You CAN create a calculated item from the log item and then create a graph from it.

    Hope this helps!

    Best Regards,
    Ingus

    Comment

    • Boghdan
      Junior Member
      • Jun 2012
      • 18

      #3
      Ok, thanks!

      I thought there could be a way for "vfs.file.regexp" item to behave so as "log" item does, returning only the last match (not to create two items returning same value in different formats). But, well this is still a workaround. Thanks!

      Comment

      Working...