Ad Widget

Collapse

vfs.file.exists works only for directories but not file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peathagore
    Junior Member
    • Jun 2021
    • 6

    #1

    vfs.file.exists works only for directories but not file

    Hello,

    The file I'm looking for is in /var/lib/zabbix/file.txt

    I wanted to look into a .txt file and I could not. So I downgraded the difficulty and I tried to see if it exists.

    So I created an item on my Zabbix server with the key "vfs.file.exists[/var/lib/zabbix,dir]" --> result = 1 --> OK
    But when I try "vfs.file.exists[/var/lib/zabbix/file.txt] --> result = 0 --> NOK and yet the file is here.

    The access rights of the file are at least the same as the directory before.
    And wherever I put the file, I can only access the folder and not the file.

    I moved the "./zbx_env" in docker's yaml file at "/opt/docker/zabbix/zbx_env"
    Could it be the cause ?

    I'm stuck on that for the past few days and can't get
    through...

    Thanks
  • peathagore
    Junior Member
    • Jun 2021
    • 6

    #2
    Nothing ?

    I tried a "locate /var/lib/zabbix"
    I can see my file but I also see some other same directories but in "/docker/overlay2/lots_of_hexa_character/...." and then my directory /var/lib/zabbix

    What is "overlay2" ?
    Am I looking in an other folder with pretty much the same directory ?

    Thaaanks :'(

    Comment

    Working...