Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15339

vfs.file.regexp not working

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • None
    • Agent (G)
    • Ubuntu 16.04 LTS

      Steps to reproduce:

      1. Create a LLD Item Prototype with thew following Key (Linux only!)
      vfs.file.regexp[/proc/mounts," {#FSNAME} {#FSTYPE} (.+) [0-9] [0-9]",,,,\1]
      1. Result looks like this:
      vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]
      1. This
      zabbix_agent -t 'vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]'

      is working fine! Result:+
      +

      vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]        [s|rw,relatime,errors=remount-ro,data=ordered]

      Result:
      But Server is not getting any data?


      Also no errors in the Log files (neither Server nor Agent)

      Expected:

      1. $ zabbix_agentd -t 'vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1]'
        vfs.file.regexp[/proc/mounts," / ext4 (.+) [0-9] [0-9]",,,,\1] [s|rw,relatime,errors=remount-ro,data=ordered]
      1. $ perl -n -e'/ \/ ext4 (.+) [0-9] [0-9]/ && print $1' /proc/mounts
        rw,relatime,errors=remount-ro,data=ordered

      So The agent is allowed to read /proc/mounts, and the Reguilar expression is working as expected /testet with zabbix_agent -t and perl. 

      I have no Idea why the output is just empty?

            Unassigned Unassigned
            Daywalker Michael P
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: