Ad Widget

Collapse

Errors when creating new trigger to monitor NFS filesystem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dthacker
    Member
    • Feb 2014
    • 42

    #1

    Errors when creating new trigger to monitor NFS filesystem

    Goal: Send an alarm when this critical NFS mounted filesystem has less than 20% space free.

    The filesystem name is /prdrepo and it's mounted on server prdjboss01. (and other servers, but this is the first place I've tried to monitor it.)

    I've used Chapter 6 Section 3 Part 1 "Creating a Trigger" as a reference.

    I'm getting this error.
    Incorrect trigger expression. Check expression part starting from "{prdjboss01.vfs.fs.size[/prdrepo,pfree].last(0)}<20"

    I can't see where I've deviated from the manual. Please help me debug the trigger.

    TIA

    Dave
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Originally posted by dthacker
    Incorrect trigger expression. Check expression part starting from "{prdjboss01.vfs.fs.size[/prdrepo,pfree].last(0)}<20"
    Trigger format:
    {hostname:itemname.formula}

    You replaced ":" after Hostname to "."
    Correct it.

    Also, I hope you have an Item with key "vfs.fs.size[/prdrepo,pfree]"
    Sincerely yours,
    Aleksey

    Comment

    • dthacker
      Member
      • Feb 2014
      • 42

      #3
      I've gone to a test server to get this configuration working.

      I cloned the template that we are using in production and linked it to the test server. I then added an item for vs.fs.size. This is supposed to return values on mounted filesystems. I'm trying to run the command locally on one of the servers where the filesystem is mounted. This is what I'm getting.

      [root@tstjboss01-vmware ~]# zabbix_agentd -t vs.fs.size[/tstrepo,free]
      vs.fs.size[/tstrepo,free] [m|ZBX_NOTSUPPORTED]

      Is there anything in vs.fs hierarchy that will monitor NFS mounted disks for free space or do I need to build a cron job parse output and build another zabbix script to read the output?

      TIA
      Dave

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        Originally posted by dthacker
        [root@tstjboss01-vmware ~]# zabbix_agentd -t vs.fs.size[/tstrepo,free]
        vs.fs.size[/tstrepo,free] [m|ZBX_NOTSUPPORTED]
        I don't want to offend you - but you are doing some mistype error and then complain to a program.
        It's true that a key VS.FS.SIZE doesn't exist.
        It because there is a key VFS.FS.SIZE

        Please, check your input and output before complains.

        OK?

        Code:
        [root@z ~]# zabbix_agentd -t vfs.fs.size[/,pfree]
        vfs.fs.size[/,pfree]                          [d|72.839338]
        [root@z ~]# zabbix_agentd -t vfs.fs.size[/,total]
        vfs.fs.size[/,total]                          [u|97060229120]
        [root@z ~]# zabbix_agentd -t vfs.fs.size[/,free]
        vfs.fs.size[/,free]                           [u|67106660352]
        Sincerely yours,
        Aleksey

        Comment

        • dthacker
          Member
          • Feb 2014
          • 42

          #5
          Aleksey,
          Absolutely no offense taken, your replies have been helpful and I appreciate the courtesy. I think a bit less multitasking would help my proofreading. Thank You!

          Comment

          Working...