Ad Widget

Collapse

Zabbix agent stop monitoring on file deletion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanlee
    Junior Member
    • Oct 2008
    • 9

    #1

    Zabbix agent stop monitoring on file deletion

    Hi,

    I realized Zabbix agent (1.4) stops monitoring a file when it detects a file is deleted.

    This is what happened:
    1. I added a monitor for a log file
    2. I temporarily deleted the log file
    3. Zabbix agent prints following log message [jboss/server/log/server.log] [No such file or directory] and stops
    4. I recreated the file
    5. Zabbix agent does not resume monitoring the log file

    It seems Zabbix agent can not distinguish the log file not being there from the start (which makes sense to stop monitoring) and the log file temporarily unvailable (which makes sense to wait for the file to reappear)

    Is there any way to go around this problem?

    Thank you in advance.
  • sanlee
    Junior Member
    • Oct 2008
    • 9

    #2
    Hi,

    Is this intended behaviour?

    It seems there is no mentioning on the manual.

    Thank you in advance.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Yes, it is supposed to work this way.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      Working...