Ad Widget

Collapse

Probleme with vfs.file.regexp for nfs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Arcocide
    Member
    • Apr 2015
    • 84

    #1

    Probleme with vfs.file.regexp for nfs

    Hi everybody,

    I would like to add nfs monitoring in my Zabbix 3.2.

    My server NFS is a Ubuntu 16.04.

    I try this template


    I juste change nfs file for nfsd but all return is :1

    zabbix_agentd -t vfs.file.regexp[/proc/net/rpc/nfsd,"^proc3 (([0-9]*)?\s){8}",,,,\1]
    vfs.file.regexp[/proc/net/rpc/nfsd,^proc3 (([0-9]*)?\s){8},,,,1] [s|1]

    nfsstat:
    Server rpc stats:
    calls badcalls badclnt badauth xdrcall
    322809 0 0 0 0

    Server nfs v2:
    null getattr setattr root lookup readlink
    4 100% 0 0% 0 0% 0 0% 0 0% 0 0%
    read wrcache write create remove rename
    0 0% 0 0% 0 0% 0 0% 0 0% 0 0%
    link symlink mkdir rmdir readdir fsstat
    0 0% 0 0% 0 0% 0 0% 0 0% 0 0%

    Server nfs v3:
    null getattr setattr lookup access readlink
    14 0% 24640 7% 38533 11% 31858 9% 4868 1% 0 0%
    read write create mkdir symlink mknod
    98215 30% 61602 19% 5379 1% 395 0% 0 0% 0 0%
    remove rmdir rename link readdir readdirplus
    4880 1% 0 0% 5250 1% 0 0% 11498 3% 1650 0%
    fsstat fsinfo pathconf commit
    394 0% 14 0% 14 0% 33601 10%

    cat nfsd :
    rc 0 116039 206770
    fh 23 0 0 0 0
    io 411535664 463943537
    th 8 0 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
    ra 32 61640 0 0 0 0 0 0 0 0 0 36575
    net 322809 0 322809 100
    rpc 322809 0 0 0 0
    proc2 18 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    proc3 22 14 24640 38533 31858 4868 0 98215 61602 5379 395 0 0 4880 0 5250 0 11498 1650 394 14 14 33601
    proc4 2 0 0
    proc4ops 71 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

    I would like to have proc3

    thanks for your answer
  • Arcocide
    Member
    • Apr 2015
    • 84

    #2
    I find think :

    I change :
    zabbix_agentd -t vfs.file.regexp[/proc/net/rpc/nfsd,"^proc3 (([0-9]*)?\s){8}",,,,\1]
    To:
    zabbix_agentd -t "vfs.file.regexp[/proc/net/rpc/nfsd,^proc3 (([0-9]*)?\s){8},,,,\1]"

    I have one result now but when i would like to change in interface Zabbix I can't :

    Invalid key ""vfs.file.regexp[/proc/net/rpc/nfsd,^proc3 (([0-9]*)?\s){6},,,,\1]"" for item "NFSv3 access operations per minute" on "Template Linux NFS v3 Client": incorrect syntax near ""vfs.file.regexp[/proc/net/rpc/nfsd,^proc3 (([0-9] ...".

    Comment

    • Arcocide
      Member
      • Apr 2015
      • 84

      #3
      I find

      I just change the Key to :

      vfs.file.regexp[/proc/net/rpc/nfsd,"^proc3 (([0-9]*)?\s){6}",,,,"\1"]

      I add quote for \1

      Comment

      Working...