Ad Widget

Collapse

file system discovery does not discover ocfs2 file systems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ugis
    Junior Member
    • Oct 2012
    • 3

    #1

    file system discovery does not discover ocfs2 file systems

    Hi!

    We have set up zabbix agent on Oracle VM virtualization hosts(cut down linux version with xen support).

    Problem is - agent does not discover mounted ocfs2 file systems(template OS linux, discovery rules).

    These file systems are visible as normal local file systems in "df -h" output like:
    /dev/mapper/3600508b4000753ee0001000000290000
    900G 867G 34G 97% /OVS/Repositories/0004fb000003000099de5999d1a266f8

    and also in /proc/mounts like this:
    /dev/mapper/3600508b4000753ee0001000000290000 /OVS/Repositories/0004fb000003000099de5999d1a266f8 ocfs2 rw,relatime,_netdev,heartbeat=global,nointr,data=o rdered,errors=remount-ro,cluster_stack=o2cb,coherency=full,user_xattr,ac l 0 0

    First idea was it is because the regexp for file system discovery did not include neither ocfs2 or ocfs.
    Administration->General->Regular expressions -> File systems discovery was"^(btrfs|ext2|ext3|ext4|jfs|reiser|xfs|ffs|ufs| jfs|jfs2|vxfs|hfs|ntfs|fat32)$"
    we then changed it to "^(btrfs|ext2|ext3|ext4|ocfs2|jfs|reiser|xfs|ffs|u fs|jfs|jfs2|vxfs|hfs|ntfs|fat32)$", but ocfs2 type file systems are still not discovered(suitable time has past).

    Zabbix server 2.0.3
    zabbix agent 2.0.2

    Any ideas what to tune for ocfs2 file system discovery to work?

    BR
    Ugis
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    One place to make 100% sure it isn't something funky with the discovery rule is to run "zabbix_agentd -p" on the server with the file systems. That will output all the supported items for that agent. In the list of supported items, the discovery stuff (not filtered at all) for the filesystems will show up. If the ocfs2 stuff doesn't show up there, I'd be willing to bet that you have hit some kind of bug.

    Comment

    • ugis
      Junior Member
      • Oct 2012
      • 3

      #3
      zabbix_agent -p (filtered output follows)

      vfs.fs.discovery [s|{
      ...
      "{#FSNAME}":"\/boot",
      "{#FSTYPE}":"ext3"},
      ...
      "{#FSNAME}":"\/proc\/sys\/fs\/binfmt_misc",
      "{#FSTYPE}":"binfmt_misc"},
      ...
      "{#FSNAME}":"\/OVS\/Repositories\/0004fb000003000099de5999d1a266f8",
      "{#FSTYPE}":"ocfs2"},


      Then doing zabbix_get from server:
      # zabbix_get -s x.x.x.x -k vfs.fs.size[/boot]
      101116928
      #zabbix_get -s x.x.x.x -k vfs.fs.size[/proc/sys/fs/binfmt_misc]
      0
      # zabbix_get -s x.x.x.x -k vfs.fs.size[/OVS/Repositories/0004fb000003000099de5999d1a266f8]
      ZBX_NOTSUPPORTED

      Seems to be bug. If no more ideas on solution of not detecting ocfs2 file systems, I will post this in bug system.

      Comment

      • ugis
        Junior Member
        • Oct 2012
        • 3

        #4
        Additional info: upgraded zabbix_agentd to 2.0.3 but it did not help.

        Comment

        Working...