Ad Widget

Collapse

vfs.fs.discovery doesn't work with zfs on freebsd?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arucard
    Junior Member
    • Jul 2012
    • 10

    #1

    vfs.fs.discovery doesn't work with zfs on freebsd?

    Hi,

    it is a common problem or just me?
    i've got zabbix agent 2.0.3 installed on freebsd which has only ZFS file system.
    when doing vfs.fs.discovery on this machine i have not any feedback, no file system are found (i'm watch zabbix agent logs (debug=4)).

    regards,
    p.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    This may have been fixed in 2.0.4rc1

    http://www.zabbix.com/rn2.0.4rc1.php

    [ZBX-5661] fixed keys "vfs.dev.read" and "vfs.dev.write" with "ops" and "sps" parameters on Linux and FreeBSD

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      Or... you may need to add zfs to the regexpr under admin->general-->regular expressions

      Comment

      • arucard
        Junior Member
        • Jul 2012
        • 10

        #4
        Originally posted by tchjts1
        Or... you may need to add zfs to the regexpr under admin->general-->regular expressions
        Hi,

        it's already there:
        Expression: ext|ufs|zfs
        Expected result: Result is TRUE
        Case sensitive: No


        when i write zfs in text string and make test i've got true as result.

        Regards,
        a.

        Comment

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

          #5
          Try following the instructions I gave in the thread below to see what your file system discovery check actually does return:

          Comment

          • arucard
            Junior Member
            • Jul 2012
            • 10

            #6
            Originally posted by heaje
            Try following the instructions I gave in the thread below to see what your file system discovery check actually does return:

            http://www.zabbix.com/forum/showthre...=zabbix_agentd
            When running zabbix_agentd -p on server with ZFS fs i've got:
            Code:
            vfs.fs.discovery                              [s|{
            	"data":[
            		{
            			"{#FSNAME}":"\/",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/dev",
            			"{#FSTYPE}":"devfs"},
            		{
            			"{#FSNAME}":"\/tmp",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr\/home",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr\/ports",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr\/ports\/distfiles",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr\/ports\/packages",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/usr\/src",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/crash",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/db",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/db\/pkg",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/empty",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/log",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/mail",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/run",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/tmp",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/STORAGE",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/STORAGE\/backup",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/STORAGE\/logs",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/STORAGE\/jails",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/STORAGE\/bacula",
            			"{#FSTYPE}":"zfs"},
            		{
            			"{#FSNAME}":"\/var\/db\/portsnap",
            			"{#FSTYPE}":"zfs"}]}]
            vfs.dev.read                                  [m|ZBX_NOTSUPPORTED]
            vfs.dev.write                                 [m|ZBX_NOTSUPPORTED]
            From zabbix server:
            Code:
            zabbix1:~% zabbix_get -s ZFS_MACHINE -k vfs.fs.size\[/\]
            134772658176
            zabbix1:~% zabbix_get -s ZFS_MACHINE -k vfs.fs.size\[\/STORAGE\/backup\]
            1342915001344
            So it doesn't work correctly from LLD by it self?

            Regards,
            a.

            Comment

            • arucard
              Junior Member
              • Jul 2012
              • 10

              #7
              I've turned DebugLevel to 4 on Zabbix server and in logs I've got:

              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/usr\/src","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/crash","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/db","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/db\/pkg","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/empty","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/log","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/mail","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/run","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/var\/tmp","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/STORAGE","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/STORAGE\/backup","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/STORAGE\/logs","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/STORAGE\/jails","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL
              Zabbix server[48613]: In DBlld_check_record() jp_row:'{"{#FSNAME}":"\/STORAGE\/bacula","{#FSTYPE}":"zfs"}'
              Zabbix server[48613]: End of DBlld_check_record():FAIL

              So Zabbix recives information of ZFS file system partitions. But doesn't it work? :\

              Regards,

              Comment

              • neptunus
                Junior Member
                • Jul 2013
                • 7

                #8
                zabbix_get -s sideswipe -k vfs.fs.discovery is working perfect. But it also shows all the snapshots. Is it possible not to vfs.fs.discovery the snapshots?


                Code:
                0_autosnap_type02",
                                        "{#FSTYPE}":"zfs"},
                                {
                                        "{#FSNAME}":"\/zstore\/roy\/.zfs\/snapshot\/20131012_210                                              0_autosnap_type02",
                                        "{#FSTYPE}":"zfs"},
                                {
                                        "{#FSNAME}":"\/zstore\/roy\/.zfs\/snapshot\/20131011_210

                Comment

                Working...