Ad Widget

Collapse

vfs.file.exists[file] not working correctly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Voolkanus
    Junior Member
    • Apr 2015
    • 4

    #1

    vfs.file.exists[file] not working correctly

    Hi,
    I'm trying to set the following attribute to monitor the existence of a specific file.
    The attribute is set like that: "{ilclmdb:vfs.file.exists[/arch/ctl/control02.ctl].avg(10)}=1".
    however this rule is always triggers the trigger and I see that notification.
    I tried to run inside the server the following command: "zabbix_agent -t "vfs.file.exists[/arch/ctl/control02.ctl]"" and the result is [u|1], that means that the agent if actually finding this file however the trigger is still can not find the file.
    Any suggestions?
  • Voolkanus
    Junior Member
    • Apr 2015
    • 4

    #2
    Anyone had the same issue before perhaps? I'm starting to loose my mind over this. Please respond.

    Comment

    • ingus.vilnis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Mar 2014
      • 908

      #3
      Hello and welcome to Zabbix forums!

      Two questions here.
      1. How often do you check this item? What is the update interval?
      2. At which point you want the trigger to fire? If the file exists or not? Is there any time period involved or you want it to alarm with the first occurrence?

      Best Regards,
      Ingus

      Comment

      • Voolkanus
        Junior Member
        • Apr 2015
        • 4

        #4
        Hi, thank you for your replay!

        1. I'm doing an average of 10 minutes on the file.
        2. The trigger is set to be activated if the file is missing. I want the trigger to be triggered when he can not find the specific file. The overall agenda of this is to check if the mount points has been disconnected in any way. I want the trigger to alarm as soon as there is a first occurrence.

        Comment

        • LenR
          Senior Member
          • Sep 2009
          • 1005

          #5
          Check permissions!

          When you run the command on the server, what is the userid? Does the zabbix_agentd userid have the authority to check the file?

          Comment

          • Voolkanus
            Junior Member
            • Apr 2015
            • 4

            #6
            Hi,

            Actually this is not a permission problem. I tried to set the trigger for a different dir in the server with the same permission and one of them is actually working perfect and the other one still can't find the specified file.

            Comment

            Working...