Ad Widget

Collapse

Problem using vfs.file.exists

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ___jul
    Junior Member
    • May 2008
    • 5

    #1

    Problem using vfs.file.exists

    Hi,

    I monitor a server with zabbix.
    This is a redhat 5 server, with zabbix_agent 1.8.3 and my server is 1.8.3 too.
    This server makes synchronisation of some files using ftp.
    I made a script to monitor if the synchronisation works, if not it creates a flag file and zabbix monitor if the flag file existes using this command :
    zabbix_get -s 192.168.1.30 -I 10.33.0.75 -k vfs.file.exists[/home/adminit/scripts/checksynchro/cdetol.txt].
    I made a trigger on it.
    But my problem is that the "vfs.file.exists" check answer allways 0 even if the file exists or not.

    Is it a known bug or did I made something wrong ?

    Thanks for your reply.
  • ___jul
    Junior Member
    • May 2008
    • 5

    #2
    For exemple :
    If I try to test the right file it returns 0 and if I try a file that doesn't exists I still recieve 0 :


    adminit@Supervision:~$ zabbix_get -s 192.168.1.30 -I 10.33.0.75 -k vfs.file.exists[/home/adminit/scripts/checksynchro/cdetolog.txt]
    0
    adminit@Supervision:~$ zabbix_get -s 192.168.1.30 -I 10.33.0.75 -k vfs.file.exists[/home/adminit/scripts/checksynchro/cdetolog.txt1]
    0

    Any ideas, any help ?

    Comment

    • ___jul
      Junior Member
      • May 2008
      • 5

      #3
      Please up, any ideas ?

      Comment

      • Borsimm
        Junior Member
        • Dec 2011
        • 1

        #4
        Hi

        i got the same Problem. No Changes in Zabbix 1.8.9 ?
        any idea how i can fix the Problem ?

        THX

        Comment

        • c.mammoli
          Member
          Zabbix Certified Specialist
          • Feb 2012
          • 48

          #5
          Are permissions ok? Can the zabbix agent user reach the file?

          Try:

          su - -s /bin/bash zabbix
          ls -l <file>

          What do you get?

          Comment

          Working...