Ad Widget

Collapse

Linux monitor log file no last value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuhung1981
    Junior Member
    • May 2018
    • 9

    #1

    Linux monitor log file no last value

    Hi

    I want to monitor the log file,
    Alerts whenever there is any change.

    There are two ways to use it, but there are no values.
    1. vfs.file.size[/var/log/ejabberd/process_monitor.log]
    2.vfs.file.cksum[/var/log/ejabberd/process_monitor.log]

    Is there a wrong setting?
    Or is Zabbix-agent also changing settings?

    -------------
    YuHung
    Attached Files
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please check the list of items from the host settings. Is there a red mark on the right side of the item line?
    If you move the mouse pointer to the red mark, you will see the reason why it can not be acquired.

    Comment


    • yuhung1981
      yuhung1981 commented
      Editing a comment
      Hi Atsushi

      View Items display "Cannot obtain file information: [13] Permission denied"
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #3
    If the error "[13] Permission denied" occurs, check if the user who is running Zabbix agent has permission to access the directory and file containing the log file you want to monitor. By default, you should be running as zabbix user.

    Comment

    • yuhung1981
      Junior Member
      • May 2018
      • 9

      #4
      Thank you, it really is a permission issue that has been resolved.

      Comment

      Working...