Ad Widget

Collapse

Help with Linux Filesystem Discovery for Mount Point with Space?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surfrock66
    Member
    • Jul 2018
    • 30

    #1

    Help with Linux Filesystem Discovery for Mount Point with Space?

    I have a linux fileserver, and in this my shares are located in mounted drives in my main user's home directory. In this case, let's say "/home/surfrock66/Videos/TV" is mounted, and that works fine and shows up with discovery.

    I have another folder, "/home/surfrock66/Videos/Home Movies" which doesn't show up, and I suspect this is because it has a space in the name. Is that the cause, or is it something else?

    If I use zabbix get and do this:

    Code:
    zabbix_get -s fileserver -p 10050 -k vfs.fs.discovery
    I get the following in the output, so I think it's being discovered, but it's not working, and the items for only this filesystem aren't showing up:

    Code:
      {
        "{#FSNAME}": "/home/surfrock66/Videos/Home\\040Movies",
        "{#FSTYPE}": "ext4",
        "{#FSOPTIONS}": "rw,relatime"
      },
  • skeletor
    Junior Member
    • May 2016
    • 12

    #2
    Could you clarify, how do you use {#FSNAME} further? May be you should double quoted instead, like this "{#FSNAME}"?

    Comment

    • surfrock66
      Member
      • Jul 2018
      • 30

      #3
      To be honest I pivoted and renamed the folder without the space. I wasn't doing anything fancy, it was the discovery in the template itself; it was not creating the items from the discovery rules.

      Comment

      Working...